[libvirt-users] diskspace and diskinodes tag for openvz

Matthias Bolte matthias.bolte at googlemail.com
Mon Mar 7 18:18:49 UTC 2011


2011/3/7  <knawnd at gmail.com>:
> Hi!
>
> as far as I understood from "xml format for openvz driver" thread available
> at [1] it should be possible to specify via libvirt disk size and disk
> inodes for openvz VM.But the following device section in VM xml description
> doesn't set disksize and diskinodes properly (it looks like those parameters
> are taken from default OpenVZ config and not as they are specified in
> libvirt tags):
>  <devices>
>    <filesystem type='template'>
>      <source name='centos-5-x86'/>
>      <target dir='/'/>
>      <quota type="size" max="100000"/>
>      <quota type="inodes" max="200000"/>
>    </filesystem>
>  </devices>
>
> Could anyone manage to set mentioned OpenVZ parameters properly? I am using
> libvirt-0.8.8, CentOS 5.5, vzctl version is 3.0.26-1.
>
> Thanks!
> Nikolay.
>
> [1] http://www.mail-archive.com/libvir-list@redhat.com/msg07329.html
>

You are misunderstanding the referenced thread. It isn't about
available features in libvirt. In this thread Evgeniy suggests several
additions to libvirt domain XML format related to OpenVZ.

The additions of quota control to the filesystem element have never
been implemented, so they are not available and you're just seeing
expected behavior.

Matthias




More information about the libvirt-users mailing list