Here's one approach to solving the problem, liberally borrowed from
MythTV.

When running mythfrontend, it runs a script that checks if you're a
member of the mythtv group, and if not, it warns you about this, and
offers you the opportunity to enter your password, and it will try to
use sudo to add you to the appropriate group.

I'm attaching a debdiff that adds just such a script, /usr/bin/virt-
manager-check-groups.  On launching virt-manager, it will loop through
the groups (kvm, libvirtd, vde2-net), and if the group exists, it will
check if the current user is a member.

<aside>
The bulk of the code is trying to figure out if you're running gnome or kde, 
and finding the correct helper applications.  Really, it would be nice if this 
entire script were a nice little standalone tool of its own, taking any group 
as an input.
</aside>

** Attachment added: "virt-manager-check-groups.debdiff"
   http://launchpadlibrarian.net/13880679/virt-manager-check-groups.debdiff

-- 
virDomainCreateLinux() failed Timed out while reading console startup output
https://bugs.launchpad.net/bugs/187048
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to