Hide Forgot
Created attachment 493431 [details] guest domain console info Description of problem: Guest domain will be dead ,after set a few memory. Version-Release number of selected component (if applicable): libvirt-0.8.2-18.el5 kernel-2.6.18-252.el5 kvm-qemu-img-83-229.el5 How reproducible: 5/5 Steps to Reproduce: 1.Start a RHEL domain guest. # virsh start r6.0 Domain r6.0 started 2.After guest full started,set current memory down to a few value # virsh setmem r6.0 5200 Actual results: Guest domain will be dead, after set a few memory Expected results: After set a few memory to domain guest, the guest will be works fine or can not set that few values. Additional info: Snapshot please sees the attachment.
> # virsh setmem r6.0 5200 You have told the guest OS that it can only use 5 MB of memory. It is now in complete swap-death hell and will never record. This is expected behaviour if you set such a memory target that is orders of magnitude below what the OS can cope with.
Hi 'Daniel', If 'virsh' can support set 5 MB memory for guest ,the guest domian will auto kill process. And that may be let some data lost and destroy domain guest. so I think this is a bug,virsh should give a waring or error message for user and stop user do that dangerous operations.
So I reopen it.
Every guest OS has a different minimal level of memory. So if virsh attempted to enforce any 'minimum' level, it would be too large for some OS and too small for other OS. It can't win, so the only option is not to enforce a minimum limit & let the admin decide what is appropriate.