Igor Chubin
2008-Feb-07 08:33 UTC
[Xen-users] Loading FreeBSD in an HVM-domain on Intel-based host with GRUB
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 be able 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 -- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Oskar Lindgren
2008-Feb-07 10:32 UTC
Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-based host with GRUB
Hi, Yes, it is possible. That is how I do it. But io under freebsd is slow.. / 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 be able 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
Igor Chubin
2008-Feb-07 15:41 UTC
Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-based host with GRUB
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 is slow..Oskar, can you show your grub.conf? Have you patched GRUB or you have used GRUB from ports?> > / 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 be able >> 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
Igor Chubin
2008-Feb-07 18:36 UTC
Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-based host 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 is slow.. > > / 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 be able >> 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
Patro, Sumant
2008-May-14 18:07 UTC
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
Freddie Cash
2008-May-14 21:36 UTC
Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB
On May 14, 2008 11:07 am Patro, Sumant wrote:> 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.Search the freebsd -stable and -current mailing list archives for March/April. I posted the configs I used to install FreeBSD 6.3 and 7.0 (32-bit and 64-bit) into Xen HVMs. I used Debian Lenny with the 2.6.24 kernel and modules from Ubuntu. And I also tried Ubuntu 8.04 beta. Eventually, I gave up on Xen on Debian/Ubuntu (too many issues on hardware that required a newer dom0 kernel than 2.6.18) and moved to KVM as it was a lot simpler to install, a lot simpler to configure, and things just worked with it (like bonding eth3 through eth6 into a single interface, and using that as the bridge interface, without any IPs associated to them, with eth0 as a management NIC with an IP -- something I could never get to work under Xen, and that no one here could provide any insight into). -- Freddie Cash fjwcash@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Patro, Sumant
2008-May-15 18:16 UTC
RE: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhostwith GRUB
Hello Freddie, I located your email with the config information. I am using xen 3.1. When I run xm create a.cfg -c I get "OSError: [ErrNo 3] No such process]". Any pointers ? Thank you for your reply and time. Regards, Sumant -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Freddie Cash Sent: Wednesday, May 14, 2008 2:36 PM To: xen-users@lists.xensource.com Subject: Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhostwith GRUB On May 14, 2008 11:07 am Patro, Sumant wrote:> 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 havedifficulty> 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.Search the freebsd -stable and -current mailing list archives for March/April. I posted the configs I used to install FreeBSD 6.3 and 7.0 (32-bit and 64-bit) into Xen HVMs. I used Debian Lenny with the 2.6.24 kernel and modules from Ubuntu. And I also tried Ubuntu 8.04 beta. Eventually, I gave up on Xen on Debian/Ubuntu (too many issues on hardware that required a newer dom0 kernel than 2.6.18) and moved to KVM as it was a lot simpler to install, a lot simpler to configure, and things just worked with it (like bonding eth3 through eth6 into a single interface, and using that as the bridge interface, without any IPs associated to them, with eth0 as a management NIC with an IP -- something I could never get to work under Xen, and that no one here could provide any insight into). -- Freddie Cash fjwcash@gmail.com _______________________________________________ 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
Reasonably Related Threads
- (XEN) mm.c:707:d49 Error getting mfn 2fef3 (pfn 6aef3) from L1 entry
- Xen 3.2.1-rc1: ptwr_emulate: could not get_page_from_l1e()
- latest pv_ops dom0 (2.6.29-rc6) crashes / unhandled page fault
- debian lenny domU installation
- 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap