kvm - Failed to connect

asked 2015-02-13 03:38:45 -0600

djepnguyen gravatar image

updated 2015-02-13 03:41:14 -0600

Dear all , i already installed openstack successfull. Now i want to create a custome image. I installed ubuntu 14.04 desktop by VMware and enable VT-x. i check my system with

egrep -c ‘(svm|vmx)’ /proc/cpuinfo

it said :


then i install kvm by a username (diepnguyen) which i enter when VMware ask me before install ubuntu 14.04

sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager

next step:

sudo adduser diepnguyen libvirtd

it said:

this user already in sudoers

ok , i tried to check kvm with

virsh -c qemu:///system list

it said:

$ virsh -c qemu:///system list
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
error: failed to connect to the hypervisor

i changed to root and check with below command.it said:

error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
error: failed to connect to the hypervisor

i tried to read here to resolve:


but is not successfull. my PC is i3 and can install openstack and luanch cirros , ubuntu server. Anyone can help me . Thanks a lot.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-02-13 04:22:31 -0600

moto gravatar image

Try to logout and login again and type virsh -c qemu:///system list.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-02-13 03:38:45 -0600

Seen: 4,316 times

Last updated: Feb 13 '15