[Libvir] lxc patches

Sorry - I should have mentioned that the two lxc patches I just posted are built on Dan B's patch. The order is this: Dan's patch lxc_start.patch lxc_stop.patch Thanks! -- Best Regards, Dave Leskovec IBM Linux Technology Center Open Virtualization

On Wed, Mar 26, 2008 at 11:35:08PM -0700, Dave Leskovec wrote:
Sorry - I should have mentioned that the two lxc patches I just posted are built on Dan B's patch. The order is this:
Dan's patch
commited,
lxc_start.patch
reviewed
lxc_stop.patch
reviewed Now the next major block for me is actually testing it. How do you do this ? Any instructions (or did i missed them) ? Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

On Thu, Mar 27, 2008 at 09:26:08AM -0400, Daniel Veillard wrote:
On Wed, Mar 26, 2008 at 11:35:08PM -0700, Dave Leskovec wrote:
Sorry - I should have mentioned that the two lxc patches I just posted are built on Dan B's patch. The order is this:
Dan's patch
commited,
lxc_start.patch
reviewed
lxc_stop.patch
reviewed
Now the next major block for me is actually testing it. How do you do this ? Any instructions (or did i missed them) ?
Fedora 9 beta has a new enough kernel. You'll need to create a OS distro install for the root filesystem - the 'image-creator' tool that is in the livecd-tools package can install to a file which you can then mount loopback to get your root FS for the container. The next release will have an explicit chroot-creator which will be perfect for this container virt. Dan. -- |: Red Hat, Engineering, Boston -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Daniel Veillard wrote:
On Wed, Mar 26, 2008 at 11:35:08PM -0700, Dave Leskovec wrote:
Sorry - I should have mentioned that the two lxc patches I just posted are built on Dan B's patch. The order is this:
Dan's patch
commited,
lxc_start.patch
reviewed
lxc_stop.patch
reviewed
Now the next major block for me is actually testing it. How do you do this ? Any instructions (or did i missed them) ?
Daniel
I've been testing with fairly simple container setup so far. I've attached a couple XML files I've used to define a container through virsh like this: virsh # create tmp_only.xml tmp_only.xml points to an init script lxc_rcinit. The script is pretty simple - it just does an exec /bin/bash. Once the container is running, you should be able to connect to it's console in virsh. ssh_container.xml starts an sshd using port 2100. In both, you can either remove the filesystem block or at least change the source dir to something that exists on your system. -- Best Regards, Dave Leskovec IBM Linux Technology Center Open Virtualization
participants (3)
-
Daniel P. Berrange
-
Daniel Veillard
-
Dave Leskovec