FreeBSD 8.0-RELEASE-p2 Xen DomU vcpus >= 2 issue



/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@xxxxxxxxxx:/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 =>2.
In case 'vcpus' undefined, the DomU boot fine with single CPU.


Here is FreeBSD Domu console boot messages (when vcpus = "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@xxxxxxxxxx:/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 = "GenuineIntel" Id = 0x6f6 Stepping = 6
Features=0xbfebfbff<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=0x4e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA>
AMD Features=0x20100000<NX,LM>
AMD Features2=0x1<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 = 134217728 (128 MB)
Physical memory chunk(s):
0x000000000064e000 - 0x0000000007d5dfff, 124846080 bytes (30480 pages)
avail memory = 123199488 (117 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
gdtpfn=79a0d pdptpfn=73aff
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=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
[XEN] IPI cpu=1 irq=130 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=1 irq=131 vector=CALL_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=63a0b474-51d1-11df-bd85-00163eb33255: not found
Setting hostid: 0x306059f1.
kern.hostid=0x306059f1: 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






_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Question about top values on memory usage
    ... freebsd does not appear to track the amount of shared ... amount of available cpu cycles than memory. ... I've almost never run out of cpu on a webserver, ...
    (freebsd-stable)
  • DELL PowerEdge 2850 and FreeBSD 5.4
    ... I have installed FreeBSD 5.4 RELEASE and upgraded to -STABLE on a DELL ... CPU: IntelXeonCPU 3.20GHz ... avail memory = 4189892608 ...
    (freebsd-stable)
  • DELL PowerEdge 2850 and FreeBSD 5.4
    ... I have installed FreeBSD 5.4 RELEASE and upgraded to -STABLE on a DELL ... CPU: IntelXeonCPU 3.20GHz ... avail memory = 4189892608 ...
    (freebsd-stable)
  • Fatal trap 12 in kernel mode (amd64)
    ... I'm tring to install FreeBSD 5.2.1-RELEASE/amd64 on my dual Opteron machine. ... After Memory check, I got error below. ... Now, I can boot FreeBSD with 2 CPU, vainly... ...
    (freebsd-current)
  • Re: KDB panic with 2 vcpus
    ... domU on XEN 3.3.0. ... KDB: debugger backends: ddb ... Copyright 1992-2009 The FreeBSD Project. ... CPU: AMD AthlonProcessor ...
    (freebsd-current)