| Status: | New | Start: | 08/18/2010 | |
| Priority: | High | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Reporter: |
Description
When trying to change the memory size allocated to a KVM host I get an error. The error is the same run either via the web interface or directly on the CLI:
libvir: error : this function is not supported by the connection driver: virDomainSetMaxMemory
Failed to set memory size. - dom=DiaStarTest
this function is not supported by the connection driver: virDomainSetMaxMemory
/opt/karesansui/bin/set_memory.py --memory=2048 --name=DiaStarTest --maxmem=2048
I found that the qemu driver of libvirt-0.8.x does not support domainSetMaxMemory API as well as domainReboot. But it seems that xen driver supports them.
If you would like to change the maximum size of VM's memory,
please stop the VM and modify value of the <memory> element in the XML configuration file , eg. /etc/opt/hde/libvirt/qemu/<domain>.xml, then execute the following command.
bash# /opt/hde/bin/virsh define /etc/opt/hde/libvirt/qemu/domain.xml
Thanks.