On 12/23/2011 10:14 AM, hero wrote:
It works well for me, the guest can be successfully started after shutdowning, what's the libvirt version? Also work for me, for a running domain, will meet the following error as expected: # virsh setmaxmem vr-rhel5u7-x86_64-kvm 1048576 error: Unable to change MaxMemorySize error: Requested operation is not valid: cannot resize the maximum memory on an active domain For a inactive domain, original Max memory is 524288 kB, the change is valid: # virsh dominfo vr-rhel5u7-x86_64-kvm Id: - Name: vr-rhel5u7-x86_64-kvm UUID: 663ce18a-e257-2b05-91ae-fe29381b3a2f OS Type: hvm State: shut off CPU(s): 3 Max memory: 1048576 kB Used memory: 524288 kB Persistent: yes Autostart: disable Managed save: no Security model: selinux Security DOI: 0 You should see options family of virsh setmem such as --live, --config and --current: --config affect next boot Note: it is a option what you want. --live affect running domain --current affect current domain Good Luck! Alex
|
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list