[Libvir] [PATCH] Linux-VServer support

Daniel Hokka Zakrisson daniel at hozac.com
Wed Jan 9 21:51:20 UTC 2008


This patch implements support for Linux-VServer guests. It is currently
missing vcpu and console support, and the necessary virsh code to support
it, but is otherwise pretty feature complete.

This is an XML dump from one of my guests:
<domain type='vserver' id='40010'>
  <name>lenny</name>
  <uuid>19e12957-261a-5a06-d6d0-89917d6d439f</uuid>
  <memory>2048000</memory>
  <os>
    <hostname>lenny.test</hostname>
    <type arch='i686'>vserver</type>
  </os>
  <devices>
    <interface type='ethernet'>
      <ip prefix='24' interface='dummy0' address='192.168.20.4' />
    </interface>
    <interface type='ethernet'>
      <ip prefix='24' interface='dummy0' type='range'
address='192.168.32.100' address2='192.168.32.200'/>
    </interface>
    <disk type='directory' device='directory'>
      <source directory='/vservers/lenny' type='auto' options='defaults'/>
      <target directory='/'/>
    </disk>
    <disk type='directory' device='directory'>
      <source directory='/srv' type='ext3' options='bind,ro'/>
      <target directory='/srv'/>
    </disk>
    <disk type='block' device='directory'>
       <source dev='/dev/mapper/test' type='ext3' options='defaults'/>
       <target directory='/mnt'/>
    </disk>
  </devices>
</domain>

-- 
Daniel Hokka Zakrisson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-0.4.0-vserver.patch
Type: text/x-patch
Size: 84352 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080109/3ed94ca3/attachment-0001.bin>


More information about the libvir-list mailing list