<div dir="ltr">Hello everyone,<div><br></div><div>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:</div><div><br></div><div>virsh -c lxc:/// create myguest.xml</div><div><br></div><div>virsh -c lxc:/// console myguest</div><div><br></div><div>virsh -c lxc:/// lxc-enter-namespace myguest -- sudo yum install dhcpd</div><div><br></div><div>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.</div><div><br></div><div>conn = Connect("lxc+ssh:///")</div><div><br></div><div>Please can someone help me out with this?</div><div><br></div><div>Thank you,</div><div>Anu</div><div><br></div><div><br></div></div>