Upgrade CPU/RAM in KVM.
You can follow the following steps to increase memory size of your KVM virtual machine.
- Update the configuration using command
sudo virsh edit
reboot
VM server.
Listing virtual
servers.
[ahmed@ahmed-server ~]$ sudo virsh list
Id Name State
----------------------------------------------------
8 VM-1 running
12 VM-2 running
13 VM-3 running
15 VM-4 running
Getting Information about VM
.
[ahmed@ahmed-server ~]$ sudo virsh dominfo VM-1
Id: 8
Name: VM-1
UUID: 588ff640-25be-9b18-5eb3-f93c471848e6
OS Type: hvm
State: running
CPU(s): 4
CPU time: 503.3s
Max memory: 8388608 KiB
Used memory: 8388608 KiB
Persistent: yes
Autostart: disable
Managed save: no
Security model: none
Security DOI: 0
Edit Hardware for each VM
.
[ahmed@ahmed-server ~]$ sudo virsh edit VM-1
Domain VM-1 XML configuration edited.
Checking VM
information.
[ahmed@ahmed-server ~]$ sudo virsh dominfo VM-1
Id: 8
Name: VM-1
UUID: 588ff640-25be-9b18-5eb3-f93c471848e6
OS Type: hvm
State: shut off
CPU(s): 8
Max memory: 33554432 KiB
Used memory: 33554432 KiB
Persistent: yes
Autostart: disable
Managed save: no
Security model: none
Security DOI: 0
Once this is done restart the server.
And we are done.
And we are done.
More Details : https://github.com/zubayr/big_config/blob/master/kvm/README.md
Comments
Post a Comment