[libvirt-users] sudo user to access xen server remotely.

29 Nov
2016
29 Nov
'16
6:22 a.m.
HI, i am trying to use sudo user to access xen server remotely. As its documented, libvirtd can be accessed only through root user or users from libvirtd usergroup. is there any tweak or possibility to access libvirt remotely through sudo user? or by using certificate? code snippet: #!/usr/bin/env python import sys import libvirt conn = libvirt.open('xen+ssh://sudo_user@xen_server') <== Trying to establish connection to the remote xen using sudo user. if conn == None: print('Failed to open connection to xen+ssh:xen_server') exit(1) host = conn.getHostname() print('Hostname:'+host) conn.close() exit(0)
3213
Age (days ago)
3213
Last active (days ago)
0 comments
1 participants
participants (1)
-
ganesh kg