Vps – Change amount of Ram and CPU cores in KVM

kvm-virtualizationvirtualizationvps

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

Best Answer

You can edit its XML from command-line with:

virsh edit 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.