WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with

To: "Igor Chubin" <igor@xxxxxxx>, <Keir.Fraser@xxxxxxxxxxxx>, <kip.macy@xxxxxxxxx>
Subject: RE: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB
From: "Patro, Sumant" <Sumant.Patro@xxxxxxx>
Date: Wed, 14 May 2008 12:07:59 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 May 2008 11:10:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080207183658.GB25056@xxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchpuEOlXfpDrlu+Rxa73lbTIpj+LBMMy2AQ
Thread-topic: [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@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Igor Chubin
Sent: Thursday, February 07, 2008 10:37 AM
To: Keir.Fraser@xxxxxxxxxxxx
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
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 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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

-- 
WBR, i.m.chubin


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users