Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2010 12:43:05 +0300
From:      Yuriy Kohut <ykohut@onapp.com>
To:        <freebsd-questions@freebsd.org>
Subject:   FreeBSD 8.0-RELEASE-p2 Xen DomU vcpus >= 2 issue
Message-ID:  <7D58E5BD-90F7-4A01-B098-00F810EF3E59@onapp.com>

next in thread | raw e-mail | index | archive | help
/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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  =
Features2=3D0x4e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDC=
M,DCA>
  AMD Features=3D0x20100000<NX,LM>
  AMD Features2=3D0x1<LAHF>
  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: <null device, zero device>
nfslock: pseudo-device
random: <entropy source, Software, Yarrow>
kbd0 at kbdmux0
io: <I/O>
mem: <memory>
Pentium Pro MTRR support enabled
Grant table initialized
xenbus0: <Xen Devices> on motherboard
xc0: <Xen Console> on motherboard
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: <Xen Hypervisor Clock> 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 <Virtual Block Device> at device/vbd/2048 on xenbus0
xbd0: attaching as da0
GEOM: new disk da0
xbd1: 1024MB <Virtual Block Device> at device/vbd/2064 on xenbus0
xbd1: attaching as da1
xn0: <Virtual Network Interface> 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









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7D58E5BD-90F7-4A01-B098-00F810EF3E59>