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

Re: [Libvir] [RFC] Add Container support to libvirt



Dave Leskovec wrote:
> Greetings,
>
> Following up on the XML format for the Linux Container support I
> proposed...  I've made the following recommended changes:
> * Changed mount tags
> * Changed nameserver tag to be consistent with gateway
> * Moved cpushare and memory tags outside container tag

You might want to look at
https://www.redhat.com/archives/libvir-list/2008-January/msg00097.html
which has already gone through this process once before (though no
comments have been made on that particular format).

> This is the updated format:
> <domain type='linuxcontainer'>
>    <name>Container123</name>
>    <uuid>8dfd44b31e76d8d335150a2d98211ea0</uuid>
>    <container>
>        <filesystem>
>            <mount>
>                <source dir="/home/user/lxc_files/etc/"/>
>                <target dir="/etc/"/>
>            </mount>
>            <mount>
>                <source dir="/home/user/lxc_files/var/"/>
>                <target dir="/var/"/>
>            </mount>
>        </filesystem>
>        <application>/usr/sbin/container_init</application>
>        <network hostname='browndog'>
>            <ip address="192.168.1.110" netmask="255.255.255.0"/>
>                <gateway address="192.168.1.1"/>
>                <nameserver address="192.168.1.1"/nameserver>
>            </ip>
>        </network>
>    </container>
>    <cpushare>40</cpushare>

This is tuning information and doesn't belong in the XML. (Unless I missed
the follow-ups on that discussion.)

>    <memory>65536</memory>
>    <devices>
>        <console tty='/dev/pts/4'/>
>    </devices>
> </domain>
>
> Does this look ok now?  All comments and questions are welcome.
>
> --
> Best Regards,
> Dave Leskovec
> IBM Linux Technology Center
> Open Virtualization


-- 
Daniel Hokka Zakrisson


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