[CentOS-virt] Can't create new Xen domains using libvirt on CentOS 6.5

Tue Jan 28 13:41:48 UTC 2014
Stefano Stabellini <stefano.stabellini at eu.citrix.com>

On Tue, 28 Jan 2014, Jens Pelzetter wrote:
> 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:

Could you please post the output of xm dmesg?


> [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')

Are xend and libvirt running as root? Do you have SELinux enabled?