knawnd at gmail.com
2011-Mar-07 17:15 UTC
[libvirt-users] diskspace and diskinodes tag for openvz
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 at redhat.com/msg07329.html
Matthias Bolte
2011-Mar-07 18:18 UTC
[libvirt-users] diskspace and diskinodes tag for openvz
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 at 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
Reasonably Related Threads
- ifname in openvz container
- Memory corruption when testing nbdkit python plugin with nbd-tester-client?
- Re: Memory corruption when testing nbdkit python plugin with nbd-tester-client?
- no connection driver available for openvz:///system
- openvz specific values for domain/devices tag