sudo with virsh

scar scar at drigon.com
Mon Feb 1 16:32:20 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Markus Schönhaber @ 02/01/2010 02:49 AM:
> 01.02.2010 10:28, scar:
> 
>> seems to me something went wrong, and that i should be able to
>> manage/start/stop the VM without super-user privileges.  any ideas?
> 
> Is the user account you want to manage VMs with member of the 'libvirtd'
> group?

i did run the command 'sudo adduser `id -un` libvirtd', and i do get
output like this:

$ virsh -c qemu:///system list
 Id Name                 State
- ----------------------------------

$

if i try running 'sudo adduser `id -un` libvirtd' again, i am told i am
already a member of the libvirtd group.  however, when i run the
'groups' command, the libvirtd group is not listed:

$ sudo adduser `id -un` libvirtd
The user `scar' is already a member of `libvirtd'.
$ groups
scar adm dialout cdrom floppy audio dip video plugdev scanner fuse
lpadmin admin netdev sambashare

-----BEGIN PGP SIGNATURE-----

iEYEAREIAAYFAktnAhQACgkQXhfCJNu98qA3xwCdF0f9pCkMUnyc7MR7hOuxftrs
OHsAn0JBi8PqRd7ft65VdnM96o2+nfyi
=MuNL
-----END PGP SIGNATURE-----





More information about the ubuntu-users mailing list