Ask Your Question
0

kvm - Failed to connect

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

djepnguyen gravatar image

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

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 :

2

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:

http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor

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
0

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

moto gravatar image

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

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

2 followers

Stats

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

Seen: 4,261 times

Last updated: Feb 13 '15