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)