LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Can't create new kvm using libvirt in freshly installed Centos 6 (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/cant-create-new-kvm-using-libvirt-in-freshly-installed-centos-6-a-902082/)

priyana 09-09-2011 03:08 AM

Can't create new kvm using libvirt in freshly installed Centos 6
 
Hi,

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
"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.

Regards.

Rus

brak44 09-09-2011 06:24 AM

Rus,
It is not that difficult.
Start again - this time just run virt-manager

priyana 09-16-2011 01:13 AM

I managed to find out more and get this working.
Apparently I still have NetworkManager running, and it just won't work with bridge networking.
I added
DELAY=0
NM_CONTROLLED=no

to my ifcfg-br0
and I can start my kvm domain.

Hope that helps others with same issue.

Rus


All times are GMT -5. The time now is 04:19 PM.