On 27/04/12 19:25, David Metcalf wrote:
The error is, "Cannot run VM. There are no available running
Hosts with sufficient memory in VM's Cluster."
What is the requirement and how can it be adjusted?
Hi David,
There's a test the engine is doing, checking the physical memory the host machine
has,
compared to the VM you're trying to run. The test is not an exact match, and there
are
some safety factors taken into consideration.
The simplest things for you to try are:
- Try running a VM with a very small amount of memory- just to make sure you can run
something.
Next, you can see how much memory vds reports on your host by running (on the host)-
- vdsClient -s 0 getVdsStats | grep mem
Response should look like:
memAvailable = 23144
memCommitted = 0
memShared = 0
memUsed = 3
This is measured in MB.
Finally, in order to see exactly what engine calculates,
you may add a debug entry in ..../server/default/conf/jboss-log4j.xml
Like so:
<category name="org.ovirt.engine.core.bll.RunVmCommandBase">
<priority value="DEBUG"/>
</category>
Now, you may need to restart jboss to get this updated (depending
on your setup, some will auto-update), and retry running the VM.
You should have a log entry that look like this-
Host Mem Committed: XXX, Host Reserved Mem: YYY, Host Guest Overhead ZZZ, VM Min Allocated
Mem AAA