Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a CentOS 6.2 server running a few KVM VMs, how can I prioritize one of them above the others?
I tried:

virsh dumpxml vm > vm.xml

and then adding to vm.xml


and then

virsh define vm.xml

but it looks like nothing changed... Am I missing something? How could I check if my "cputune" is in effect?

I see that /cgroup/cpu/libvirt/qemu/vm/cpu.shares contains 10240 as expected, while /cgroup/cpu/libvirt/qemu/vm/vcpu0/cpu.shares contains 1024... Is this normal?

share|improve this question
Have you tried adding (smaller) share sizes to all of the other VMs on the host? –  Charles Apr 2 '12 at 19:19
I'll try, thanks! –  Joril Apr 3 '12 at 6:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.