
ncuccto at gmail
May 9, 2012, 6:46 PM
Post #2 of 2
(272 views)
Permalink
|
|
Re: [Xen-users] Fwd: xe CLI: Error code: MEMORY_CONSTRAINT_VIOLATION - trial XenServer 6.0.2 image has a bug
[In reply to]
|
|
On Fri, May 4, 2012 at 5:38 PM, Ian Campbell <Ian.Campbell [at] citrix>wrote: > XCP questions are best directed to the xen-api@ list (CCd). This is not > obvious I admit. > > On Fri, 2012-05-04 at 10:34 +0100, Demon wrote: > > > > > > I have encountered the same problem on XCP 1.1 and XCP 1.5 beta. > > > > > > I tried "xe vm-memory-limits-set" command, and what I get is like > > > > > > [root [at] xcp1 ~]# xe vm-memory-limits-set static-min=1GiB > > dynamic-min=4GiB dynamic-max=4GiB static-max=4GiB --multiple > > operation failed on 9587c557-39b0-4cb1-a0e7-f2e701f287ac: You > > attempted an operation on a VM that was not in an appropriate power > > state at the time; for example, you attempted to start a VM that was > > already running. The parameters returned are the VM's handle, and the > > expected and actual VM state at the time of the call. > > vm: 9587c557-39b0-4cb1-a0e7-f2e701f287ac (Control domain on host: > > xcp11) > > expected: halted > > actual: running > > > > > > xcp11 is the VM Host itself. So, is there any way to be halted ? > > And there's no VM on it. > > I rather expect that you cannot change static-max for dom0. I don't know > about the other three... > > Ian. > I kind of get the solution. After installation of XCP( 1.5 beta or 1.1 ), I tried to create new VM using XenCenter 6. Then XenCenter shows error messages, 2012/5/10 上午 09:12:36 Error: Create VM 'test' - MEMORY_CONSTRAINT_VIOLATION - Memory limits must satisfy: static_min ≤ dynamic_min ≤ dynamic_max ≤ static_max. I tried this command "xe vm-memory-limits-set uuid= static-min=1GiB dynamic-min=4GiB dynamic-max=4GiB static-max=4GiB". And I got this error message, > operation failed on 9587c557-39b0-4cb1-a0e7-f2e701f287ac: You > attempted an operation on a VM that was not in an appropriate power > state at the time; for example, you attempted to start a VM that was > already running. The parameters returned are the VM's handle, and the > expected and actual VM state at the time of the call. > vm: 9587c557-39b0-4cb1-a0e7-f2e701f287ac (Control domain on host: > xcp11) > expected: halted > actual: running And still I can't create VMs. I tried to use this command "xe vm-memory-limits-set static-min=1GiB dynamic-min=4GiB dynamic-max=4GiB static-max=4GiB --multiple" ( I didn't assign uuid of vm ), I still got the same error message. But the difference is that I can create VMs after this action. I'm confused, it seems that few people encounter this problem? But I installed 5 or 6 times on different machines, all I got is the same problem. I hope this will help. Best regards, Y.Y.Chuang
|