[libvirt-users] sudo user to access xen server remotely.
ganesh kg
ganesh_kg at yahoo.com
Tue Nov 29 11:22:46 UTC 2016
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20161129/8d8a9e98/attachment.htm>
More information about the libvirt-users
mailing list