LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 09-09-2011, 03:08 AM   #1
priyana
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
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
 
Old 09-09-2011, 06:24 AM   #2
brak44
Member
 
Registered: Aug 2010
Location: Brisbane Australia
Distribution: Centos, Fedora
Posts: 81

Rep: Reputation: 23
Rus,
It is not that difficult.
Start again - this time just run virt-manager
 
Old 09-16-2011, 01:13 AM   #3
priyana
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Libvirt installation from source - CentOS sethusubbiah Linux - Software 1 08-03-2011 04:34 PM
KVM administration through LibVirt from windows machine Mohan.Sundar Linux - Virtualization and Cloud 3 05-03-2011 11:31 AM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 12:00 AM
Freshly installed Slackware 13.1 font help. Laxman_prodigy Slackware 4 01-03-2011 06:36 AM
Freshly Installed Ubuntu 9.10 freezing up gribbsy Ubuntu 1 11-06-2009 06:33 PM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration