From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 09:53:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5FE01065670 for ; Tue, 27 Apr 2010 09:53:54 +0000 (UTC) (envelope-from ykohut@onapp.com) Received: from smtpauth.thinkgrid.net (w01edge02.thinkgrid.net [91.210.68.36]) by mx1.freebsd.org (Postfix) with ESMTP id 4A9FF8FC26 for ; Tue, 27 Apr 2010 09:53:54 +0000 (UTC) Received: from W01EXHUB01.hosting.tg.local (10.101.22.23) by W01EXEDGE02.hosting.tg.local (91.210.68.36) with Microsoft SMTP Server (TLS) id 8.1.311.2; Tue, 27 Apr 2010 10:43:06 +0100 Received: from [192.168.128.133] (194.44.160.178) by smtpauth.thinkgrid.net (10.101.22.25) with Microsoft SMTP Server (TLS) id 8.1.311.2; Tue, 27 Apr 2010 10:43:06 +0100 From: Yuriy Kohut Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 27 Apr 2010 12:43:05 +0300 Message-ID: <7D58E5BD-90F7-4A01-B098-00F810EF3E59@onapp.com> To: MIME-Version: 1.0 (Apple Message framework v1078) X-Mailer: Apple Mail (2.1078) Subject: FreeBSD 8.0-RELEASE-p2 Xen DomU vcpus >= 2 issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2010 09:53:54 -0000 /sbin/init get "Segmentation Fault" while FreeBSD 8.0-RELEASE-p2 i386 = Xen DomU is booting. Xen Dom0 info: OS: CentOS release 5.4 (Final) Arch: x86_64 Kernel: 2.6.18-164.6.1.el5xen #1 SMP Tue Nov 3 16:48:13 EST 2009 x86_64 = x86_64 x86_64 GNU/Linux CPU: Intel(R) Xeon(R) CPU 5148 @ 2.33GHz Xen info: xen-libs-3.0.3-94.el5_4.2 kernel-xen-devel-2.6.18-164.6.1.el5 xen-libs-3.0.3-94.el5_4.2 kernel-xen-2.6.18-164.6.1.el5 xen-3.0.3-94.el5_4.2 FreeBSD DomU info: # uname -a FreeBSD freebsd.vps.net 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #1: Fri = Apr 23 18:45:04 EEST 2010 root@fbsd.devel:/mnt/usr/src/sys/XEN i386 # sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu' hw.machine: i386 hw.model: Intel(R) Xeon(R) CPU 5148 @ 2.33GHz hw.ncpu: 1 hw.machine_arch: i386 The Segmentation Fault issue appears when the DomU is configures with = option 'vcpus' value =3D>2. In case 'vcpus' undefined, the DomU boot fine with single CPU. Here is FreeBSD Domu console boot messages (when vcpus =3D "2"): Started domain TUDKyLzlA8Hx WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-RELEASE-p2 #1: Fri Apr 23 18:45:04 EEST 2010 root@fbsd.devel:/mnt/usr/src/sys/XEN WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2333.410 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: Intel(R) Xeon(R) CPU 5148 @ 2.33GHz (2333.41-MHz = 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x6f6 Stepping =3D 6 = Features=3D0xbfebfbff = Features2=3D0x4e3bd AMD Features=3D0x20100000 AMD Features2=3D0x1 TSC: P-state invariant Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line = size 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 4096 kbytes, 16-way associative, 64 bytes/line real memory =3D 134217728 (128 MB) Physical memory chunk(s): 0x000000000064e000 - 0x0000000007d5dfff, 124846080 bytes (30480 pages) avail memory =3D 123199488 (117 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) SMP: Added CPU 1 (AP) gdtpfn=3D79a0d pdptpfn=3D73aff INTR: Adding local APIC 1 as a target FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ULE: setup cpu 0 ULE: setup cpu 1 [XEN] IPI cpu=3D0 irq=3D128 vector=3DRESCHEDULE_VECTOR (0) [XEN] IPI cpu=3D0 irq=3D129 vector=3DCALL_FUNCTION_VECTOR (1) [XEN] IPI cpu=3D1 irq=3D130 vector=3DRESCHEDULE_VECTOR (0) [XEN] IPI cpu=3D1 irq=3D131 vector=3DCALL_FUNCTION_VECTOR (1) Event-channel device installed. null: nfslock: pseudo-device random: kbd0 at kbdmux0 io: mem: Pentium Pro MTRR support enabled Grant table initialized xenbus0: on motherboard xc0: on motherboard [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock rtc0: registered as a time-of-day clock (resolution 1000000us) npx0: INT 16 interface Device configuration finished. procfs registered Timecounters tick every 10.000 msec lo0: bpf attached xbd0: 1024MB at device/vbd/2048 on xenbus0 xbd0: attaching as da0 GEOM: new disk da0 xbd1: 1024MB at device/vbd/2064 on xenbus0 xbd1: attaching as da1 xn0: at device/vif/0 on xenbus0 xn0: bpf attached xn0: Ethernet address: 00:16:3e:b3:32:55 SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. GEOM: new disk da1 Trying to mount root from ufs:/dev/da0 rtc0: [XEN] xen_rtc_gettime rtc0: [XEN] xen_rtc_gettime: wallclock 1270321980 sec; 211900550 nsec rtc0: [XEN] xen_rtc_gettime: uptime 2033113 sec; 505886216 nsec rtc0: [XEN] xen_rtc_gettime: TOD 1272355093 sec; 717786766 nsec start_init: trying /sbin/init pid 22 (sysctl), uid 0: exited on signal 11 Segmentation fault pid 23 (sysctl), uid 0: exited on signal 11 Segmentation fault pid 24 (ps), uid 0: exited on signal 11 Segmentation fault Setting hostuuid: 63a0b474-51d1-11df-bd85-00163eb33255. kern.hostuuid=3D63a0b474-51d1-11df-bd85-00163eb33255: not found Setting hostid: 0x306059f1. kern.hostid=3D0x306059f1: not found pid 37 (ps), uid 0: exited on signal 11 Thanks in advance for any replay/assistance. --- Yuriy Kohut Cloud Images Developer VPS.NET UK2