Home / Tag Archives: KVM

Tag Archives: KVM

Linux KVM – Change libvirt VM image store path – Part 10

Libvirt Image location - KVM

In KVM , VM images are stored in /var/lib/libvirt/images directory by default.  There might be the space limitation since /var filesystem lives under root-vg. In KVM virtualization, everyone would prefer to store VM images in central repository to migrate running VM from one hypervisor to another.  In that case, you need to change the default path for the libvirt images or  you need to mount …

Read More »

Linux KVM – How to add /Remove vCPU to Guest on fly ? Part 9

vCPU Hot-plug KVM

Does KVM support vCPU  hot-plug  ?  Will Linux KVM guest can recognize the newly added vCPU’s ? The answer is “YES” off-course. Like KVM memory management, you can add/remove  vCPU’s to active VM using “virsh” command. But this works if you have configured the KVM guest with Maximum vCPUs parameter. So while deploying the new virtual machines , you should …

Read More »

Linux KVM – How to add /Remove Memory to Guest on Fly ? Part 8

Memory Management on KVM Guest

If application/DB is demanding more  Memory , you need to adjust the VM’s memory limit accordingly. KVM supports dynamic memory addition when you have configured the VM’s with Maximum memory limits. There are two parts in the VM configuration. 1. Maximum Limits 2. current allocation. At any point of time, you can’t exceed the maximum memory  limit using “virsh setmem” command on …

Read More »

How to clone a KVM virtual Machines and reset the VM – Part 6

virt-sysprep - VM changes

If you want to build several VMs with the same OS and configuration, “CLONE ” is the best method to save the time instead of installing operating system on each virtual machines. “virt-clone” is useful binary tool to clone the virtual machines with unique ID and  MAC address (When you clone from existing virtual machine). To perform the clone, virtual machine …

Read More »

Deploy KVM instance using Virt-Manger (VMM)- GUI – Part 5

Specify the ISO image location - KVM guest

Virt-Manager is powerful GUI tool to manage the multiple KVM hosts and it’s associated VM’s. It support’s XEN virtualization too. It can be installed on KVM hypervisor hosts or on centralized management host to manage the multiple hyper-visors from one place.  Using virt-manager,  you can start, pause(suspend), shutdown VMs, display VM details (Ex: VCPUs, memory, disk space), add devices to VMs, clone …

Read More »

Launch the first KVM instance using CLI – Part 4

KVM virt-install Redhat

Provisioning new VM’s (guests) using “virt-install” binary is straight forward. virt-install  can be run in interactive or non-interactive mode. This command have more options but easy to remember since those are very meaningful. This article is going to demonstrate the VM creation using virt-install tool in non-interactive mode. You can also use GUI (VMM – Virtual Machine Manager ) to …

Read More »