[Bug 1304008] [NEW] user not added to libvirtd group with iso trusty 'virtual machine host' installation method
Ryan Beisner
1304008 at bugs.launchpad.net
Mon Apr 7 20:15:10 UTC 2014
Public bug reported:
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('virConnectOpenAuth() failed')
libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
rbeisner at 130-5:~$ groups
rbeisner adm cdrom sudo dip plugdev lpadmin sambashare
* Take note, no libvirtd membership.
rbeisner at 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 at 130-5:~$ dpkg -l | egrep 'libvirt|virt-manager'
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 at bcu:~$ groups
rbeisner adm cdrom sudo dip plugdev lpadmin libvirtd sambashare
rbeisner at 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 at bcu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
Codename: trusty
rbeisner at bcu:~$ dpkg -l | egrep 'libvirt|virt-manager'
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.
** Affects: libvirt (Ubuntu)
Importance: Undecided
Status: New
** Tags: trusty
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/1304008
Title:
user not added to libvirtd group with iso trusty 'virtual machine
host' installation method
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1304008/+subscriptions
More information about the Ubuntu-server-bugs
mailing list