[Libvir] [RFC] Add Container support to libvirt

Dave Leskovec dlesko at linux.vnet.ibm.com
Tue Jan 15 08:26:43 UTC 2008


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

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>
   <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




More information about the libvir-list mailing list