Skip to contentSkip to conversation

access remote xen server using sudo user

DISCUSSION ganesh kg 2 participants 2 messages Nov 28, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

ganesh kg

author
#1 lore raw

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)

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 3 lines · ganesh kg

HI,

Hi,

Quoted 7 lines

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?

This is a libvirt question. This mailing list's topic is the development of the Xen hypervisor (https://xenproject.org/developers/te
ams/hypervisor.html)

I am Cc-ing one of the Xen developers that does a lot of libvirt work, but I really think that you better contact libvirt specific users or developers mailing lists:

https://www.redhat.com/mailman/listinfo/libvir-list
https://www.redhat.com/mailman/listinfo/libvirt-users

Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel