* access remote xen server using sudo user
[not found] <612807387.2112044.1480336960200.ref@mail.yahoo.com>
@ 2016-11-28 12:42 ` ganesh kg
2016-11-28 17:31 ` Dario Faggioli
0 siblings, 1 reply; 2+ messages in thread
From: ganesh kg @ 2016-11-28 12:42 UTC (permalink / raw)
To: xen-devel@lists.xen.org
[-- Attachment #1.1: Type: text/plain, Size: 661 bytes --]
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)
[-- Attachment #1.2: Type: text/html, Size: 2176 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: access remote xen server using sudo user
2016-11-28 12:42 ` access remote xen server using sudo user ganesh kg
@ 2016-11-28 17:31 ` Dario Faggioli
0 siblings, 0 replies; 2+ messages in thread
From: Dario Faggioli @ 2016-11-28 17:31 UTC (permalink / raw)
To: ganesh kg, xen-devel@lists.xen.org; +Cc: Jim Fehlig
[-- Attachment #1.1: Type: text/plain, Size: 1069 bytes --]
On Mon, 2016-11-28 at 12:42 +0000, ganesh kg wrote:
>
> HI,
>
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?
>
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
--
<<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)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-28 17:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <612807387.2112044.1480336960200.ref@mail.yahoo.com>
2016-11-28 12:42 ` access remote xen server using sudo user ganesh kg
2016-11-28 17:31 ` Dario Faggioli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).