How to Setup Virtual Machines in RHEV Environment
To Setup Virtual Machines in RHEV Environment
In this article, we will learn how to setup Virtual Machines in RHEV Environment.
To install RHEV 3.5 in Linux visit,
https://www.linuxhelp.com/how-to-install-rhev-3-5-in-linux/
To Setup Redhat EnterpriseVirtualization Hypervisor In Linux visit,
https://www.linuxhelp.com/how-to-setup-redhat-enterprise-virtualization-hypervisor-in-linux/
To Setup Data-Centers With Cluster And Add ISCSI Storage In Linux visit,
https://www.linuxhelp.com/setup-datacenter-with-cluster-and-add-iscsi-storage/
To install NFS
Check whether the nfs service is installed or not, using the following command
[root@linuxhelp Desktop]# rpm -qa | grep nfs
nfs4-acl-tools-0.3.3-7.el6.x86_64
nfs-utils-1.2.3-70.el6.x86_64
nfs-utils-lib-1.1.5-11.el6.x86_64
If the service is not installed, use the following command to install it.
[root@linuxhelp ~]# yum install nfs-utils &ndash y
Start the NFS services using the following command.
[root@linuxhelp ~]# chkconfig nfs on
[root@linuxhelp ~]# service rpcbind start
[root@linuxhelp ~]# service nfs start
Create a new directory for placing the ISO file
[root@linuxhelp ~]# mkdir /ISO
[root@linuxhelp ~]# vim /etc/exports
Now edit the /etc/exports file
/ISO 192.168.7.0/24(rw)
Save and exit the file.
Run the following command to reload the nfs config.
[root@linuxhelp ~]# exportfs -a
Change the ownership of the directory to uid:36 and gid:36.
[root@linuxhelp ~]# chown 36:36 /ISO
The 36 is the uid of vdsm user “ RHEVM agent” and the gid of kvm group.
Now create a new storage with NFS/ISO configuration
Select the Data-center&rarr Storage&rarr New domain
Now the ISO domain is created and upload the iso files in the new domain.
Transfer the iso file to the rhevm machine under the ISO directory and use rhevm-iso-uploader command to upload it.
[root@linuxhelp ~]# rhevm-iso-uploader upload -I ISO Ubuntu-16.04-amd64.iso
Upload
Ubuntu-16.04-amd64.iso uploaded successfully
After uploading check the ISO file in the rhevm web interface.
To create new virtual machine
Go to the virtual machines tab and select New VM
Click Show Advanced options to configure the RAM, boot options and virtual harddisk
Click Configure virtual disks, then enter the size and other description as shown.
To install SPICE plug-in, verify the virtual machine console.
For Redhat based Distributions
[root@linuxhelp ~]# yum install spice-xpi
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
&hellip
...
Dependency Updated:
gnutls.x86_64 0:2.8.5-19.el6_7
Complete!
For Debian based Distributions
[root@linuxhelp ~]# apt-get install browser-plugin-spice
Then restart your browser.
Right click on the VM , Then select run once and change the boot order.
Now click the Console icon to view the Console
Then Follow the On screen instructions to install the Ubuntu OS, after the OS installation login using the credentials.
A new virtual machine is successfully deployed.
"rhevm-iso-uploader upload -I ISO Ubuntu-16.04-amd64.iso"
Syntax: "exportfs -a"