Our environment consist of one datacenter attached with ISCSI shared storage. This datacenter included one cluster with two hosts/nodes which will be used to host our virtual machine.
Basically in any environment, we could deploy physical/virtual machines by using popular methods such as From ISO/DVD, Network, Kickstart and so on. For our environment, there is no huge difference about previous fact, as we will use the same methods/installation types.
As a start we are discussing VM deployment using ISO file/image. RHEV entertainment is very organized one, so it has special domain used only for this target, store ISO files used to create virtual machines, this domain is storage one called ISO Domain.
Step 1: Deploy New ISO Domain
Actually, RHEVM creates ISO Domain during installation process. To check that, just navigate storage tab for the environment.
We could use the exist one and attach it to our datacenter, but lets create new one for more practice.
Note: The exist one is used NFS shared storage on the rhevm machine IP:11.0.0.3. The new created one will use NFS shared storage on our storage node IP:11.0.0.6.
1. To Deploy NFS service on our storage node,
[root@storage ~]# yum install nfs-utils -y [root@storage ~]# chkconfig nfs on [root@storage ~]# service rpcbind start [root@storage ~]# service nfs start
2. We should create new directory to be shared using NFS.
[root@storage ~]# mkdir /ISO_Domain
3. Share the directory by add this line to /etc/exports file and then apply changes.
/ISO_Domain 11.0.0.0/24(rw)
[root@storage ~]# exportfs -a
Important: Change the ownership of the directory to be with uid:36 and gid:36.
[root@storage ~]# chown 36:36 /ISO_Domain/
Note: The 36 is the uid for vdsm user “RHEVM agent” and the gid of kvm group.
It is mandatory to make the exported directory is accessible be RHEVM. So, your NFS should be ready to be attached as ISO Domain to our environment.
4. To create New ISO domain with NFS type… choose Data-Center1 From system tab, then click on New Domain from storage tab.
5. Then Fill the appeared window as shown:
Note: Make sure about the Domain function/Storage type is ISO / NFS.
Wait a moment and check again under storage tab.
Now, our ISO Domain is successfully created and attached. So, lets upload some ISO’s to it for VM’s deploying.
6. Make sure you have ISO file on your RHEVM server. We will work with two ISO’s one for Linux {CentOS_6.6} and the other one for windows {Windows_7}.
7. RHEVM provides tool called (rhevm-iso-uploader). It used to upload ISO’s to ISO Domains beside useful tasks.
First, we will use it to list all available ISO Doamins.
Hint: The upload operation supports multiple files (separated by spaces) and wildcards. Second, we will use it to upload ISO’s to our iso domain “ISO_Domain”.
Note: Uploading process takes some time as it depends on your network.
Hint: ISO domain could be on the RHEVM machine, its recommended in some cases, any way its totally depend on your environment and infrastructure needs.
8. Check the uploaded ISO’s from web interface.
Its time for second section “Virtual Machines Deployment”.
Step 2: Virtual Machines Deployment – Linux
11. Switch to Virtual Machines tab and click “New VM”.
12. Then fill the appeared windows as shown:
To modify some options like memory allocation and boot options, press “Show Advanced Options”.
13. Select “System” to modify Memory and vCPU’s.
14. Select Boot Options to attach our ISO image to virtual machines, then press OK.
15. Before starting your virtual machine, you should create and attach virtual disk. So, press “Configure Virtual Disks“ in the automatically appeared window.
16. Then Fill the next appeared window as shown and press OK.
Hint: We discussed the difference between “Pre-allocated” and “Thin Provision” previously in this article from kvm series at Manage KVM Storage Volumes and Pools – Part 3.
17. Close the window asks about adding another virtual disk. Now, Lets check our virtual machine.
Hint: You may need to install SPICE plug-in to make sure virtual machine console will work fine.
For Redhat based Distro’s
# yum install spice-xpi
For Debian based Distro’s
# apt-get install browser-plugin-spice
Then restart your Firefox browser.
18. For first time, we will run virtual machine from “Run once”…just click on it and then change the order of boot options – make First one is CD-ROM.
Note: Run once is used for modify vm setting just for one time (Not Permanent) for testing or installation.
19. After Clicking (OK), you will notice the state of virtual machine is changed to starting then to up!!.
20. Click on icon open Virtual Machine’s Console.
Basically, we created a linux-server virtual machine successfully which hosted on node1 {RHEVHN1}.
Step 3: Virtual Machines Deployment – Windows
So, lets complete the journey with deploying another virtual machine acts as desktop machine, we will discuss the difference between server and desktop type later, this desktop virtual machine will be Windows7.
Generally, we will repeat almost previous steps with some additional ones. Follow steps as shown in next screens:
21. Click New VM and then fill the requested information.
22. Create a new disk and confirm that the windows VM is created.
Before continue to next steps, windows virtual machines needs some special paravirtualization drivers and tools to be installed successfully…you can find them under:
/usr/share/virtio-win/ /usr/share/rhev-guest-tools-iso/
For this ISO used in this tutorial, we will need to upload those files to our ISO Domain and confirm from web interface.
/usr/share/rhev-guest-tools-iso/RHEV-toolsSetup_3.5_9.iso /usr/share/virtio-win/virtio-win_amd64.vfd
23. Click Run once and Don’t forget to attach the virtual floppy disk to open VM console.
24. Follow windows instruction to complete the installation. At Disk partitioning stage, you will notice there is no appeared disks. Click on ”Load Driver” then ”Browse”.
25. Then locate the path of drivers on the virtual floppy disk and select the two drivers related to Ethernet and SCSI controller.
26. Then Next and wait some time to load our 10G virtual disk is appeared.
Complete the installation process until it finished successfully. Once it finished successfully, go to RHEVM web interface and change the attached CD.
27. Now attach RHEV tools CD and then go back to windows virtual machine, you will find tools CD is attached. Install RHEV tools as shown..
Follow the sequentially steps until it finished successfully then reboot the system.
and finally, your windows virtual machine is healthy up and running..:)
Conclusion
We discussed in this part, ISO Domain importance and deployment then how to use for storing ISO files which be used later to deploy virtual machines. Linux and windows virtual machines have been deployed and fine working. In next part, we will discuss Clustering importance and tasks with how to use clustering features in our environment.
If this article helped you solve a problem, consider buying a coffee. It helps keep TecMint free, supports the authors, and keeps the project going.

Got Something to Say? Join the Discussion... Cancel reply