RHEL 5 create VM guest under KVM virtualization failed
Issue
When tried to setup a VM with virt-manager, it was failed and showed the following error message.
Unable to complete install 'libvirt.libvirtError internal error Process exited while reading console log output: 10:12:32.432: debug : qemudInitCpuAffinity:2259 : Setting CPU affinity
10:12:32.434: debug : qemuSecurityDACSetProcessLabel:547 : Dropping privileges of VM to 0:0
10:12:32.435: debug : __virExec:640 : Hook function failed.
libvir: Security Labeling error : unable to set security context 'system_u:system_r:svirt_t:s0:c15,c173': Invalid argument
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/create.py", line 730, in do_install
dom = guest.start_install(False, meter = meter)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 541, in start_install
return self._do_install(consolecb, meter, removeOld, wait)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 633, in _do_install
self.domain = self.conn.createLinux(install_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 1277, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error Process exited while reading console log output: 10:1:3.4: debug : qemudInitCpuAffinity:2259 : Setting CPU affinity
10:12:32.434: debug : qemuSecurityDACSetProcessLabel:547 : Dropping privileges of VM to 0:0
10:12:32.435: debug : __virExec:640 : Hook function failed.
libvir: Security Labeling error : unable to set security context 'system_u:system_r:svirt_t:s0:c15,c173': Invalid argument'
Environment
Red Hat Enterprise Linux 5.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.