Re: [libvirt] Web Interface -> LibVirt Communication?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, Jul 09, 2008 at 06:57:11AM -0700, Michael March wrote:
This might not be the 'right way' but here is how I handled communication to each Xen instance my web interface is managing. I used the ssh style connect string.. even if it was a local instance.. here is a line ripped right from my code:

server_list={"michael":['127.0.0.1',""], "tito":['192.168.101.5',""], "jermaine":['192.168.101.6',""}

.. then later in my code...

for server in server_list:
server_list[server][1] = libvirt.open('xen+ssh://root@'+server_list[server][0]+'/')

I wouldn't recommend using the SSH transport for serious management
tools. If you want a simple username/password based auth scheme which is trivial to setup, then the Digest-MD5 scheme is best bet. The
SSH tunnel capability is handy for ad-hoc sysadmin work, but it suffers
from having a high initial connection overhead and poor diagnostics when things go wrong.
Digest-MD5 is easy to setup, only requiring you to create a user on each
managed node which your app will authenticate as:

  http://libvirt.org/auth.html#ACL_server_username

When I looked at this it *seemed* you had to embed the username and password someplace in your code or a config file... did I get the wrong impression?

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]