[libvirt-users] LXCs using Libvirt

2015-06-04 Thread Anu Mercian
Hi all, I am trying to bring up lxc's using Libvirt JAVA API. I do the following: conn = Connect("lxc:\\\") xml_config = " <\domain>" dom = conn.domainCreateXML(xml_config, 0) dom.create() Using the above code, I am able to start a domain but the domain is not visible within the "lxc" li

Re: [libvirt-users] LXCs using Libvirt

2015-06-09 Thread Anu Mercian
Thanks for the explanation Jiri! On Thu, Jun 4, 2015 at 11:43 PM, Jiri Denemark wrote: > On Thu, Jun 04, 2015 at 16:22:43 -0700, Anu Mercian wrote: > > Hi all, > > > > I am trying to bring up lxc's using Libvirt JAVA API. I do the following: > > > > conn =

[libvirt-users] SSH into LXC and install files via JAVA API

2015-06-10 Thread Anu Mercian
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 mygue

[libvirt-users] Libvirt LXC hostname

2015-06-12 Thread Anu Mercian
Hello, I am trying to bring up an lxc with Centos 6.6 using libvirt command: "virsh -c lxc:/// create vm.xml" When I do the above, the new VM created gets the hostname of the host where libvirt is installed. When I looked up help on the past mail-lists. It seems like this was a problem back in 2