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! = From owner-freebsd-xen@FreeBSD.ORG Mon Jan 25 05:29:00 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 EE987106566B for ; Mon, 25 Jan 2010 05:29:00 +0000 (UTC) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (ns1.scsiguy.com [70.89.174.89]) by mx1.freebsd.org (Postfix) with ESMTP id A235D8FC15 for ; Mon, 25 Jan 2010 05:29:00 +0000 (UTC) Received: from [192.168.0.6] (tumnus.scsiguy.com [192.168.0.6]) (authenticated bits=0) by aslan.scsiguy.com (8.14.3/8.14.3) with ESMTP id o0P5SxwR053563 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 24 Jan 2010 22:28:59 -0700 (MST) (envelope-from gibbs@scsiguy.com) Message-ID: <4B5D2C0C.1040003@scsiguy.com> Date: Sun, 24 Jan 2010 22:28:44 -0700 From: "Justin T. Gibbs" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: G VM References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-xen@freebsd.org Subject: Re: 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 05:29:01 -0000 On 1/24/2010 4:54 PM, G VM wrote: > > Hi all, > > I wanted to try running FreeBSD as a guest os. ... > Whenever I boot the kernel I get a kernel panic. This happens almost > immediately after creating the domU. ... > If you need any more info please let me know. Please recompile your kernel with debugger support and get a back-trace your panic. See http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-online-ddb.html for details on how to do this. -- Justin From owner-freebsd-xen@FreeBSD.ORG Mon Jan 25 11:07:14 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 0B8C7106568F for ; Mon, 25 Jan 2010 11:07:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E14FE8FC1C for ; Mon, 25 Jan 2010 11:07:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o0PB7DfO038951 for ; Mon, 25 Jan 2010 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0PB7DKC038949 for freebsd-xen@FreeBSD.org; Mon, 25 Jan 2010 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Jan 2010 11:07:13 GMT Message-Id: <201001251107.o0PB7DKC038949@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xen@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org 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 11:07:14 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/143069 xen [xen] [panic] Xen Kernel Panic - Memory modified after o kern/141328 xen [xen] [panic] gstat exit causes kernel panic from unma o kern/140313 xen [xen] [panic] FreeBSD8 RC2 as PV domU crashes during c o kern/135421 xen [xen] FreeBSD Xen PVM DomU network failure - netfronc. o kern/135179 xen [xen] Xen domU does not properly reboot o kern/135178 xen [xen] Xen domU outgoing data transfer stall when TSO i o kern/135069 xen [xen] FreeBSD-current/Xen SMP doesn't function at all o kern/135008 xen [xen] FreeBSD-current/Xen timecounter jumps o kern/134926 xen [xen] [panic] FreeBSD-current Xen DomU networking pani 9 problems total. From owner-freebsd-xen@FreeBSD.ORG Mon Jan 25 17:12:40 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 ADA85106566B for ; Mon, 25 Jan 2010 17:12:39 +0000 (UTC) (envelope-from drums_gvm@hotmail.com) Received: from snt0-omc1-s4.snt0.hotmail.com (snt0-omc1-s4.snt0.hotmail.com [65.55.90.15]) by mx1.freebsd.org (Postfix) with ESMTP id 4F4AD8FC0C for ; Mon, 25 Jan 2010 17:12:39 +0000 (UTC) Received: from SNT130-W46 ([65.55.90.9]) by snt0-omc1-s4.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 25 Jan 2010 09:12:38 -0800 Message-ID: X-Originating-IP: [77.109.78.74] From: G VM To: Date: Mon, 25 Jan 2010 18:12:38 +0100 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 25 Jan 2010 17:12:38.0755 (UTC) FILETIME=[98A3BB30:01CA9DE1] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-xen@freebsd.org Subject: Re: 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 17:12:40 -0000 Justin T. Gibbs wrote: > Please recompile your kernel with debugger support and get a back-trace > your panic. See > > http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-onli= ne-ddb.html > > for details on how to do this. > =20 I am a little confused. At the top of the output there is: GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb This makes me think that debugging is already compiled in. Also in the default XENHVM config option ddb and option kdb are already included. I had been seeing the db> prompt. So I tried it again now. When at the db prompt I typed "trace": db> trace Tracing pid 11 tid 100003 td 0xc2309b40 spinlock_enter(1=2Cc2166cf8=2Cc00fb94e=2C1=2C0=2C...) at spinlock_enter+0x9= 1 cpu_idle(1=2C0=2Cc035fa0f=2C9e9=2Cc2309b40=2C...) at cpu_idle+0x12 sched_idletd(0=2Cc2166d38=2Cc03593f0=2C343=2Cc2307aa0=2C...) at sched_idlet= d+0x23e fork_exit(c00fb710=2C0=2Cc2166d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0=2C eip =3D 0=2C esp =3D 0xc2166d70=2C ebp =3D 0 --- This is what you want... correct? Do you have any idea if there is a fix for this? Thanks in advance! = From owner-freebsd-xen@FreeBSD.ORG Tue Jan 26 10:19:25 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 C637D1065670 for ; Tue, 26 Jan 2010 10:19:25 +0000 (UTC) (envelope-from drums_gvm@hotmail.com) Received: from snt0-omc1-s15.snt0.hotmail.com (snt0-omc1-s15.snt0.hotmail.com [65.55.90.26]) by mx1.freebsd.org (Postfix) with ESMTP id 9BA1D8FC08 for ; Tue, 26 Jan 2010 10:19:25 +0000 (UTC) Received: from SNT130-W6 ([65.55.90.9]) by snt0-omc1-s15.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 26 Jan 2010 02:19:24 -0800 Message-ID: X-Originating-IP: [81.82.201.44] From: G VM To: Date: Tue, 26 Jan 2010 11:19:24 +0100 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 26 Jan 2010 10:19:24.0992 (UTC) FILETIME=[08D17C00:01CA9E71] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-xen@freebsd.org Subject: Re: 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: Tue, 26 Jan 2010 10:19:25 -0000 Justin T. Gibbs wrote: > On 1/24/2010 4:54 PM=2C G VM wrote: > =20 >> Hi all=2C >> >> I wanted to try running FreeBSD as a guest os. >> =20 I followed the instructions on this url. http://www.ita.com.ua/eng/articles.htm?id=3D34 I am not sure what Xen exactly does. Does it uses the kernel on the dom0? Or does it both uses the bsd kernel on the dom0 and a modified kernel on domU? I do not have a done: make buildkernel KERNCONF=3D/XEN Is this necessary? I thought xen support was included in the kernel. Do note the instructions I followed. I used those. / = From owner-freebsd-xen@FreeBSD.ORG Tue Jan 26 10:32:18 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 474B51065679 for ; Tue, 26 Jan 2010 10:32:18 +0000 (UTC) (envelope-from info@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id 083EC8FC14 for ; Tue, 26 Jan 2010 10:32:17 +0000 (UTC) Received: from [80.95.75.131] (port=30291 helo=[192.168.2.192]) by mail.deployis.eu with esmtpsa (Exim 4.69 #1 (Debian)) id 1NZiiV-0001Wo-FQ from ; Tue, 26 Jan 2010 11:32:15 +0100 Message-ID: <4B5EC4AE.9090303@deployis.eu> Date: Tue, 26 Jan 2010 11:32:14 +0100 From: Deploy IS INFO User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: G VM References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-xen@freebsd.org Subject: Re: 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: Tue, 26 Jan 2010 10:32:18 -0000 Hi, You can run (in theory) any FreeBSD on a hardware that has HVM support. You can check that with xm info. You can only run FreeBSD 8 as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or the hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) kernel config. You'll have to install FreeBSD as a hvm guest and after a successful install you may go on with the above mentioned kernels. For pv mode use only 1 vcpu and max 2 for hvm-pv. Regards, Andras G VM wrote: > Justin T. Gibbs wrote: >> On 1/24/2010 4:54 PM, G VM wrote: >> >>> Hi all, >>> >>> I wanted to try running FreeBSD as a guest os. >>> > I followed the instructions on this url. > http://www.ita.com.ua/eng/articles.htm?id=34 > > I am not sure what Xen exactly does. Does it uses the kernel on the > dom0? Or does it both uses the bsd kernel on the dom0 and a modified > kernel on domU? > I do not have a done: > > make buildkernel KERNCONF=/XEN > > Is this necessary? I thought xen support was included in the kernel. > > Do note the instructions I followed. I used those. > / > > > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" From owner-freebsd-xen@FreeBSD.ORG Tue Jan 26 10:45:14 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 2786F106566B for ; Tue, 26 Jan 2010 10:45:14 +0000 (UTC) (envelope-from drums_gvm@hotmail.com) Received: from snt0-omc3-s30.snt0.hotmail.com (snt0-omc3-s30.snt0.hotmail.com [65.55.90.169]) by mx1.freebsd.org (Postfix) with ESMTP id F07BE8FC08 for ; Tue, 26 Jan 2010 10:45:13 +0000 (UTC) Received: from SNT130-W41 ([65.55.90.137]) by snt0-omc3-s30.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 26 Jan 2010 02:45:13 -0800 Message-ID: X-Originating-IP: [81.82.201.44] From: G VM To: Date: Tue, 26 Jan 2010 11:45:13 +0100 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 26 Jan 2010 10:45:13.0409 (UTC) FILETIME=[A3BF2B10:01CA9E74] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-xen@freebsd.org Subject: Re: 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: Tue, 26 Jan 2010 10:45:14 -0000 Deploy IS INFO wrote: > Hi=2C > > You can run (in theory) any FreeBSD on a hardware that has HVM > support. You can check that with xm info. You can only run FreeBSD 8 > as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or the > hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) > kernel config. > > You'll have to install FreeBSD as a hvm guest and after a successful > install you may go on with the above mentioned kernels. > > For pv mode use only 1 vcpu and max 2 for hvm-pv. > > Regards=2C > Andras > > G VM wrote: >> Justin T. Gibbs wrote: >>> On 1/24/2010 4:54 PM=2C G VM wrote: >>> =20 >>>> Hi all=2C >>>> >>>> I wanted to try running FreeBSD as a guest os. >>>> =20 >> I followed the instructions on this url. >> http://www.ita.com.ua/eng/articles.htm?id=3D34 >> >> I am not sure what Xen exactly does. Does it uses the kernel on the >> dom0? Or does it both uses the bsd kernel on the dom0 and a modified >> kernel on domU? >> I do not have a done: >> >> make buildkernel KERNCONF=3D/XEN >> >> Is this necessary? I thought xen support was included in the kernel. >> >> Do note the instructions I followed. I used those. >> / >> >> >> =20 >> _______________________________________________ >> freebsd-xen@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen >> To unsubscribe=2C send any mail to "freebsd-xen-unsubscribe@freebsd.org" > > # xm info host : backupserver release : 2.6.18-164.9.1.el5xen version : #1 SMP Tue Dec 15 21:31:37 EST 2009 machine : x86_64 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 2210 hw_caps : 178bf3ff:ebd3fbff:00000000:00000010:00002001:00000000:0 000001f:00000000 virt_caps : hvm total_memory : 2046 free_memory : 512 node_to_cpu : node0:0-1 node_to_memory : node0:512 xen_major : 3 xen_minor : 4 xen_extra : .2 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x 86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=3D0xffff800000000000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) cc_compile_by : root cc_compile_domain : gitco.tld cc_compile_date : Wed Nov 11 21:16:28 CET 2009 xend_config_format : 4 So this seems ok. My dom0 is x86_64. Does this mean I have to use hvm-pv (XENHVM) -> FreeBSD amd64 install? Or can I run the i386 pv (XEN) on a 64 bit dom0 too? Does this also needs a copy of the compiled kernel to the dom0? Do note that the default 8.0-RELEASE cd does panic (this is part of the config=2C when trying to do a normal install to compile the new kernel (that is why I used VMware to compile the kernel)): ... builder =3D "hvm" kernel =3D "/usr/lib/xen/boot/hvmloader" device_model =3D "/usr/lib64/xen/bin/qemu-dm" ... = From owner-freebsd-xen@FreeBSD.ORG Tue Jan 26 10:54:53 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 399FC106568F for ; Tue, 26 Jan 2010 10:54:53 +0000 (UTC) (envelope-from info@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id C01118FC0A for ; Tue, 26 Jan 2010 10:54:52 +0000 (UTC) Received: from [80.95.75.131] (port=36995 helo=[192.168.2.192]) by mail.deployis.eu with esmtpsa (Exim 4.69 #1 (Debian)) id 1NZj4N-00069s-IJ from ; Tue, 26 Jan 2010 11:54:51 +0100 Message-ID: <4B5EC9FA.7010901@deployis.eu> Date: Tue, 26 Jan 2010 11:54:50 +0100 From: Deploy IS INFO User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: G VM References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-xen@freebsd.org Subject: Re: 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: Tue, 26 Jan 2010 10:54:53 -0000 G VM wrote: > Deploy IS INFO wrote: > > Hi, > > > > You can run (in theory) any FreeBSD on a hardware that has HVM > > support. You can check that with xm info. You can only run FreeBSD 8 > > as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or the > > hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) > > kernel config. > > > > You'll have to install FreeBSD as a hvm guest and after a successful > > install you may go on with the above mentioned kernels. > > > > For pv mode use only 1 vcpu and max 2 for hvm-pv. > > > > Regards, > > Andras > > > > G VM wrote: > >> Justin T. Gibbs wrote: > >>> On 1/24/2010 4:54 PM, G VM wrote: > >>> > >>>> Hi all, > >>>> > >>>> I wanted to try running FreeBSD as a guest os. > >>>> > >> I followed the instructions on this url. > >> http://www.ita.com.ua/eng/articles.htm?id=34 > >> > >> I am not sure what Xen exactly does. Does it uses the kernel on the > >> dom0? Or does it both uses the bsd kernel on the dom0 and a modified > >> kernel on domU? > >> I do not have a done: > >> > >> make buildkernel KERNCONF=/XEN > >> > >> Is this necessary? I thought xen support was included in the kernel. > >> > >> Do note the instructions I followed. I used those. > >> / > >> > >> > >> > >> _______________________________________________ > >> freebsd-xen@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen > >> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" > > > > > # xm info > host : backupserver > release : 2.6.18-164.9.1.el5xen > version : #1 SMP Tue Dec 15 21:31:37 EST 2009 > machine : x86_64 > nr_cpus : 2 > nr_nodes : 1 > cores_per_socket : 2 > threads_per_core : 1 > cpu_mhz : 2210 > hw_caps : > 178bf3ff:ebd3fbff:00000000:00000010:00002001:00000000:0 > 000001f:00000000 > virt_caps : hvm > total_memory : 2046 > free_memory : 512 > node_to_cpu : node0:0-1 > node_to_memory : node0:512 > xen_major : 3 > xen_minor : 4 > xen_extra : .2 > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 > hvm-3.0-x > 86_32p hvm-3.0-x86_64 > xen_scheduler : credit > xen_pagesize : 4096 > platform_params : virt_start=0xffff800000000000 > xen_changeset : unavailable > cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) > cc_compile_by : root > cc_compile_domain : gitco.tld > cc_compile_date : Wed Nov 11 21:16:28 CET 2009 > xend_config_format : 4 > > So this seems ok. > > My dom0 is x86_64. > Does this mean I have to use hvm-pv (XENHVM) -> FreeBSD amd64 install? > Or can I run the i386 pv (XEN) on a 64 bit dom0 too? > Does this also needs a copy of the compiled kernel to the dom0? > > Do note that the default 8.0-RELEASE cd does panic (this is part of the > config, when trying to do a normal install to compile the new kernel > (that is why I used VMware to compile the kernel)): > ... > > builder = "hvm" > kernel = "/usr/lib/xen/boot/hvmloader" > device_model = "/usr/lib64/xen/bin/qemu-dm" > > ... > Hi, You can any guests arch that fits into the xm info's xen cap line, so a 32bit pv guest is not a problem for you. We use the following example config: kernel = "/usr/lib/xen/boot/hvmloader" #kernel = "/path/to/pvkernel" builder='hvm' memory = 1024 name = "FreeBSD8" vif = [ '' ] disk = [ 'phy:/dev/volgroup/freebsd-lv-rootfs,hda,w', 'file:/path/to/8.0-RELEASE-amd64-disc1.iso,hdd:cdrom,r' ] boot="cda" vnc=1 vncpasswd='ihavepassword' #vcpus='2' The commented parts are should be tried only after a succesful install and of course the amd64 iso could be an i386 also. Under 3.3.1 Xen it works one a X2270 test server and a x2250 prod server. Regards, Andras From owner-freebsd-xen@FreeBSD.ORG Tue Jan 26 12:28:08 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 9B5FE1065670 for ; Tue, 26 Jan 2010 12:28:08 +0000 (UTC) (envelope-from drums_gvm@hotmail.com) Received: from snt0-omc3-s30.snt0.hotmail.com (snt0-omc3-s30.snt0.hotmail.com [65.55.90.169]) by mx1.freebsd.org (Postfix) with ESMTP id 719B78FC1B for ; Tue, 26 Jan 2010 12:28:08 +0000 (UTC) Received: from SNT130-W7 ([65.55.90.135]) by snt0-omc3-s30.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 26 Jan 2010 04:28:07 -0800 Message-ID: X-Originating-IP: [81.82.201.44] From: G VM To: Date: Tue, 26 Jan 2010 13:28:07 +0100 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 26 Jan 2010 12:28:07.0557 (UTC) FILETIME=[03D36350:01CA9E83] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-xen@freebsd.org Subject: Re: 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: Tue, 26 Jan 2010 12:28:08 -0000 Deploy IS INFO wrote: > > > G VM wrote: >> Deploy IS INFO wrote: >> > Hi=2C >> > >> > You can run (in theory) any FreeBSD on a hardware that has HVM >> > support. You can check that with xm info. You can only run FreeBSD 8 >> > as a PV guest with 32bit arch and hvm-pv with amd64. For the pv or >> the >> > hvm-pv mode you have to compile the XEN (for 32bit) or XENHVM (amd64) >> > kernel config. >> > >> > You'll have to install FreeBSD as a hvm guest and after a successful >> > install you may go on with the above mentioned kernels. >> > >> > For pv mode use only 1 vcpu and max 2 for hvm-pv. >> > >> > Regards=2C >> > Andras >> > >> > G VM wrote: >> >> Justin T. Gibbs wrote: >> >>> On 1/24/2010 4:54 PM=2C G VM wrote: >> >>> >> >>>> Hi all=2C >> >>>> >> >>>> I wanted to try running FreeBSD as a guest os. >> >>>> >> >> I followed the instructions on this url. >> >> http://www.ita.com.ua/eng/articles.htm?id=3D34 >> >> >> >> I am not sure what Xen exactly does. Does it uses the kernel on the >> >> dom0? Or does it both uses the bsd kernel on the dom0 and a modified >> >> kernel on domU? >> >> I do not have a done: >> >> >> >> make buildkernel KERNCONF=3D/XEN >> >> >> >> Is this necessary? I thought xen support was included in the kernel. >> >> >> >> Do note the instructions I followed. I used those. >> >> / >> >> >> >> >> >> >> >> _______________________________________________ >> >> freebsd-xen@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen >> >> To unsubscribe=2C send any mail to >> "freebsd-xen-unsubscribe@freebsd.org" >> > >> > >> # xm info >> host : backupserver >> release : 2.6.18-164.9.1.el5xen >> version : #1 SMP Tue Dec 15 21:31:37 EST 2009 >> machine : x86_64 >> nr_cpus : 2 >> nr_nodes : 1 >> cores_per_socket : 2 >> threads_per_core : 1 >> cpu_mhz : 2210 >> hw_caps : >> 178bf3ff:ebd3fbff:00000000:00000010:00002001:00000000:0 >> 000001f:00000000 >> virt_caps : hvm >> total_memory : 2046 >> free_memory : 512 >> node_to_cpu : node0:0-1 >> node_to_memory : node0:512 >> xen_major : 3 >> xen_minor : 4 >> xen_extra : .2 >> xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 >> hvm-3.0-x >> 86_32p hvm-3.0-x86_64 >> xen_scheduler : credit >> xen_pagesize : 4096 >> platform_params : virt_start=3D0xffff800000000000 >> xen_changeset : unavailable >> cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) >> cc_compile_by : root >> cc_compile_domain : gitco.tld >> cc_compile_date : Wed Nov 11 21:16:28 CET 2009 >> xend_config_format : 4 >> >> So this seems ok. >> >> My dom0 is x86_64. >> Does this mean I have to use hvm-pv (XENHVM) -> FreeBSD amd64 install? >> Or can I run the i386 pv (XEN) on a 64 bit dom0 too? >> Does this also needs a copy of the compiled kernel to the dom0? >> >> Do note that the default 8.0-RELEASE cd does panic (this is part of the >> config=2C when trying to do a normal install to compile the new kernel >> (that is why I used VMware to compile the kernel)): >> ... >> >> builder =3D "hvm" >> kernel =3D "/usr/lib/xen/boot/hvmloader" >> device_model =3D "/usr/lib64/xen/bin/qemu-dm" >> >> ... >> > > Hi=2C > > You can any guests arch that fits into the xm info's xen cap line=2C so > a 32bit pv guest is not a problem for you. We use the following > example config: > > kernel =3D "/usr/lib/xen/boot/hvmloader" > #kernel =3D "/path/to/pvkernel" > builder=3D'hvm' > memory =3D 1024 > name =3D "FreeBSD8" > vif =3D [ '' ] > disk =3D [ 'phy:/dev/volgroup/freebsd-lv-rootfs=2Chda=2Cw'=2C > 'file:/path/to/8.0-RELEASE-amd64-disc1.iso=2Chdd:cdrom=2Cr' ] > boot=3D"cda" > vnc=3D1 > vncpasswd=3D'ihavepassword' > #vcpus=3D'2' > > The commented parts are should be tried only after a succesful install > and of course the amd64 iso could be an i386 also. Under 3.3.1 Xen it > works one a X2270 test server and a x2250 prod server. > > Regards=2C > Andras > > I used the config you provided and have a 8.0-RELEASE x86 cd. When I boot from the CD the kernel panics: AMD Features2=3D.... real memory =3D ... 500MB avail memory =3D ... 471MB panic: vm_fault: fault on nofault entry=2C addr: c3253000 cpuid =3D 0 :S That is the reason I compiled the kernel in VMware as I can install FreeBSD there. BUt then I got the panic I have in the beginning of this mailling list topic. If I am not mistaken I also tried the AMD64 cd and that did fail also. However when using 7.2 it just works ok. Anyone an idea? BTW=2C thanks so far for your help guys! = From owner-freebsd-xen@FreeBSD.ORG Thu Jan 28 19:12:14 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 823D71065765 for ; Thu, 28 Jan 2010 19:12:13 +0000 (UTC) (envelope-from wonslung@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 6440B8FC14 for ; Thu, 28 Jan 2010 19:12:13 +0000 (UTC) Received: by ewy10 with SMTP id 10so1125141ewy.3 for ; Thu, 28 Jan 2010 11:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Hc+xe3ZEbxRhYOdI0M2Hh/O8Sd99+qDwaKQUOFCotks=; b=BsYQHQ3quU7g7kkpxwg2z1HEwlFCrkC94qdE7EmlXGeCWqksNDRcEIS6iNKk3Hv7/Y nzSD3rXZB/PoBy+5IF+/WwuZqReC13H06gjSH8ey40vBxqDB2LAaY8lJ5QP+ag27mTRj zpVj26zNmQyxN5qxdmNcVjF60nyb4RcHgehTg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IMuGwiUI0EfETQoabMM0Lz5NhtyafY6xTpTd+96DqlZXEUtPfYcDout0vC/U6jZvG4 c7T1ob74r4y7fgBj1Ru5iUlN2CYwDGWcmr61urx+QQQv0j9iCJ/8LuhvT/voFNPyi2ux dAMpN8e+no6Mh4Vg2pOAP1sEWxAeRvUCLTcXk= MIME-Version: 1.0 Received: by 10.216.85.194 with SMTP id u44mr1970845wee.65.1264704261087; Thu, 28 Jan 2010 10:44:21 -0800 (PST) Date: Thu, 28 Jan 2010 13:44:21 -0500 Message-ID: From: Thomas Burgess To: freebsd-xen@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD xen doesn't work in hvm mode on Solaris Dom0's 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: Thu, 28 Jan 2010 19:12:14 -0000 I have no problem installing FreeBSD as a hardware vm on Opensolaris Dom0's but as soon as i switch to pvm mode i run into netowrking problems. Is there a known fix for this? basically i get this: Bad packet length 3737169374. Disconnecting: Packet corrupt any help would be appreciated. I much prefer FreeBSD to Debian but if i can't use it in pvm mode i can't justify it performance wise. From owner-freebsd-xen@FreeBSD.ORG Fri Jan 29 18:45:20 2010 Return-Path: Delivered-To: freebsd-xen@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB0E6106566C; Fri, 29 Jan 2010 18:45:20 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B0C928FC17; Fri, 29 Jan 2010 18:45:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o0TIjKRx079679; Fri, 29 Jan 2010 18:45:20 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0TIjKao079675; Fri, 29 Jan 2010 18:45:20 GMT (envelope-from linimon) Date: Fri, 29 Jan 2010 18:45:20 GMT Message-Id: <201001291845.o0TIjKao079675@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-xen@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/143340: [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't work on solaris dom0's 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: Fri, 29 Jan 2010 18:45:20 -0000 Old Synopsis: FreeBSD 8-RELEASE XEN pvm networking doesn't work on solaris dom0's New Synopsis: [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't work on solaris dom0's Responsible-Changed-From-To: freebsd-bugs->freebsd-xen Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jan 29 18:45:02 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=143340