SSH into LXC and install files via JAVA API

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

 



Hello everyone,

I am trying to use libvirt's JAVA API to ssh into a domain and install some files, for example, dhcpd. Using virsh, its pretty straight forward using the command line:

virsh -c lxc:/// create myguest.xml

virsh -c lxc:/// console myguest

virsh -c lxc:/// lxc-enter-namespace myguest -- sudo yum install dhcpd

But in order to incorporate the above functionality in a JAVA API, I am not really sure what to do. The following command helps me ssh into a system, but I am not sure how to send remote commands.

conn = Connect("lxc+ssh:///")

Please can someone help me out with this?

Thank you,
Anu


_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux