Ask Your Question
1

libvirt issue on CentOS 7 with Kilo

asked 2015-05-26 15:27:42 -0500

donaldmize gravatar image

updated 2015-05-27 14:17:59 -0500

I tried the following, but it fails. I believe I have everything that needs to be installed, right?

[root@anders-21 ~]# virsh --connect qemu:///system error: failed to connect to the hypervisor error: no connection driver available for qemu:///system [root@anders-21 ~]# yum list | grep qemu ipxe-roms-qemu.noarch 20130517-5.gitc4bce43.el7 @CENTOS70 libvirt-daemon-driver-qemu.x86_64 1.2.8-16.el7_1.3 @updates qemu-guest-agent.x86_64 10:1.5.3-60.el7_0.11 @updates qemu-img.x86_64 10:1.5.3-60.el7_0.11 @updates qemu-kvm.x86_64 10:1.5.3-60.el7_0.11 @updates qemu-kvm-common.x86_64 10:1.5.3-60.el7_0.11 @updates

I'm trying to set up a compute node on CentOS 7 with the Kilo version. My machine has hardware virtualization. However when I try to start up the opestack-nova-compute service, I get the below in the log file.

2015-05-26 10:46:29.227 7683 TRACE nova.virt.libvirt.host libvirtError: no connection driver available for qemu:///system

I have all the libvirt packages below installed on the system. I've played around with the 'virt_type' parameter in the nova.conf file and it won't work unless I set it for lxc! I don't want lxc, I want kvm at least for now.

[root@anders-21 nova]# yum list | grep libvirt
libvirt.x86_64                          1.2.8-16.el7_1.3               @updates 
libvirt-client.x86_64                   1.2.8-16.el7_1.3               @updates 
libvirt-daemon.x86_64                   1.2.8-16.el7_1.3               @updates 
libvirt-daemon-config-network.x86_64    1.2.8-16.el7_1.3               @updates 
libvirt-daemon-config-nwfilter.x86_64   1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-interface.x86_64  1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-lxc.x86_64        1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-network.x86_64    1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-nodedev.x86_64    1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-nwfilter.x86_64   1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-qemu.x86_64       1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-secret.x86_64     1.2.8-16.el7_1.3               @updates 
libvirt-daemon-driver-storage.x86_64    1.2.8-16.el7_1.3               @updates 
libvirt-daemon-kvm.x86_64               1.2.8-16.el7_1.3               @updates 
libvirt-devel.x86_64                    1.2.8-16.el7_1.3               @updates 
libvirt-docs.x86_64                     1.2.8-16.el7_1.3               @updates 
libvirt-gconfig.x86_64                  0.1.7-3.el7                    @CENTOS70
libvirt-glib.x86_64                     0.1.7-3.el7                    @CENTOS70
libvirt-gobject.x86_64                  0.1.7-3.el7                    @CENTOS70
libvirt-java.noarch                     0.4.9-4.el7                    @CENTOS70
libvirt-java-devel.noarch               0.4.9-4.el7                    @CENTOS70
libvirt-python.x86_64                   1.2.8-7.el7_1.1                @updates

Any ideas?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-05-27 15:57:50 -0500

donaldmize gravatar image

I uninstalled all the libvirt stuff, reinstalled it, and updated it. Now it seems to be working!!!! On to the next step!

edit flag offensive delete link more
1

answered 2015-05-27 00:01:41 -0500

dbaxps gravatar image

updated 2015-05-28 02:06:22 -0500

UPDATE 05/28/2015
Appears to be not Openstack issue, as I expected
END UPDATE
Please, just run virsh connect :-

[root@fedora21wks01 ~]# virsh --connect qemu:///system
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # version
Compiled against library: libvirt 1.2.9
Using library: libvirt 1.2.9
Using API: QEMU 1.2.9
Running hypervisor: QEMU 2.1.3
edit flag offensive delete link more

Comments

Hi, Where did you get libvirt 1.2.9 from? The stock version for CentOS seems to be 1.2.8. I actually need 1.2.9 myself, so I was wondering what repos you are using?

DaveJ gravatar imageDaveJ ( 2015-06-09 03:08:09 -0500 )edit
0

answered 2015-05-26 23:53:52 -0500

Gauvain Pocentek gravatar image

Some additional checks to perform:

  • Make sure that qemu-kvm is installed
  • Make sure that /dev/kvm is usable by nova
  • Make sure that the libvirtd service is enabled/started
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-05-26 15:27:42 -0500

Seen: 2,666 times

Last updated: May 28 '15