我正在尝试在 SunFire X4200 上设置 Xen VM。我使用的是 Debian Wheezy,并遵循了本指南 https://wiki.debian.org/Xen我之前在不同服务器上尝试过这个方法,没有任何问题。我知道另一台相同型号的服务器已经托管了一些 xen VM,所以我不明白为什么这个方法对我来说不起作用
xm create xxx.cfg
Using config file "/etc/xen/xxx.cfg".
Error: Creating domain failed: name=xxx
这是我的xxx.cfg:
# Configuration file for the Xen instance xxx, created
# by xen-tools 4.3.1 on Fri Jun 20 00:51:12 2014.
#
#
# Kernel + memory size
#
kernel = '/boot/vmlinuz-3.2.0-4-amd64'
ramdisk = '/boot/initrd.img-3.2.0-4-amd64'
vcpus = '1'
memory = '2048'
#
# Disk device(s).
#
root = '/dev/xvda2 ro'
disk = [
'phy:/dev/xen-vol/xxx-disk,xvda2,w',
'phy/dev/xen-vol/xxx-swap,xvda1,w',
]
#
# Physical volumes
#
#
# Hostname
#
name = 'xxx'
#
# Networking
#
dhcp = 'dhcp'
vif = [ 'mac=***,bridge=xenbr0' ]
#
# Behaviour
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
在图像创建日志中,一切似乎都正常,除了:
mv: cannot stat '/tmp/Wtd9_3apX5/sbin/initctl': No such file or directory
xend.log 报告错误:
[2014-06-20 10:49:05 21306] ERROR (XendDomainInfo:2560) (1, 'Operation not permitted')
Traceback (most recent call last):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2555, in _constructDomain
target = self.info.target())
Error: (1, 'Operation not permitted')
[2014-06-20 10:49:05 21306] ERROR (XendDomainInfo:488) VM start failed
Traceback (most recent call last):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 473, in start
XendTask.log_progress(0, 30, self._constructDomain)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2566, in _constructDomain
raise VmError(failmsg)
VmError: Creating domain failed: name=xxx
[2014-06-20 10:49:05 21306] ERROR (XendDomainInfo:108) Domain construction failed
Traceback (most recent call last):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 106, in create
vm.start()
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 473, in start
XendTask.log_progress(0, 30, self._constructDomain)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwd
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2566, in _constructDomain
raise VmError(failmsg)
VmError: Creating domain failed: name=xxx
有什么提示吗?
答案1
结果是 AMD Opteron 254 有问题,我不得不删除 xen 中的安全选项(在尝试创建 VM 后通过发出 xm dmesg 发现)