我目前正在使用 Xen 来安装 VM guest,但是每当我们运行时
xm create -c /etc/xen/ks.test.cfg
我们得到;
Using config file "/etc/xen/ks.test.cfg".
Error: Bootloader isn't executable
ks.test.cfg内容如下;
# Configuration file for the Xen instance ks.test, created
# by xen-tools 3.8 on Thu Jan 31 16:18:09 2013.
#
#
# Kernel + memory size
#
bootloader = '/usr/lib/xen/boot/hvmloader'
memory = '512'
#
# Disk device(s).
#
root = '/dev/sda1 ro'
disk = [
'file:/home/xen/domains/ks.test/disk.img,sda1,w',
]
#
# Hostname
#
name = 'ks.test'
#
# Networking
#
vif = [ 'ip=**.**.***.***,mac=**:**:**:**:**:**' ]
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
请注意,我故意删除了 ip 和 mac。