user not added to libvirtd group with iso trusty 'virtual machine host' installation method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
user-setup (Ubuntu) |
Fix Released
|
High
|
Colin Watson | ||
Bug Description
user not added to libvirtd group with iso trusty 'virtual machine host' installation method
##### Scenario #####
* User installs Trusty server from ISO (daily build 20140407 in this case).
* User selects Virtual Machine Host from the software selection menu, otherwise, installation defaults are kept.
* After installation completes, user execs: apt-get install virt-manager
* User reboots the box and/or logs off and logs back in
* User can't connect to libvirtd with virt-manager because of group membership.
* Take note that this issues does not appear to surface when installing libvirt, KVM, et al, via apt-get. It appears to affect the ISO 'Virtual Machine Host' installation method only.
* I've also confirmed that the apt-get installation method does indeed add the user to the libvirtd group on the same base ISO release.
.
----- Error Detail -----
virt-manager 'unable to connect to libvirt.'
Verify that:
- The 'libvirt-bin' package is installed
- The 'libvirtd' daemon has been started
- You are a member of the libvirtd group
line 105, in openAuth
if ret is None:raise libvirtError(
libvirtError: Failed to connect socket to '/var/run/
rbeisner@130-5:~$ groups
rbeisner adm cdrom sudo dip plugdev lpadmin sambashare
* Take note, no libvirtd membership.
rbeisner@130-5:~$ uname -a
Linux 130-5 3.13.0-23-generic #45-Ubuntu SMP Fri Apr 4 06:58:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
rbeisner@130-5:~$ dpkg -l | egrep 'libvirt|
ii libvirt-bin 1.2.2-0ubuntu10 amd64 programs for the libvirt library
ii libvirt0 1.2.2-0ubuntu10 amd64 library for interfacing with different virtualization systems
ii python-libvirt 1.2.2-0ubuntu1 amd64 libvirt Python bindings
ii virt-manager 0.9.5-1ubuntu3 all desktop application for managing virtual machines
.
##### Workaround #####
$ sudo usermod -a -G libvirtd yourusername
$ groups
yourusername adm cdrom sudo dip plugdev libvirtd lpadmin sambashare
* Log out, log in, launch virt-manager, it connects to libvirtd successfully.
.
##### Expected Results #####
* Users who are members of the sudo group should also be members of the libvirtd group, and should be able to manage libvirt using virt-manager. In an older build of Trusty daily ISO, it did behave as expected, as shown below:
rbeisner@bcu:~$ groups
rbeisner adm cdrom sudo dip plugdev lpadmin libvirtd sambashare
rbeisner@bcu:~$ uname -a
Linux bcu 3.13.0-22-generic #44-Ubuntu SMP Wed Apr 2 20:05:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
rbeisner@bcu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
Codename: trusty
rbeisner@bcu:~$ dpkg -l | egrep 'libvirt|
ii libvirt-bin 1.2.2-0ubuntu10 amd64 programs for the libvirt library
ii libvirt0 1.2.2-0ubuntu10 amd64 library for interfacing with different virtualization systems
ii python-libvirt 1.2.2-0ubuntu1 amd64 libvirt Python bindings
ii virt-manager 0.9.5-1ubuntu3 all desktop application for managing virtual machines
* virt-manager gui can connect to libvirtd without adjusting group membership.
Changed in libvirt (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in user-setup (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in libvirt (Ubuntu): | |
status: | Triaged → Fix Released |
Reference - possibly related bug 1124127 /bugs.launchpad .net/ubuntu/ quantal/ +source/ libvirt/ +bug/1124127
'sudo group users not added to libvirtd group on install'
https:/