Wondering How to Deploy Virtual Machines in RHEV Environment?
Red Hat Enterprise Virtualization is a compact and full-featured virtualization platform built on Red Hat Enterprise Linux (RHEL).
It is easy to manage, provision,upgrade RHEV. Also it is managed through a WebUI thus making it easy to acess from any platform.
At Bobcares, we get often get requests from our customers to deploy virtual machines into an RHEV environment.
Today let’s see how our Support Engineers do this as a part of our Server Management Services.
How to Deploy Virtual Machines in RHEV Environment
We will be deploying VMs in an RHEV environment using ISO file/image, the environment will have a Data Centre attached to ISCSI shared storage.
RHEV entertainment has a special domain used only to store ISO files which are used to create virtual machines, it is known as ISO Domain.
The steps followed by our Support Techs to implement the deployment is given below:
1. Creating and Deploying New ISO Domain
We will create a new ISO domain first to Deploy Virtual Machines in RHEV Environment. We can also use the existing one if we wish to.
The newly created one will use NFS shared storage on our storage node IP:126.96.36.199.
Steps to follow are given below:
1. To Deploy NFS service on our storage node,
# yum install nfs-utils -y # chkconfig nfs on # service rpcbind start # service nfs start
2. Using NFS we will create a new directory to be shared.
# mkdir /ISO_Domain
3. Then add the following line to the /etc/exports file and apply changes.
# exportfs -a
4. Next we will change the ownership of the directory to be with uid:36 and gid:36.
# chown 36:36 /ISO_Domain/
This allows RHEVM to access the exported directory.
5. Now to create New ISO domain with NFS type, we have to take ‘Data-Center1’ from the System tab and click on New Domain from the storage tab.
6. Then fill the window as given below:
Name: ISO_Domain Use Host: rhevhn1.mydomain.org Export Path: 188.8.131.52:/ISO_Domain
7. Next, we will upload some ISO files/images. For this, we have to ensure that we have the ISO file on the RHEVM server. Here we will work with two ISO’s one for Linux and the other one for Windows.
8. We will use rhevm-iso-uploader for uploading ISO to ISO Domains. The uploading process takes some time as it depends on the network speed.
9. Then we will check the uploaded ISO’s from the web interface.
[Need assistance to create a new ISO Domain? We are happy to help you!]
2. Linux Virtual Machines Deployment in RHEV Environment
First, we will see the steps followed by our Expert Support Techs to create a Linux-server virtual machine in the RHEV environment.
1. First, take the Virtual Machines tab and click ‘New VM’.
2. Then fill the window that appears with the necessary fields and click ‘Show Advanced Options’.
3. And select ‘System’ to modify Memory and vCPU’s.
4. Then select Boot Options to attach the ISO image to VMs, and press OK.
5. Before starting the virtual machine, we must create and attach the virtual disk. So, press “Configure Virtual Disks“
6. Then fill the next window that appears, with the following details and click OK.
Size(GB): 10 Alias: Linux_Server_VM_Disk1 Interface: VirtIO Allocation Policy: Thin Provision Storage Domain: ISCSI-Node1 (45 GB free of 49 GB) Disk Profile: ISCSI-Node1
7. Close the window that prompts to add another virtual disk.
We can install the SPICE plug-in to make sure the virtual machine console works fine.
# yum install spice-xpi
# apt-get install browser-plugin-spice
After that restart the Firefox browser.
8. Now, we will run the virtual machine from “Run once”.
Run once is used to modify VM setting just for one time (Not Permanent) for testing or installation.
9.Finally, click OK and then open VM’s console.
3. Windows Virtual Machines Deployment in RHEV Environment
Next, we will see the steps followed by our Support Engineers to create a Windows-server virtual machine in the RHEV environment.
Here we will be deploying another virtual machine that acts as a desktop machine (Windows7).
Steps to follow are given below:
1. First, we need to create a new VM and a new disk as mentioned above while creating the Linux VM.
2. Then we will add some special paravirtualization drivers and tools under the follwing:
We will upload the ISO files to our ISO Domain and confirm it from the web interface.
3. Click Run once and attach the virtual floppy disk to open the VM console.
4. We must follow the instructions and complete the installation. At the disk partitioning stage, we will not see any disks.
5. So click on ‘Load Driver’ then ‘Browse’ and locate the path of drivers on the virtual floppy disk. Select the two drivers related to Ethernet and SCSI controller.
6. Then click Next and wait to see the disk.
We can follow the steps sequentially until we see ‘Fnished Successfully’ to complete the installation and then reboot the system.
[Facing difficulty for deploying Windows VMs? We can help you!]
In this article, we saw how to deploy virtual machines in the RHEV environment. Also, we saw how our Support Techs deploy Linux and Windows virtual machines.