Xen dhcp

From Yefu's notes
Jump to: navigation, search

1. configuration file:

kernel = "/home/yefu/vms/kernel/vmlinuz-2.6.31.12yefu.domU"
#kernel = "/home/yefu/vms/x1/vmlinuz"
#ramdisk = "/home/yefu/vms/x1/initrd.img"
memory = 256
name = "x1"
vif = [ 'mac=00:16:30:00:00:01, bridge=eth0' ]
#disk = [ 'file:/home/yefu/vms/gentoo.2010-0.x86-64.img,hda,w' ]
ip="192.168.1.71"
netmask="255.255.255.0"
gateway="192.168.1.1"
hostname= "x1"
#root = "/dev/xvda"
extra = "root=/dev/nfs rw nfsroot=192.168.1.65:/home/yefu/vms/x4 ip=192.168.1.100::192.168.1.1:255.255.255.0:mydm:eth0:off"
#extra = "root=/dev/nfs rw nfsroot=192.168.1.65:/home/yefu/vms/x4 ip=dhcp"

For domU, compile a kernel. debian.5-0.x86-64.img works. Downloaded from here