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

xen-users

[Top] [All Lists]

Re: [Xen-users] Booting FreeBSD diskless in DomU

To: Kip Macy <kip.macy@xxxxxxxxx>
Subject: Re: [Xen-users] Booting FreeBSD diskless in DomU
From: Geoff Buckingham <geoffb@xxxxxxxxxxxxxxxxxxx>
Date: 2005年9月11日 08:48:09 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2005年9月11日 08:46:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050908213608.GB6351@xxxxxxxxxxxxxxxxxxx>
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>
References: <20050908164020.GB44248@xxxxxxxxxxxxxxxxxxx> <b1fa291705090811425f089afb@xxxxxxxxxxxxxx> <20050908213608.GB6351@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Thu, Sep 08, 2005 at 09:36:08PM +0000, Geoff Buckingham wrote:
> On Thu, Sep 08, 2005 at 11:42:29AM -0700, Kip Macy wrote:
> > I vaguely recall disabling xenFreeBSD's diskless support. One alternative 
> > is 
> > to have a small loopback mounted root with the majority of your files 
> > exported over NFS.
> > 
> It seems odd that it hangs in the bpf initialisation though.
>
> When you say you disabled xenFreeBSD's diskless support, is it missing an 
> option NFSROOT in the kernel or has the code gone?
>
To answer my own question for the sake of the archive, to boot diskless
FreeBSD DomU environment you need to follw Kip Macey's instuctions with a
few changes:
Download and extract the xen 2.0.7 source tarball.
Download FreeBSD 5.3 source. I was able to use a cvsup of RELENG_5_3 which
incorporates the security fixes since 5.3 RELEASE.
I used the i386-xeno.tgz source from
http://www.fsmware.com/xenofreebsd/5.3/050123/i386-xeno.tgz
ther may be a more recent tarball...this worked so far.
Building the current image:
1) on a machine running FreeBSD 5.3 download i386-xeno.tgz
kmacy@freebird cd /sys
kmacy@freebird tar xzf ~/i386-xeno.tgz 
kmacy@freebird cd conf
(assumes csh)
kmacy@freebird foreach file ( ../i386-xeno/sys/conf/*.i386-xeno )
foreach? ln -s $file
kmacy@freebird cd ../i386-xeno/conf/
Edit XENCONF, uncomment "options NFS_ROOT" and add the following:
 options BOOTP
 options BOOTP_NFSROOT
 options BOOTP_COMPAT
As I had some issues compiling agp kernel modules I didn't need I suggest you
edit /etc/make.conf and add 'NO_MODULES="YES"'
# create compile directory
kmacy@freebird config XENCONF 
Kernel build directory is ../compile/XENCONF
Don't forget to do a ``make depend''
kmacy@freebird cd ../../include/
# link in xen interface headers
kmacy@freebird ln -s <PATH to your XEN source>/xen/include/public hypervisor-ifs
kmacy@freebird cd ../compile/XENCONF
kmacy@freebird make kernel-depend
# build kernel
kmacy@freebird make -j4 kernel
<...>
linking kernel.debug
 text data bss dec hex filename
2057881 135964 179472 2373317 2436c5 kernel.debug
objcopy --strip-debug kernel.debug kernel 
The kernel you get is only realy any good for diskless use but needs no extra
kenv arguments passed to it. It will pick up NFS server and path from a DHCP
or BOOTP server. (i.e. you can comment out all the 'extra' string definitions
in freebsd.phy
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-users] Xen 2.0.7 network issues and Vncserver in Dom0 , Steven Ellis
Next by Date: [Xen-users] xen kernels and config , Ghe Rivero
Previous by Thread: Re: [Xen-users] Booting FreeBSD diskless in DomU , Geoff Buckingham
Next by Thread: Re: [Xen-users] Booting FreeBSD diskless in DomU , Kip Macy
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /