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

Jens Pelzetter jens.pelzetter at googlemail.com
Tue Jan 28 16:00:19 UTC 2014


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:
> 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?
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt at centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
> 



More information about the CentOS-virt mailing list