sudo with virsh

Markus Schönhaber ubuntu-users at
Mon Feb 1 16:42:02 UTC 2010

01.02.2010 17:32, scar:

> Markus Schönhaber @ 02/01/2010 02:49 AM:

>> 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
> ----------------------------------

Which looks good - provided there are no VMs running.
virsh list --all
should also show VMs defined but not running.

> 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

Did you log out after adding the account to the libvirtd group?


More information about the ubuntu-users mailing list