Boris Derzhavets
2008-May-15 09:15 UTC
Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB
Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) http://bderzhavets.blogspot.com/2008/04/install-hvm-freebsd-7.html ----- Original Message ---- From: "Patro, Sumant" <Sumant.Patro@lsi.com> To: Igor Chubin <igor@chub.in>; Keir.Fraser@cl.cam.ac.uk; kip.macy@gmail.com Cc: xen-users@lists.xensource.com Sent: Wednesday, May 14, 2008 10:07:59 PM Subject: RE: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB Hello All, I am trying to install FreeBSD 7.0 (8.0-current) as a guest OS with RHEL 5.1/5.2. I compiled xen 3.2 with vmxassist=n as suggested in bug 622. After I installed and booted this xen kernel I have difficulty in starting the VMManager to create guest OS. Could anyone please provide details on which Linux OS & the tools I may use to install FreeBSD as guest. I also tried with the instructions @ http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization -guest.html with kernel7.0-Release and kernel8.0-current. With both of them I get a crash on doing xm create xmexample1.bsd -c. The trace is below : (XEN) Unhandled page fault in domain 1 on VCPU 0 (ec=0002) (XEN) Pagetable walk from 00000472: (XEN) L2[0x000] = 00000000 ffffffff (XEN) domain_crash_sync called from entry.S (ff157619) (XEN) Domain 1 (vcpu#0) crashed on cpu#1: (XEN) ----[ Xen-3.0.4-1 x86_32 debug=n Not tainted ]---- (XEN) CPU: 1 (XEN) EIP: e019:[<c0458a30>] (XEN) EFLAGS: 00000202 CONTEXT: guest b cr4: 000026d0 cr3: 0d873000 cr2: 00000472 (XEN) ds: e021 es: e021 fs: e021 gs: e021 ss: e021 cs: e019 (XEN) Guest stack trace from esp=c0c4fff0: (XEN) 00000002 c0458a30 0001e019 00010002 (XEN) Unhandled page fault in domain 2 on VCPU 0 (ec=0002) (XEN) Pagetable walk from 00000472: (XEN) L2[0x000] = 00000000 ffffffff (XEN) domain_crash_sync called from entry.S (ff157619) (XEN) Domain 2 (vcpu#0) crashed on cpu#1: (XEN) ----[ Xen-3.0.4-1 x86_32 debug=n Not tainted ]---- (XEN) CPU: 1 (XEN) EIP: e019:[<c0458a30>] (XEN) EFLAGS: 00000202 CONTEXT: guest (XEN) eax: 00000000 ebx: 00000000 ecx: 00000000 edx: 00000000 (XEN) esi: c0c47000 edi: 00000000 ebp: 00000000 esp: c0c4fff0 (XEN) cr0: 8005003b cr4: 000026d0002 c0458a30 0001e019 00010002 Unhandled page fault in domain 2llllllINIT: Switching to runlevel: 0 Thanks in advance. Your help is highly appreciated. Regards, Sumant -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Igor Chubin Sent: Thursday, February 07, 2008 10:37 AM To: Keir.Fraser@cl.cam.ac.uk Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB The problem is solved. Keir Fraser have said in Xen-devel mailing list that the problem should not exist in the current xen-unstable (since yesterday). I have just built xen-unstable and really there is no problem with usage of /boot/loader in an HVM domain even on a Intel-based host. So bug 622 does not exist anymore (at least for me). Thank all and thank Keir again. On Do, Feb 07, 2008 at 11:32:28 +0100, Oskar Lindgren wrote:> Hi, > > Yes, it is possible. That is how I do it. But io under freebsd isslow..> > / Oskar > > Igor Chubin skrev: >> Hello all, >> >> please tell me, >> >> >> is it possible (at least theoretically) to circumvent bug 622 [1] by >> using >> GRUB instead of /boot/loader to load FreeBSD kernel? >> >> Or it is silly idea: even if we bypass /boot/loader we will not beable>> to run FreeBSD kernel in a HVM-domain on a Intel-based host for some >> other reason? >> >> >> As far as I know, GRUB can''t load FreeBSD kernel >> directly, but only can make chainloading using /boot/loader. >> Certainly, it is not the solution, but there were patches >> to GRUB that allow to boot FreeBSD directly [2]. >> >> I want to try to use it and eliminate /boot/loader >> from boot process at all. >> >> >> What can you say about this idea? >> >> >> >> [1] http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=622 >> [2] http://savannah.gnu.org/bugs/?10728 >> >> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Patro, Sumant
2008-May-19 18:30 UTC
RE: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB
Thank you Boris. I could install FreeBSD 7.0 DomU with the instructions listed in the link you provided. Regards, Sumant ________________________________ From: Boris Derzhavets [mailto:bderzhavets@yahoo.com] Sent: Thursday, May 15, 2008 2:15 AM To: Patro, Sumant Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) http://bderzhavets.blogspot.com/2008/04/install-hvm-freebsd-7.html ----- Original Message ---- From: "Patro, Sumant" <Sumant.Patro@lsi.com> To: Igor Chubin <igor@chub.in>; Keir.Fraser@cl.cam.ac.uk; kip.macy@gmail.com Cc: xen-users@lists.xensource.com Sent: Wednesday, May 14, 2008 10:07:59 PM Subject: RE: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB Hello All, I am trying to install FreeBSD 7.0 (8.0-current) as a guest OS with RHEL 5.1/5.2. I compiled xen 3.2 with vmxassist=n as suggested in bug 622. After I installed and booted this xen kernel I have difficulty in starting the VMManager to create guest OS. Could anyone please provide details on which Linux OS & the tools I may use to install FreeBSD as guest. I also tried with the instructions @ http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization -guest.html with kernel7.0-Release and kernel8.0-current. With both of them I get a crash on doing xm create xmexample1.bsd -c. The trace is below : (XEN) Unhandled page fault in domain 1 on VCPU 0 (ec=0002) (XEN) Pagetable walk from 00000472: (XEN) L2[0x000] = 00000000 ffffffff (XEN) domain_crash_sync called from entry.S (ff157619) (XEN) Domain 1 (vcpu#0) crashed on cpu#1: (XEN) ----[ Xen-3.0.4-1 x86_32 debug=n Not tainted ]---- (XEN) CPU: 1 (XEN) EIP: e019:[<c0458a30>] (XEN) EFLAGS: 00000202 CONTEXT: guest b cr4: 000026d0 cr3: 0d873000 cr2: 00000472 (XEN) ds: e021 es: e021 fs: e021 gs: e021 ss: e021 cs: e019 (XEN) Guest stack trace from esp=c0c4fff0: (XEN) 00000002 c0458a30 0001e019 00010002 (XEN) Unhandled page fault in domain 2 on VCPU 0 (ec=0002) (XEN) Pagetable walk from 00000472: (XEN) L2[0x000] = 00000000 ffffffff (XEN) domain_crash_sync called from entry.S (ff157619) (XEN) Domain 2 (vcpu#0) crashed on cpu#1: (XEN) ----[ Xen-3.0.4-1 x86_32 debug=n Not tainted ]---- (XEN) CPU: 1 (XEN) EIP: e019:[<c0458a30>] (XEN) EFLAGS: 00000202 CONTEXT: guest (XEN) eax: 00000000 ebx: 00000000 ecx: 00000000 edx: 00000000 (XEN) esi: c0c47000 edi: 00000000 ebp: 00000000 esp: c0c4fff0 (XEN) cr0: 8005003b cr4: 000026d0002 c0458a30 0001e019 00010002 Unhandled page fault in domain 2llllllINIT: Switching to runlevel: 0 Thanks in advance. Your help is highly appreciated. Regards, Sumant -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Igor Chubin Sent: Thursday, February 07, 2008 10:37 AM To: Keir.Fraser@cl.cam.ac.uk Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB The problem is solved. Keir Fraser have said in Xen-devel mailing list that the problem should not exist in the current xen-unstable (since yesterday). I have just built xen-unstable and really there is no problem with usage of /boot/loader in an HVM domain even on a Intel-based host. So bug 622 does not exist anymore (at least for me). Thank all and thank Keir again. On Do, Feb 07, 2008 at 11:32:28 +0100, Oskar Lindgren wrote:> Hi, > > Yes, it is possible. That is how I do it. But io under freebsd isslow..> > / Oskar > > Igor Chubin skrev: >> Hello all, >> >> please tell me, >> >> >> is it possible (at least theoretically) to circumvent bug 622 [1] by >> using >> GRUB instead of /boot/loader to load FreeBSD kernel? >> >> Or it is silly idea: even if we bypass /boot/loader we will not beable>> to run FreeBSD kernel in a HVM-domain on a Intel-based host for some >> other reason? >> >> >> As far as I know, GRUB can''t load FreeBSD kernel >> directly, but only can make chainloading using /boot/loader. >> Certainly, it is not the solution, but there were patches >> to GRUB that allow to boot FreeBSD directly [2]. >> >> I want to try to use it and eliminate /boot/loader >> from boot process at all. >> >> >> What can you say about this idea? >> >> >> >> [1] http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=622 >> [2] http://savannah.gnu.org/bugs/?10728 >> >> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users