Installing in Xen 3.0 -Diff-


Mon Oct 12 15:04:08 CES 2009, miller

These instructions are for Xen 3. See installing in xen for Xen 2.0 instructions.

INSTALL XEN

	xend start

CREATE A PLAN9 DOMAIN

	 linux$ mkdir /usr/xen9
	 linux$ cd /usr/xen9
	 linux$ mv /somepath/9xeninst.gz .
	 linux$ mv /somepath/9xenpcf.gz .
	 linux$ mv /somepath/9xenpccpuf.gz .
	 linux$ mv /somepath/plan9.iso .
	 linux$ dd if=/dev/zero of=plan9.img seek=$((1024 * 1024 * 1024 - 1)) bs=1 count=1
	 linux$ cat > /etc/xen/plan9inst
	 kernel = "/usr/xen9/9xeninst.gz"
	 memory = 96
	 name = "plan9"
	 vif = [ 'mac=aa:00:10:00:00:10' ]
	 disk = [ 'file:/usr/xen9/plan9.img,sda,w',
	          'file:/usr/xen9/plan9.iso,sdb,r' ]
	 restart = 'never'
	 
	 # This is the equivalent of plan9.ini:
	 extra="""
	 nobootprompt=local!/boot/bzroot
	 bootfile=sd01!cdboot!bootdisk.img
	 """
	 ^D
	dev 3 sector xx, write: 0, should be 4608
When asked for the location of the archive simply enter "/" for the root of the cdrom. At the end of the install when it asks for a blank floppy simply reboot the machine:
	 linux$ xm create plan9inst -c
	 ...
	 % inst/textonly
	 ...
	 ^T^Tr      <- to reboot when you're done
	 linux$ cat > /etc/xen/plan9
	 kernel = "/usr/xen9/9xenpcf.gz"
	 memory = 96
	 name = "plan9"
	 vif = [ 'mac=aa:00:10:00:00:10' ]
	 disk = [ 'file:/usr/xen9/plan9.img,sda,w' ]
	 restart = 'never'
	 
	 # This is the equivalent of plan9.ini:
	 extra="""
	 bootargs=local!#S/sd00/fossil
	 """
	 ^D
	 linux$ xm create plan9 -c
	 % cd /sys/src/9/xen3 && mk 'CONF=xenpcf'

To build a kernel to run in PAE mode, add 'PAE=yes' to the mk command (or edit the mkfile to make it the default).