I know this has been flying around, but I haven''t been able to find a definitive answer or HOWTO that I can make work. I followed this HOWTO at http://txrx.org/xen/ and wound up with the following: # test.install domain config file kernel = "/etc/xen/vm/dev1/freebsd-INSTALL_XENU" memory = 32 name = "test" #cpu = -1 # leave to Xen to pick #nics = 1 vif = [ '''' ] disk = [ ''phy:/dev/ld0i,wd0d,rw'' ] extra = "vfs.root.mountfrom=ufs:/dev/md0a" [root@dev dev]# dd if=/dev/zero of=/dev/ld0i bs=1024k count=250 250+0 records in 250+0 records out So I then tried to create my domain, but it failed. [root@dev dev1]# xm create test.install Using config file "./test.install". Error: Building domain failed: ostype=linux dom=11 err[root@dev dev1]# I have even tried to use Kip''s http://www.fsmware.com/xenofreebsd/7.0/ download/config/xmexample1.bsd, http://www.fsmware.com/xenofreebsd/ 7.0/download/kernel-current and http://www.fsmware.com/xenofreebsd/ 7.0/download/mdroot-7.0.bz2, obviously first changing the xmexample1.bsd and unextracting the mdroot so my end result looks like this: # install-config domain config file kernel = "/etc/xen/vm/dev1.test1/kernel-current" memory = 64 name = "dev1" vif = [ '''' ] disk = [ ''file:/etc/xen/vm/dev1.test1/mdroot-7.0,hda1,w'' ] on_crash = ''preserve'' extra = "boot_verbose" extra += ",boot_single" extra += ",vfs.root.mountfrom=ufs:/dev/xbd769a" extra += ",kern.hz=100" [root@dev dev1.test1]# ls -al /etc/xen/vm/dev1.test1/ total 527632 drwxr-xr-x 2 root root 4096 Aug 15 13:39 . drwxr-xr-x 4 root root 4096 Aug 15 13:22 .. -rw-r--r-- 1 root root 5299 Aug 15 13:39 install-config -rwxr-xr-x 1 root root 2874150 Jan 12 2006 kernel-current -rw-r--r-- 1 root root 536870912 Jan 12 2006 mdroot-7.0 [root@dev dev1.test1]# Upon running xm create: [root@dev dev1.test1]# xm create install-config Using config file "./install-config". Error: Building domain failed: ostype=linux dom=12 err[root@dev dev1.test1]# Very lost at this point. Google has no useful info on the Building domain failed error for my case. Any help is appreciated. Thanks in advance. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dylan Martin
2007-Aug-15 22:23 UTC
Re: [Xen-users] FreeBSD as DomU (again, I know - sorry!)
I got OpenBSD running as an HVM guest (totally different than what you are doing). If that sounds interesting to you, my badly written notes are at: http://www.seattlecentral.edu/cgi-bin/cgiwrap/dmartin/moin.cgi/Xen#head-a53ebf22c9f622a01bd50c89e977a5589ab31b88 or http://tinyurl.com/3dsg9l -Dylan> I know this has been flying around, but I haven''t been able to find a > definitive answer or HOWTO that I can make work. > > I followed this HOWTO at http://txrx.org/xen/ and wound up with the > following: > > # test.install domain config file > kernel = "/etc/xen/vm/dev1/freebsd-INSTALL_XENU" > memory = 32 > name = "test" > #cpu = -1 # leave to Xen to pick > #nics = 1 > vif = [ '''' ] > disk = [ ''phy:/dev/ld0i,wd0d,rw'' ] > extra = "vfs.root.mountfrom=ufs:/dev/md0a" > > [root@dev dev]# dd if=/dev/zero of=/dev/ld0i bs=1024k count=250 > 250+0 records in > 250+0 records out > > So I then tried to create my domain, but it failed. > > [root@dev dev1]# xm create test.install > Using config file "./test.install". > Error: Building domain failed: ostype=linux dom=11 err> [root@dev dev1]# > > I have even tried to use Kip''s http://www.fsmware.com/xenofreebsd/7.0/ > download/config/xmexample1.bsd, http://www.fsmware.com/xenofreebsd/ > 7.0/download/kernel-current and http://www.fsmware.com/xenofreebsd/ > 7.0/download/mdroot-7.0.bz2, obviously first changing the > xmexample1.bsd and unextracting the mdroot so my end result looks > like this: > > # install-config domain config file > kernel = "/etc/xen/vm/dev1.test1/kernel-current" > memory = 64 > name = "dev1" > vif = [ '''' ] > disk = [ ''file:/etc/xen/vm/dev1.test1/mdroot-7.0,hda1,w'' ] > on_crash = ''preserve'' > extra = "boot_verbose" > extra += ",boot_single" > extra += ",vfs.root.mountfrom=ufs:/dev/xbd769a" > extra += ",kern.hz=100" > > [root@dev dev1.test1]# ls -al /etc/xen/vm/dev1.test1/ > total 527632 > drwxr-xr-x 2 root root 4096 Aug 15 13:39 . > drwxr-xr-x 4 root root 4096 Aug 15 13:22 .. > -rw-r--r-- 1 root root 5299 Aug 15 13:39 install-config > -rwxr-xr-x 1 root root 2874150 Jan 12 2006 kernel-current > -rw-r--r-- 1 root root 536870912 Jan 12 2006 mdroot-7.0 > [root@dev dev1.test1]# > > Upon running xm create: > > [root@dev dev1.test1]# xm create install-config > Using config file "./install-config". > Error: Building domain failed: ostype=linux dom=12 err> [root@dev dev1.test1]# > > Very lost at this point. Google has no useful info on the Building > domain failed error for my case. > > Any help is appreciated. > > Thanks in advance. > > _______________________________________________ > 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