Kernel panic on FreeBSD 8.0 RELEASE when starting kernel

G VM drums_gvm at hotmail.com
Mon Jan 25 00:06:46 UTC 2010


Hi all,

I wanted to try running FreeBSD as a guest os.

The host system is:
AMD Opteron

cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 67
model name      : Dual-Core AMD Opteron(tm) Processor 1214
stepping        : 3
cpu MHz         : 2200.000
cache size      : 1024 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic mtrr mca cmov pat clflush mmx 
fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm c
mp_legacy cr8_legacy
bogomips        : 5527.11
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 67
model name      : Dual-Core AMD Opteron(tm) Processor 1214
stepping        : 3
cpu MHz         : 2200.000
cache size      : 1024 KB
physical id     : 1
siblings        : 1
core id         : 0
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic mtrr mca cmov pat clflush mmx 
fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm c
mp_legacy cr8_legacy
bogomips        : 5527.11
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual

power management: ts fid vid ttp tm stc


RHEL 5.4
kernel-xen-2.6.18-164.9.1.el5
xen-3.4.2-2.el5
x86_64

This is the configuration of the domU:

name = "recover-bsd"
uuid = "46c2af8fae757400439f0a8ed8af9ead"
memory = 500
vcpus = 1
#builder = "hvm"
#kernel = "/usr/lib/xen/boot/hvmloader"
#device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/kernel-freebsd80"
boot = "c"
pae = 1
#acpi = 1
#apic = 1
vnc = 1
# vncunused = 0
vncdisplay = "0"
disk = [ "file:/var/lib/xen/images/mfsboot.img,hda,w", "file:/var/lib/xen/images/recovered-disk.img,hdb,w", "phy:/dev/loop0,hdc:cdrom,r"]
serial = "pty"
vif=['bridge=br0,mac=00:16:ef:45:12:11']
extra = "boot_verbose=1"
extra += ",vfs.root.mountfrom=ufs:/dev/ad0s1a"
extra += ",kern.hz=100"


To compile the XENHVM kernel I installed FreeBSD 8.0-RELEASE in VMware
and compiled it there. The reason for this is that even booting the
8.0-RELEASE install cd does panic. Do note that this did not happen with
FreeBSD 7.2-RELEASE.
Once compiled I copied it to the dom0.

Whenever I boot the kernel I get a kernel panic. This happens almost
immediately after creating the domU.
This is the output:

[root at localhost ~]# xm create recover-bsd -c
Using config file "/etc/xen/recover-bsd".
Started domain recover-bsd (id=148)
                                   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 #0: Tue Jan  5 16:29:33 CET 2010
    root@:/usr/src/sys/i386/compile/XEN
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 2210.184 MHz processor.
Timecounter "ixen" frequency 1000000000 Hz quality 0
CPU: Dual-Core AMD Opteron(tm) Processor 1214 (2210.18-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40f33  Stepping = 3
  Features=0x178bfbff
  Features2=0x2001
  AMD Features=0xea500800
  AMD Features2=0x1f
Data TLB: 32 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 524288000 (500 MB)
Physical memory chunk(s):
0x0000000000764000 - 0x000000001ea71fff, 506519552 bytes (123662 pages)
avail memory = 503681024 (480 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
ULE: setup cpu 0
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_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
kernel trap 9 with interrupts disabled


Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x21:0xc0320451
stack pointer           = 0x29:0xc2166ca0
frame pointer           = 0x29:0xc2166ca8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 1, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 11 (idle: cpu0)
[thread pid 11 tid 100003 ]
Stopped at      spinlock_enter+0x91:    hlt


Does anybody knows what I do wrong? Or is this  a bug?

If you need any more info please let me know.

Help is very appreciated.
Kind regards!

 		 	   		  


More information about the freebsd-xen mailing list