Xen config file

From Yefu's notes
Jump to: navigation, search

NFSROOT:

kernel = "/home/yefu/vms/kernel/vmlinuz-2.6.31.12yefu.domU"
memory = 256
name = "x0"
vif = [ 'mac=00:16:30:01:00:00, bridge=eth0' ]
hostname= "x0"
vcpus = 7
extra = "root=/dev/nfs rw nfsroot=192.168.1.65:/home/yefu/vms/x0 ip=192.168.1.100::192.168.1.1:255.255.255.0:mydm:eth0:off"

Hard disk

kernel = "/home/yefu/vms/kernel/vmlinuz-2.6.31.12yefu.domU"
memory = 256
name = "x1"
vcpus = 4
vif = [ 'mac=00:16:30:01:00:01, bridge=eth0' ]
hostname= "x1"
disk = ['file:/home/yefu/vms/x1.disk,xvda1,w']
#extra = "root=/dev/nfs rw nfsroot=192.168.1.65:/home/yefu/vms/x1 ip=192.168.1.101::192.168.1.1:255.255.255.0:x:eth0:off"
extra = "root=/dev/xvda1 rw