Rainer Brinkmöller
2005-Nov-13 19:59 UTC
[Xen-users] any Install howto for FreeBSD as domU with netbsd as dom0?
Is there any other installation howto then the short text file http://www.fsmware.com/xenofreebsd/5.3/xenbsdsetup.txt also then this instructions http://lists.xensource.com/archives/html/xen-users/2005-09/msg00187.html ? What i am looking for is something like a short step by step instruction for setup FreeBSD as domU on a NetBSD dom0. Does only FreeBSD 5.3 work as a domU? What about FreeBSD 6.0? Is xen support part of the FreeBSD 6.0 Release? Should it be possible to setup FreeBSD 6.0 as domU like NetBSD as domU the way the howto of NetBSD describes (http://www.netbsd.org/Ports/xen/howto.html)? Is there a special FreeBSD kernel (like freebsd-domU and freebsd-instll) to create it? Which NetBSD Version/Release to use (-current)? thanks for information _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kip Macy
2005-Nov-14 05:33 UTC
Re: [Xen-users] any Install howto for FreeBSD as domU with netbsd as dom0?
On 11/13/05, Rainer Brinkmöller <rainer.brinkmoeller@web.de> wrote:> > Is there any other installation howto then the short text file > http://www.fsmware.com/xenofreebsd/5.3/xenbsdsetup.txt > also then this instructions > http://lists.xensource.com/archives/html/xen-users/2005-09/msg00187.html ? > > What i am looking for is something like a short step by step instruction > for setup FreeBSD as domU on a NetBSD dom0.The setup is pretty dom0 agnostic. You just need a kernel a root block device and an appropriate config file. Does only FreeBSD 5.3 work as a domU? What about FreeBSD 6.0? Is xen> support part of the FreeBSD 6.0 Release?Yes, and only on 2.0.7. Too much has changed in 3.0. Support for 6.0 will be added after 5.3 is made to work again on 3.0. Eventually xen support will go into FreeBSD CVS. Should it be possible to setup FreeBSD 6.0 as domU like NetBSD as domU> the way the howto of NetBSD describes > (http://www.netbsd.org/Ports/xen/howto.html)? Is there a special FreeBSD > kernel (like freebsd-domU and freebsd-instll) > to create it? Which NetBSD Version/Release to use (-current)?See the NetBSD HOWTOs for dom0 setup info. -Kip _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Brookes
2005-Nov-14 15:04 UTC
Re: [Xen-users] any Install howto for FreeBSD as domU with netbsd as dom0?
On 13/11/05, Rainer Brinkmöller <rainer.brinkmoeller@web.de> wrote:> (http://www.netbsd.org/Ports/xen/howto.html)? Is there a special FreeBSD > kernel (like freebsd-domU and freebsd-instll)I have been trying to build a freebsd53-domu-install image, so far without much luck. I took the boot.flp from FreeBSD5.3-RELEASE, mounted it, and took out the mfsroot.gz file, which I unzipped. I first built a FreeBSD 5.3 kernel using Kip''s instructions, which managed to spring to life as a DOMU with no issues, both obviously it wouldn''t boot or do much beyond print device info. Next, I compiled a new kernel with MD_ROOT_SIZE and MD_ROOT set, and then used the instructions here: (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=4169710+0+archive/2005/freebsd-questions/20050327.freebsd-questions) ... to try and embed my mfsroot in to the kernel. This worked fine, well, the root file went in to the kernel anyway. When booting the newly create image (using "vfs.root.mountfrom=ufs:md0,boot_verbose=yes" on the command line) .. the domain crashes immediately and I get no output. Both my Xen and FreeBSD knowledge are a bit light at this time, so I didn''t go much further with this yet. I also discovered this document: http://ezine.daemonnews.org/200211/monolithic-kernel.html, describing how to link a root file system in to a compiled kernel. I read through the simple patch that modifies sys/md/md.c and a couple of other things, and it looked easy enough, so I manually applied the patch to the 5.3 xen kernel source, and followed the instructions. I ended up with another kernel + root image that looked good, but again it wouldn''t boot as a domU, and blew up without printing any console messages (that I could see when I launched it with xm create) Has anyone else done this already, or am I trying to do something that''s just not possible? Regards Chris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Brookes
2005-Nov-15 05:02 UTC
Re: [Xen-users] any Install howto for FreeBSD as domU with netbsd as dom0?
On 14/11/05, Chris Brookes <cbrookes@gmail.com> wrote:> Has anyone else done this already, or am I trying to do something > that''s just not possible?Well after a bit more experimentation I made some progress. It turns out that embedding an mfsroot using the write_mfs_in_kernel does actually work: so long as the mfsroot is less than 1385K. Sadly that''s not quite enough to get the 2.4MB standard 5.3 install mfsroot going though. Anyway, at least I''ve seen my FreeBSD guest boot in to sysinstall for the first time :) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kip Macy
2005-Nov-16 17:30 UTC
Re: [Xen-users] any Install howto for FreeBSD as domU with netbsd as dom0?
The way the initial memory space gets setup there is no way MFS could work. It wasn't an anticipated use. I guess somewhere either in FreeBSD GNATS or xen's bugzilla there should be i386-xen FreeBSD bugs filed for me to track. -Kip On 11/14/05, Chris Brookes <cbrookes@gmail.com> wrote:> > On 13/11/05, Rainer Brinkmöller <rainer.brinkmoeller@web.de> wrote: > > > (http://www.netbsd.org/Ports/xen/howto.html)? Is there a special FreeBSD > > kernel (like freebsd-domU and freebsd-instll) > > I have been trying to build a freebsd53-domu-install image, so far > without much luck. I took the boot.flp from FreeBSD5.3-RELEASE, > mounted it, and took out the mfsroot.gz file, which I unzipped. > > I first built a FreeBSD 5.3 kernel using Kip's instructions, which > managed to spring to life as a DOMU with no issues, both obviously it > wouldn't boot or do much beyond print device info. > > Next, I compiled a new kernel with MD_ROOT_SIZE and MD_ROOT set, and > then used the instructions here: > ( > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=4169710+0+archive/2005/freebsd-questions/20050327.freebsd-questions > ) > > ... to try and embed my mfsroot in to the kernel. This worked fine, > well, the root file went in to the kernel anyway. When booting the > newly create image (using > "vfs.root.mountfrom=ufs:md0,boot_verbose=yes" on the command line) .. > the domain crashes immediately and I get no output. Both my Xen and > FreeBSD knowledge are a bit light at this time, so I didn't go much > further with this yet. > > I also discovered this document: > http://ezine.daemonnews.org/200211/monolithic-kernel.html, describing > how to link a root file system in to a compiled kernel. I read through > the simple patch that modifies sys/md/md.c and a couple of other > things, and it looked easy enough, so I manually applied the patch to > the 5.3 xen kernel source, and followed the instructions. I ended up > with another kernel + root image that looked good, but again it > wouldn't boot as a domU, and blew up without printing any console > messages (that I could see when I launched it with xm create) > > Has anyone else done this already, or am I trying to do something > that's just not possible? > > Regards > > Chris > > _______________________________________________ > 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
Geoff Buckingham
2005-Nov-16 20:05 UTC
Re: [Xen-users] any Install howto for FreeBSD as domU with netbsd as dom0?
On Wed, Nov 16, 2005 at 09:30:11AM -0800, Kip Macy wrote:> The way the initial memory space gets setup there is no way MFS could work. > It wasn''t an anticipated use. I guess somewhere either in FreeBSD GNATS or > xen''s bugzilla there should be i386-xen FreeBSD bugs filed for me to track. > > -Kip >I had given this some thought, but not actually tried it yet. If you just unzip your mfs and treat it as a file backed block device it may work. (Have a look at the live 2.06 demo CD that has a freebsd.fs file it uses this way). However you will run into another problem. sysinstall doesn''t know about xbd* or xn*. You will at least need to add then to /usr/src/usr.sbin/sysinstall/devices.c and recompile before sysinstall is usefull under xen. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users