Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. groupadd virtadmin
  2. usermod -a -G virtadmin davec
  3.  
  4. uid=500(davec) gid=500(davec) groups=500(davec),36(kvm),501(virtadmin)
  5.  
  6. Remote libvirt SSH access]
  7. Identity:unix-group:virtadmin
  8. Action:org.libvirt.unix.manage
  9. ResultAny=yes
  10. ResultInactive=yes
  11. ResultActive=yes
  12.  
  13. polkit.addRule(function(action, subject) {
  14. if (action.id == "org.libvirt.unix.manage" &&
  15. subject.local &&
  16. subject.active &&
  17. subject.isInGroup("virtadmin")) {
  18. return polkit.Result.YES;
  19. }
  20. });
  21.  
  22. [davec@polar rules.d]$ virsh -c xen:///
  23. error: failed to connect to the hypervisor
  24. error: internal error: DBus support not compiled into this binary
  25.  
  26. [davec@polar rules.d]$ sudo virsh -c xen:///
  27. Welcome to virsh, the virtualization interactive terminal.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement