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

Re: [Libvir] lxc patches



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
<domain type='lxc'>
    <name>TestContainer1</name>
    <os>
        <init>/usr/sbin/lxc_rcinit</init>
    </os>
    <memory>65536</memory>
    <devices>
        <filesystem type='mount'>
            <source dir='/home/dlesko/lxc_files/tmp/'/>
            <target dir='/tmp/'/>
        </filesystem>
        <console tty='/dev/ptmx'/>
    </devices>
</domain>
<domain type='linuxcontainer'>
    <name>TestContainer2</name>
    <os>
        <init>/usr/sbin/sshd -D -p 2100</init>
    </os>
    <memory>65536</memory>
    <devices>
        <filesystem type='mount'>
            <source dir='/home/dlesko/lxc_files/tmp/'/>
            <target dir='/tmp/'/>
        </filesystem>
        <console tty='/dev/ptmx'/>
    </devices>
</domain>

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