From owner-freebsd-xen@FreeBSD.ORG Sat Feb 11 18:50:28 2012 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D5EA106564A for ; Sat, 11 Feb 2012 18:50:28 +0000 (UTC) (envelope-from baryluk@smp.if.uj.edu.pl) Received: from smp.if.uj.edu.pl (smp.if.uj.edu.pl [149.156.82.206]) by mx1.freebsd.org (Postfix) with ESMTP id 2FD888FC17 for ; Sat, 11 Feb 2012 18:50:27 +0000 (UTC) Received: from users.smp.if.uj.edu.pl (users.smp.if.uj.edu.pl [::ffff:10.0.1.244]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by smp.if.uj.edu.pl with esmtp; Sat, 11 Feb 2012 19:50:25 +0100 id 00014261.4F36B871.00006D3F Received: from baryluk by users.smp.if.uj.edu.pl with local (Exim 4.72) (envelope-from ) id 1RwI1g-0007ns-0e; Sat, 11 Feb 2012 19:50:24 +0100 Date: Sat, 11 Feb 2012 19:50:23 +0100 From: Witold Baryluk To: Trix Farrar Message-ID: <20120211185023.GD9347@smp.if.uj.edu.pl> References: <20120211165711.GB71096@basement.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <20120211165711.GB71096@basement.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Xen , Xen-Users Subject: Re: 9.0-RELEASE PV from scratch X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2012 18:50:28 -0000 On 02-11 10:57, Trix Farrar wrote: > Apologies for the re-post. Forgot to sign original. -Trx > Hi, about 2 weeks ago I written how to install FreeBSD-9.0 on PV without any additional help. All I needed was: Linux + Xen dom0 (i386 without HVM is sufficient!) FreeBSD-9.0 installation ISO file [1] Xen-enabled domU Kernel image (I downloaded one from Debian/GNU Linux [2]) (I hope next FreeBSD release will include this be default on ISO itself) You basically needs to unpack kernel image somewhere (in Debian it unpacks automatically into /boot/). Then use something like this for installation configuration (using xm or xl toolstack, do not know how with xcp but should be equally easy) $ cat kfreebsd9.cfg name = "my-freebsd" kernel = "/boot/kfreebsd-9.0-1-xen.gz" extra = "vfs.root.mountfrom=cd9660:/dev/da1" memrory = 256 disks = [ "file:/home/kfreebsd9-disk1.img,sda,w" ,"file:/home/FreeBSD-9.0-RELEASE-i386-dvd1.iso,sdb,r" ] $ You then start it without problem as: $ xm-or-xl create kfreebsd.cfg -c installator will start without a problem, and will ask about console/terminal type, I was using 'ansi' which made cursor and installer work relativly good. After installation is done, before shuting down, remember to add xen console to /etc/inittab! Then shutdown domain, and change config file to: $ cat kfreebsd9.cfg name = "my-freebsd" kernel = "/boot/kfreebsd-9.0-1-xen.gz" extra = "vfs.root.mountfrom=ufs:/dev/da0p2" memrory = 256 disks = [ "file:/home/kfreebsd9-disk1.img,sda,w" ] $ Thats it: remove installation ISO file from disks, and change 'extra' parameter, to now boot from disk. You can now boot again: $ xm-or-xl create kfreebsd.cfg -c Thats all. Network configuration can be done also relativly easly after that. Hope this helps. [1] ftp://ftp.FreeBSD.org/pub/FreeBSD/releases/i386/i386/ISO-IMAGES/9.0/FreeBSD-9.0-RELEASE-i386-disc1.iso [2] Debian: apt-get install kfreebsd-image-9-xen # you can also try kfreebsd-image-10-xen on-Debian: go to http://packages.debian.org/sid/kfreebsd-image-9.0-1-xen , download section is on the bottom, you need i386, not kfreebsd-i386! -- Witold Baryluk