Re: [libvirt] Update to libvirt-lxc driver doc page
Quoting Eric Blake (ebl...@redhat.com): > On 06/07/2010 08:55 AM, Serge Hallyn wrote: > > Here is a new drvlxc.html.in file to make the first example work. I'll > > play with the second example next. > > Thanks for the sample text; it looked good to me on a first read. Are > you willing to finish out this patch by also including the patch to > Makefile.am to generate drvlxc.html and distribute the new file? Hi Eric, docs/Makefile has dot_html_in = $(wildcard *.html.in) and 'make distdir' does compile drvlxc.html So when I get the second part of drvlxc.html.in updated, I'll send a git diff for the whole thing. thanks, -serge -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Update to libvirt-lxc driver doc page
Quoting Eric Blake (ebl...@redhat.com): > http://libvirt.org/git/?p=libvirt.git;a=blob;f=README-hacking Doh - I had no idea the web pages were just sitting in libvirt.git/docs! Now it all makes sense. Thanks. -serge -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Update to libvirt-lxc driver doc page
On 06/15/2010 04:18 PM, Eric Blake wrote: >> find /usr -name libvirt_lxc >> >> should take its place. > > Doh! Yep, that would explain it. I'll try again ;) Yes, it worked just fine with /usr/libexec/libvirt_lxc - I was able to attach to a limited lxc console. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Update to libvirt-lxc driver doc page
On 06/15/2010 04:11 PM, Serge E. Hallyn wrote: >> Thanks for the sample text; it looked good to me on a first read. Are >> you willing to finish out this patch by also including the patch to >> Makefile.am to generate drvlxc.html and distribute the new file? > > Uh, sure. As I got yelled at last time for not sending the .in file > I was sure it was in there. But I see it, will send an update. Hmm, we're probably confusing each other. Sorry about that ;) Your previous email attached drvlxc.html.in, and I thought it was a new file; but looking at git, it is already an existing file. So the question now is generating the diff between your version and what is already in git. > I used ubuntu lucid. I'll try to reproduce in an uptodate fedora 13. > However LIBVIR_LXC_CMD shouldn't be in the xml at all, rather the > result of > > find /usr -name libvirt_lxc > > should take its place. Doh! Yep, that would explain it. I'll try again ;) > > (I haven't yet attacked the second example, so if you prefer to wait > for a single complete update, I'll try to get to that soon-ish) At this point, since you are improving an existing file, rather than writing a new one, it's a lot easier to maintain your changes in git and post just the changeset that describes the differences. The README-hacking file has some hints for first-time git users, and both the list and IRC can serve as additional resources if you have more questions. http://libvirt.org/git/?p=libvirt.git;a=blob;f=README-hacking -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Update to libvirt-lxc driver doc page
Quoting Eric Blake (ebl...@redhat.com): > On 06/07/2010 08:55 AM, Serge Hallyn wrote: > > Here is a new drvlxc.html.in file to make the first example work. I'll > > play with the second example next. > > Thanks for the sample text; it looked good to me on a first read. Are > you willing to finish out this patch by also including the patch to > Makefile.am to generate drvlxc.html and distribute the new file? Uh, sure. As I got yelled at last time for not sending the .in file I was sure it was in there. But I see it, will send an update. > However, when I tried the example, I got: > > $ virsh --connect lxc:/// start vm1 > error: Failed to start domain vm1 > error: internal error Container 'LIBVIR_LXC_CMD' unexpectedly shutdown > during startup > > when using the virsh in Fedora 13 (libvirt-0.7.7-4.fc13.x86_64). What > setup did you test with, to help me in updating my system to have a > similar setup? I used ubuntu lucid. I'll try to reproduce in an uptodate fedora 13. However LIBVIR_LXC_CMD shouldn't be in the xml at all, rather the result of find /usr -name libvirt_lxc should take its place. (I haven't yet attacked the second example, so if you prefer to wait for a single complete update, I'll try to get to that soon-ish) thanks, -serge -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Update to libvirt-lxc driver doc page
On 06/07/2010 08:55 AM, Serge Hallyn wrote: > Here is a new drvlxc.html.in file to make the first example work. I'll > play with the second example next. Thanks for the sample text; it looked good to me on a first read. Are you willing to finish out this patch by also including the patch to Makefile.am to generate drvlxc.html and distribute the new file? However, when I tried the example, I got: $ virsh --connect lxc:/// start vm1 error: Failed to start domain vm1 error: internal error Container 'LIBVIR_LXC_CMD' unexpectedly shutdown during startup when using the virsh in Fedora 13 (libvirt-0.7.7-4.fc13.x86_64). What setup did you test with, to help me in updating my system to have a similar setup? -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Update to libvirt-lxc driver doc page
Here is a new drvlxc.html.in file to make the first example work. I'll play with the second example next. thanks, -serge LXC container driver The libvirt LXC driver manages "Linux Containers". Containers are sets of processes with private namespaces which can (but don't always) look like separate machines, but do not have their own OS. Here are two example configurations. The first is a very light-weight "application container" which does not have it's own root image. You would start it using Example config version 1 vm1 50 exe /bin/sh 1 destroy restart destroy LIBVIR_LXC_CMD In place of LIBVIR_LXC_CMD, use the result of the command find /usr -name libvirt_lxc The next example assumes there is a private root filesystem (perhaps hand-crafted using busybox, or installed from media, debootstrap, whatever) under /opt/vm-1-root: vm1 32768 exe /init 1 destroy restart destroy LIBVIR_LXC_CMD In both cases, you can define and start a container using: virsh --connect lxc:/// define v1.xml virsh --connect lxc:/// start vm1 and then get a console using: virsh --connect lxc:/// console vm1 Now doing 'ps -ef' will only show processes in the container, for instance. You can undefine it using virsh --connect lxc:/// undefine vm1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list