Can’t Create New Xen Domains Using Libvirt On CentOS 6.5
Hello,
we have a strange problem on a fresh install of CentOS 6.5. On the server we want to use Xen to host paravirtualised guests (the system has no hardware virtualization support). To manage the domain we would like to use libvirt. Xen and libvirt are set up as described here:
http://wiki.CentOS.org/HowTos/Xen/Xen4QuickStart http://wiki.CentOS.org/HowTos/Xen/Xen4QuickStart/Xen4Libvirt
When we try to create a new domain this does not work. In
/var/log/xen/xend.log we have to the following error:
[2014-01-28 10:23:02 1651] DEBUG (XendDomainInfo:103)
XendDomainInfo.create([‘vm’, [‘name’, ‘ccm’], [‘memory’, ‘1024’],
[‘maxmem’, ‘1024’], [‘vcpus’, ‘1’], [‘uuid’,
‘be62b0d3-4911-137f-210f-9b0948828106’], [‘bootloader’,
‘/usr/bin/pygrub’], [‘on_poweroff’, ‘destroy’], [‘on_reboot’,
‘restart’], [‘on_crash’, ‘restart’], [‘image’, [‘linux’, [‘localtime’,
‘0’]]], [‘localtime’, ‘0’], [‘device’, [‘vbd’, [‘dev’, ‘xvda’],
[‘uname’, ‘phy:/dev/medusa-vm/ccm’], [‘mode’, ‘w’]]], [‘device’, [‘vif’,
[‘mac’, ’00:16:3e:1c:ee:5b’], [‘bridge’, ‘br0’], [‘script’,
‘vif-bridge’], [‘model’, ‘virtio’]]]])
[2014-01-28 10:23:02 1651] DEBUG (XendDomainInfo:2499)
XendDomainInfo.constructDomain
[2014-01-28 10:23:02 1651] DEBUG (balloon:187) Balloon: 26832188 KiB
free; need 16384; done.
[2014-01-28 10:23:02 1651] ERROR (XendDomainInfo:2561) (1, ‘Operation not permitted’)
Traceback (most recent call last):
File “/usr/lib64/python2.6/site-packages/xen/xend/XendDomainInfo.py”, line 2556, in _constructDomain
target = self.info.target())
Error: (1, ‘Operation not permitted’)
[2014-01-28 10:23:02 1651] ERROR (XendDomainInfo:488) VM start failed Traceback (most recent call last):
File “/usr/lib64/python2.6/site-packages/xen/xend/XendDomainInfo.py”, line 473, in start
XendTask.log_progress(0, 30, self._constructDomain)
File “/usr/lib64/python2.6/site-packages/xen/xend/XendTask.py”, line
209, in log_progress
retval = func(*args, **kwds)
File “/usr/lib64/python2.6/site-packages/xen/xend/XendDomainInfo.py”, line 2567, in _constructDomain
raise VmError(failmsg)
VmError: Creating domain failed: name
2 thoughts on - Can’t Create New Xen Domains Using Libvirt On CentOS 6.5
Could you please post the output of xm dmesg?
Are xend and libvirt running as root? Do you have SELinux enabled?
Thanks for pointing me to xm dmesg. That was the missing part. The server has one of the AMD CPUs affected by this:
http://lists.xen.org/archives/html/xen-announce/2012-06/msg00002.html
So we had to add allow_unsafe to the boot line. Now Xen works fine.
Best regards,
Jens Pelzetter
Am 28.01.2014 14:41, schrieb Stefano Stabellini: