Home / Redhat-LINUX / Linux KVM / Deploy KVM instance using Virt-Manger (VMM)- GUI – Part 5

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

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 the VM’s and create a new VMs. The latest version provides the interface to migrate the running VM from KVM host to another if we use the shared storage pool(Live migration).

Let’s launch the virt-manager.

Launching the virt-manger from KVM hosts:

1.Login to the KVM host as root user .  (Make sure X11 forwarding is enabled & you have installed the terminal emulation software : Ex: Moba Xterm)

2. Execute virt-manager command to launch the GUI.

virt-Manager
virt-Manager

 

3. Click the highlighted icon to create the new VM.  (See the above screenshot).

 

4. Specify the installation source method. Let me use the local ISO image.

Select the KVM guest Installation source
Select the KVM guest Installation source method

 

5. Specify the ISO image path .

Specify the ISO image location - KVM guest
Specify the ISO image location – KVM guest

 

6. Allocate the resources for KVM guest.  (Ex: vCPU’s & Memory)

Set the resource limits - KVM
Set the resource limits – KVM

 

7. Create the virtual disk  for Guest installation (root disk of the guest OS).

Specify the disk image size - KVM
Specify the disk image size – KVM Guest

 

8. Enter the VM name and specify the bridge which we have created earlier (Refer the KVM tutorial)  to provide the external network access to the Guest.

Enter the VM name and specify bridge
Enter the VM name and specify bridge

 

9. Click finish to create the VM.

KVM - Guest Domain creation 8
KVM – Guest Domain creation

 

once the VM is created, you will get the console like below.

KVM Guest console
KVM Guest console

 

You can complete the VM installation.

 

10 .To view the KVM guest hardware details , click on the highlighted icon.

To see the VM hardware details - KVM
To see the VM hardware details – KVM

 

You can also add the new virtual hardware using the above window.  (Adding new disks , NIC etc..)

 

11. KVM also provides the force VM power off option. (Just like removing the power card in physical server.)

KVM guest - Force power off Option
KVM guest – Force power off Option

 

12. KVM support snapshots . virt-manager provides the interfaces to take the running machine snapshots.

Take the snapshot of KVM guest
Take the snapshot of KVM guest

 

Click on the “+” icon to create the snapshot for VM.

Guest Snapshot name
Guest Snapshot name

 

13. VMM (Virtual Machine Manager) also provides the interface to migrate or clone the VM . Just click VM’s Virtual Machine tab.

KVM Guest - Migrate clone Delete
KVM Guest – Migrate clone Delete

 

14. You can launch the VM’s console any time by just double clicking the listed VM.

Clone & Live Migration option
Clone & Live Migration option

 

Centralized KVM Hosts Management: (Like VMware vSphere Client )

If you have installed the VMM  on other than KVM node, you need to connect the KVM hosts using ssh.

1. Configure the ssh password less authentication for root user between KVM Management node and KVM hosts.

2. Login to the Management node where you have installed virt-manager.  (with X11 forwarding ).

3.Execute the virt-manager command to launch the VMM GUI.

VMM on Management Node - KVM
VMM on Management Node – KVM

 

4. Enter the KVM host IP..

Connect Remote KVM host - VMM
Connect Remote KVM host – VMM

 

You should be able to get the window like below .

KVM Management Node
KVM Management Node

 

Hope this article is informative to you.

Share it ! Comment it !! Be Sociable !!!

VMTURBO-CLOUD-CAPACITY

Leave a Reply

Your email address will not be published. Required fields are marked *