Can't create new kvm using libvirt in freshly installed Centos 6
I am having trouble creating new KVM in Centos 6.
I have just installed it using netinstall method, chosing Development Workstation (which I believe has almost all packages installed).
I did yum update to the latest.
Also saw that libvirtd is already started.
So I go ahead and modify the network to use bridge.
I then use the command as root:
#virt-manager -c qemu:///system --show-domain-creator
I give it a name, choose my iso, specify the OS type, all ok up to step 5 of 5.
When I click Finish, I will get
Unable to complete install '<class 'libvirt.libvirtError'> internal error Process exited while reading console log output:
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/create.py", line 1561, in do_install
dom = guest.start_install(False, meter = meter)
File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 973, in start_install
return self._do_install(consolecb, meter, removeOld, wait)
File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1038, in _do_install
File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1009, in _create_guest
dom = self.conn.createLinux(start_xml, 0)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1270, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error Process exited while reading console log output:
That is the error I get, and the same error about "Process exited while reading console log output" if I use the virt-install command line.
My first instict is about permision.
So far what I have done is
- disabled SElinux from /etc/selinux/ (SELINUX=disabled)
- in /etc/libvirt/libvirt.conf disable TLS (listen_tls = 0)
- in /etc/libvirt/qemu/qemu.conf disable TLS (vnc_tls = 0)
- I even change mod 777 to all directories under /var/lib/libvirt including itself
This installation is almost as is out of the box, except for those loosening I did.
Does anyone has any guide on how to use KVM in Centos 6 straight out of the box?
Most documentation I read didn't even touch SElinux.
Any help will be appreciated.