[Libvir] [RFC] Linux-VServer support

Daniel Hokka Zakrisson daniel at hozac.com
Thu Nov 1 02:09:00 UTC 2007

Daniel Veillard wrote:
> On Wed, Oct 31, 2007 at 02:39:05PM +0100, Daniel Hokka Zakrisson wrote:
>> Daniel Veillard wrote:
>>>  I looked at the code, that seems clean but I have a concern about the
>>> overall XML format. Could you paste a couple of examples. Also I think
>>> Linux-VServer and OpenVZ kind of configuration may end up with the same
>>> kind of limitations or differences, so I would like to try to harmonize
>>> both format when possible.
>> Currently, the XML format is really limited. Are there any docs on what 
>> should be there, or should I just look at the other drivers? As far as 
>> harmonizing with the OpenVZ driver, I'm fine with that, but it seems to 
>> be pretty limited and, to some degree at least, ugly.
>   Harmonizing the XML formats shouldn't be that hard ...
> We discussed the OpenVZ format there
>   http://www.redhat.com/archives/libvir-list/2007-July/msg00347.html
> and around there earlier:
>   http://www.redhat.com/archives/libvir-list/2007-March/msg00193.html
> For network settings
>   http://www.redhat.com/archives/libvir-list/2007-July/msg00366.html
>  <snip>

After looking at the various drivers, this is what I propose:

<domain type='vserver' id='2000'>
   <scheduler fill_rate1='100' interval1='1000'>
     <cpu id='0' fill_rate1='0'/>
     <cpu id='1' fill_rate1='250' interval1='1000' idle_time='1' 
fill_rate2='250' interval2='1000'/>
     <uts hostname='testvm' machine='i586'/>
     <distribution method='debootstrap' release='etch'/>
     <disk type='path' device='path'>
       <source path='/vservers/testvm'/>
       <target path='/'/>
     <disk type='block' device='path'>
       <source dev='/dev/hda4'/>
       <target path='/var'/>
     <disk type='path' device='path'>
       <source path='/home/testvm'/>
       <target path='/home'/>
     <interface type='vserver'>
       <ip family='IPv4' address='' prefix='24' interface='eth0'/>
     <interface type='vserver'>
       <ip family='IPv4' address='' address2='' 
prefix='24' type='range'/>
     <interface type='vserver'>
       <ip family='IPv6' address='dead:beef:dead:beef::1' prefix='64' 

I realize this is not at all similar to what the OpenVZ driver does, but 
if necessary I could update that to use a similar scheme (though limited 
in testing).

Daniel Hokka Zakrisson

More information about the libvir-list mailing list