Jun 30, 2012
tom

Change amount of Ram and CPU cores in KVM

Question

How can I Change amount of Ram and CPU cores for a virtual machine in KVM that is already created?
Thanks

Asked by user126492

Answer

You can edit its XML from command-line with:

virsh name_vhost

Then, you only have to search the <memory> tag and modify it

Keep in mind that the memory allocation is in kilobytes, so to allocate 512MB of memory, use 512 * 1024, or 524288.

Answered by Javier Martinez

Related posts:

  1. Can I utilize the full performance of a hypervisor’s physical CPU cores when running a high CPU usage appliciation inside a VM?
  2. ESX / vSphere Maximum Cores per CPU
  3. Can a Multi core CPU be configured to allow the OS to the see the cores as a single CPU
  4. is it possible to check CPU and RAM usage of the OpenVZ *host* machine from within a VM?
  5. More RAM or More Cores for a MySQL Database Server?

Leave a comment