• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Setup Virtual Machines in RHEV Environment

599

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
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor- NFS-ISO-configuration
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-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.
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-check-ISO-file

To create new virtual machine

Go to the virtual machines tab and select New VM
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-virtual-machines-tab

Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-new-virtual-machine

Click Show Advanced options to configure the RAM, boot options and virtual harddisk

Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-initial-run
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-boot-options

Click Configure virtual disks, then enter the size and other description as shown.
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-Configure-virtual-disks
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-add-virtual-disk

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.
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-change-boot-order
Now click the Console icon to view the Console
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-Console

Then Follow the On screen instructions to install the Ubuntu OS, after the OS installation login using the credentials.
Setup-Virtual-Machines-RHEV-environment-virtualisation-product-KVM-hypervisor-login-deployed

A new virtual machine is successfully deployed.

Tags:
aiden
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How can I back up my virtual machines?

A

The first is to treat your VMs as if they were other physical nodes on your network.

Q

How to transfer the iso file to the rhevm machine under the ISO directory and use rhevm-iso-uploader?

A

To transfer the iso file to the rhevm machine under the ISO directory and use rhevm-iso-uploader
"rhevm-iso-uploader upload -I ISO Ubuntu-16.04-amd64.iso"

Q

How to reload the NFS config?

A

By using this command you can reload the config
Syntax: "exportfs -a"

Q

How can I deal with poor performance of virtual machines?

A

If you find that there's an excessive amount of paging within the VM, you might want to increase the physical memory allocation.

Q

Can I store virtual machines and virtual hard disks on a network share?

A

Yes. If you're supporting many different virtual machines, you might have a problem managing all of the virtual hard disk files you need for all of the installations of your virtualization platform product.

Related Tutorials in How to Setup Virtual Machines in RHEV Environment

Related Tutorials in How to Setup Virtual Machines in RHEV Environment

How to add NFS Storage on Proxmox VE
How to add NFS Storage on Proxmox VE
Feb 17, 2018
How to add and remove local storage repository in xenserver
How to add and remove local storage repository in xenserver
Jul 1, 2016
How to Set up NFS Share on LinuxMint 18.3
How to Set up NFS Share on LinuxMint 18.3
Mar 5, 2018
How to Install Proxmox VE in Linux
How to Install Proxmox VE in Linux
Jul 19, 2016
How to Configure NFS(Network File System) in Linux
How to Configure NFS(Network File System) in Linux
May 31, 2016
How to Install and Configure NFS on Linux Mint 20
How to Install and Configure NFS on Linux Mint 20
Jan 30, 2021
How to Create and Manage KVM Virtual Machine through Command Line in Linux
How to Create and Manage KVM Virtual Machine through Command Line in Linux
Jul 4, 2016
How to install KVM - Virtualization extension in Ubuntu
How to install KVM - Virtualization extension in Ubuntu
Jul 29, 2016

Related Forums in How to Setup Virtual Machines in RHEV Environment

Related Forums in How to Setup Virtual Machines in RHEV Environment

KVM
christian class=
Error: No active connection to install on
May 9, 2017
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
NFS
binoweasley class=
Showmount command failure
Jan 2, 2018
KVM
issacjoseph class=
cannot create a snapshot on kvm
Apr 16, 2018
Virtual memory statistics
william class=
Failed to connect socket to /var/run/libvirt/libvirt-sock: No such file or directory
May 9, 2017
NFS
dylan class=
showmount : RPC Program not registered
Jun 2, 2018
NFS
caleb class=
Permission denied in nfs client share
Apr 25, 2017
NFS
james class=
How to allow only two ip to access nfs share
Apr 25, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.