From owner-freebsd-xen@FreeBSD.ORG Mon Jan 25 00:06:45 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECEE4106566C for ; Mon, 25 Jan 2010 00:06:45 +0000 (UTC) (envelope-from drums_gvm@hotmail.com) Received: from snt0-omc4-s26.snt0.hotmail.com (snt0-omc4-s26.snt0.hotmail.com [65.55.90.229]) by mx1.freebsd.org (Postfix) with ESMTP id C224B8FC14 for ; Mon, 25 Jan 2010 00:06:45 +0000 (UTC) Received: from SNT130-W8 ([65.55.90.200]) by snt0-omc4-s26.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 24 Jan 2010 15:54:46 -0800 Message-ID: X-Originating-IP: [213.219.138.240] From: G VM To: Date: Mon, 25 Jan 2010 00:54:45 +0100 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 24 Jan 2010 23:54:46.0080 (UTC) FILETIME=[9B3B9C00:01CA9D50] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Kernel panic on FreeBSD 8.0 RELEASE when starting kernel X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 00:06:46 -0000 Hi all=2C I wanted to try running FreeBSD as a guest os. The host system is: AMD Opteron cat /proc/cpuinfo=20 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=20 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=2C 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=20 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=2C 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 =3D "recover-bsd" uuid =3D "46c2af8fae757400439f0a8ed8af9ead" memory =3D 500 vcpus =3D 1 #builder =3D "hvm" #kernel =3D "/usr/lib/xen/boot/hvmloader" #device_model =3D "/usr/lib64/xen/bin/qemu-dm" kernel =3D "/usr/lib/xen/boot/kernel-freebsd80" boot =3D "c" pae =3D 1 #acpi =3D 1 #apic =3D 1 vnc =3D 1 # vncunused =3D 0 vncdisplay =3D "0" disk =3D [ "file:/var/lib/xen/images/mfsboot.img=2Chda=2Cw"=2C "file:/var/l= ib/xen/images/recovered-disk.img=2Chdb=2Cw"=2C "phy:/dev/loop0=2Chdc:cdrom= =2Cr"] serial =3D "pty" vif=3D['bridge=3Dbr0=2Cmac=3D00:16:ef:45:12:11'] extra =3D "boot_verbose=3D1" extra +=3D "=2Cvfs.root.mountfrom=3Dufs:/dev/ad0s1a" extra +=3D "=2Ckern.hz=3D100" 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@localhost ~]# xm create recover-bsd -c Using config file "/etc/xen/recover-bsd". Started domain recover-bsd (id=3D148) 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=2C 1980=2C 1983=2C 1986=2C 1988=2C 1989=2C 1991=2C 1992= =2C 1993=2C 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=2C 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 =3D "AuthenticAMD" Id =3D 0x40f33 Stepping =3D 3 Features=3D0x178bfbff Features2=3D0x2001 AMD Features=3D0xea500800 AMD Features2=3D0x1f Data TLB: 32 entries=2C fully associative Instruction TLB: 32 entries=2C fully associative L1 data cache: 64 kbytes=2C 64 bytes/line=2C 1 lines/tag=2C 2-way associati= ve L1 instruction cache: 64 kbytes=2C 64 bytes/line=2C 1 lines/tag=2C 2-way as= sociative L2 internal cache: 1024 kbytes=2C 64 bytes/line=2C 1 lines/tag=2C 8-way ass= ociative real memory =3D 524288000 (500 MB) Physical memory chunk(s): 0x0000000000764000 - 0x000000001ea71fff=2C 506519552 bytes (123662 pages) avail memory =3D 503681024 (480 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) ULE: setup cpu 0 [XEN] IPI cpu=3D0 irq=3D128 vector=3DRESCHEDULE_VECTOR (0) [XEN] IPI cpu=3D0 irq=3D129 vector=3DCALL_FUNCTION_VECTOR (1) Event-channel device installed. null:=20 nfslock: pseudo-device random:=20 kbd0 at kbdmux0 io:=20 mem:=20 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 =3D 0=3B apic id =3D 00 instruction pointer =3D 0x21:0xc0320451 stack pointer =3D 0x29:0xc2166ca0 frame pointer =3D 0x29:0xc2166ca8 code segment =3D base 0x0=2C limit 0xfffff=2C type 0x1b =3D DPL 1=2C pres 1=2C def32 1=2C gran 1 processor eflags =3D resume=2C IOPL =3D 0 current process =3D 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! =