Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2009 19:40:37 +0200 (CEST)
From:      xen@komadev.de
To:        Manuel Steudtner <manuel.steudtner@intrail.de>
Cc:        freebsd-xen@freebsd.org
Subject:   Re: FreeBSD on domU, now
Message-ID:  <32302488.19541240940437540.JavaMail.root@zim.freshx.de>
In-Reply-To: <6179730.19521240940348277.JavaMail.root@zim.freshx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

We're playing with FBSD8 (paravirt) for some time now, with these results:

- current CentOS 5.2+ (64bit) with Xen 3.3.1 installed via this XEN repo (remove CentOS Xen first): 

http://www.gitco.de/linux/x86_64/centos/5/rpms/

- self made kernel available from

http://kai.freshx.de/kernel-17022009

- you need to install a FBSD8 (32bit!!!) (including svn) and take a snapshot of the disk via dd into system.img (have at least 6 GB space for rebuild of the system later), 
-> fstab should mount / as /dev/ad0s1a
-> xn0 is the netIF. 
-> add this line to /etc/ttys: 
xc0     "/usr/libexec/getty Pc"         vt100   on  secure

- bsd8.cfg looks like this

kernel = "/XEN/bsd8/kernels/kernel-17022009"
memory = 1024
name = "bsd8"
vif = ['mac=00:12:34:56:78:90, bridge=xenbr0']
disk = [ 'file:/XEN/bsd8/system.img,hda,w' ]
extra = "boot_verbose"
extra += ",vfs.root.mountfrom=ufs:/dev/ad0s1a"
on_poweroff = 'destroy'
on_crash    = 'destroy'
on_reboot   = 'restart'

- update to current SVN tree with

# svn checkout http://svn.freebsd.org/base/head /usr/src

- rebuild everything with

# cd /usr/src
# make cleandepend
# make clean
# make depend
# make buildworld
# make kernel KERNCONF=XEN
...

Please note, that rebuilding the svn repo fails to build from time to time ... :-(

Rgds K

On 4/28/09 5:48 PM, "Manuel Steudtner" <manuel.steudtner@intrail.de> wrote:

> Hi Alex,
> 
> ----- "Alex Urbanowicz" <alex.urbanowicz@artegence.com> wrote:
> 
>> Hello!
>> 
>> I need to set up a FreeBSD domU on a CentOS box, for testing purposes
>> and maybe later for production app. Any documentation I found
>> basically
>> redirects me to Kip Macy's fsmware.com which is down. Is there a
>> mirror
>> of the stuff anywhere? Is there a possibility of setting the stuff up
>> from grounds up without having to keep a separate FreeBSD box for
>> building bootstrap?
>> 
>> TIA
>> 
>> Alex
> 
> did you succeed building a FreeBSD domU fitting into your CentOS environment? 
> I'm curios if you can share some sort of cookbook fragment.
> 
> Kind regards,
> Manuel
> 
> 
> _______________________________________________
> freebsd-xen@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32302488.19541240940437540.JavaMail.root>