permission denied setting up a kvm machine

Bug #1324460 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byov
Won't Fix
High
Vincent Ladeuil

Bug Description

I'm trying to set up a kvm machine, but it fails on setup with the following error:

ERROR:
  command: virsh list --all
  retcode: 1
  output:

  error: error: failed to connect to the hypervisor
error: no valid connection
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied

This is my uci-vms.conf file:

[utopic-pristine]
vm.name=utopic-pristine
vm.class=kvm
vm.release=utopic
vm.cpu_model=amd64

To reproduce, run:

python uci-vms setup utopic-pristine --download

I'm using uci-vms from trunk on an utopic kvm.

Tags: elopio qa-new uci
Revision history for this message
Vincent Ladeuil (vila) wrote :

Are you a member of the libvirtd group ?

If that's the root cause, uci-vms should emit a better message.

Changed in uci-vms:
status: New → Incomplete
Revision history for this message
Leo Arias (elopio) wrote :

I am.

$ groups
elopio adm cdrom sudo dip plugdev lpadmin sambashare autopilot libvirtd

Changed in uci-vms:
status: Incomplete → New
Revision history for this message
Vincent Ladeuil (vila) wrote :

> I am.

Damn, I need a way to reproduce then :-/ Or at least more details about what is causing the issue.

Changed in uci-vms:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Vincent Ladeuil (vila) wrote :

This has been tracked in the test suite for quite some time now.

Several similar cases have been fixed but the issue is not fixed: there are races involved when trying to use libvirt this way.

Basically qemu/kvm should be used instead of libvirt so this bug won't be fixed. Sorry.

affects: uci-vms → byov
Changed in byov:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.