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: "Patro, Sumant" <Sumant.Patro@xxxxxxx>
Subject: Re: [Xen-users] Loading FreeBSD in an HVM-domain on Intel-basedhost with GRUB
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Thu, 15 May 2008 02:15:15 -0700 (PDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 May 2008 02:15:49 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=L/H1kx3Qn1PNe/ASNdTP82C72n8vAemyS9MzBiiKlu/6yp2dohQEzERgvwd07R4AhsHHh8Z8KUOL2MXOOvSxOfbBNg5/qt3tMe134o/FgKmkbc9Iyj+xPkn/nRdaOZSh678JsRDJrumKYe0//MXw5eWqkQ7Rqejv8G8pV97uvDQ=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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

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@xxxxxxx>
To: Igor Chubin <igor@xxxxxxx>; Keir.Fraser@xxxxxxxxxxxx; kip.macy@xxxxxxxxx
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
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@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

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