How to create VMpools and clone in RHEV

To create VMpools and clone in RHEV

Pool is a collection of similar virtual machines. This is mainly used for generating a number of identical Virtual Machines. The procedures to create VMpools and clone in RHEV is explained in this article.

To create a VM pool

Select the pools tab and click New. Choose the template and enter the other specifications like Name, Number of VMs, Prestarted, Maximum number of VMs per user and Click OK.

Now select the virtual machines and verify the status of the Virtual Machine pool created. The status will be changed from locked to down.

Go to Virtual machine tab, Select a Virtual Machine and click console option.

Create a login id and password of your choice.

The Virtual Machine from the pool that is started will be based on the template chosen during the pool creation.

Shutdown the virtual machine by entering the following command.

[root@localhost ~]# init 0

Select a Virtual Machine to be deleted, click Detach and then select OK.

Now remove the deleted Virtual Machine from the Virtual Machines tab.

To Create VM Clones

Cloning is a normal copy process without altering the source VM. It can be done either from a original VM or from a snapshot. To take a clone, the Virtual Machine should be in downstate.

Select the Virtual Machine to be cloned and click Clone VM option.

Enter a name for the clone and click OK.

Now we have successfully created a Clone.

FAQ
Q
What is virt-manager? And How to install virt-manager?
A
The Virtual Machine Manager is a graphical tool for deploying and managing virtual machines.
For Centos/Rhel based distro's
# yum install virt-manager
Q
What is virtualization?
A
Virtualization is a broad computing term used for running software (usually multiple guest operating systems) concurrently and in isolation from other programs on a single machine.
Q
How to configure bridge interface in KVM?
A
You can configure a Bridge interface as Follows

#vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
TYPE=Bridge
DELAY=0
ONBOOT="yes"
BOOTPROTO=static
IPADDR=192.168.9.22 //Give your IPaddress
NETMASK=255.255.255.0 //Give your Netmask
GATEWAY=192.168.9.1 //Give your Gateway
Q
How to create a Snapshot in KVM?
A
For creating a snapshot in KVM, you can use "virsh" command only supports the format qcow2, you cannot create a snapshot for the VM's that has qemu image format as raw.
Q
How to suspend VMs in KVM?
A
Following command is used to suspend the vm's in KVM

#virsh suspend (VM-id or VM-name)