×


Virtual Machines (VMs) in oVirt 4 0 Environment

Are you trying to create virtual machines (vms) in ovirt 4.0 environment?

This guide will help you.


Virtual machines allow you to run an operating system in an app window on your desktop that behaves like a full, separate computer.

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to create VMs from oVirt.

In this context, we shall look into the steps to create VMs from oVirt.


How to create Virtual Machines (VMs) in oVirt 4.0 Environment ?

We will be using oVirt for creating Virtual Machines.

Before going to the steps to create VMs in oVirt we will create a Data Centre, Clusters, Hosts, Network, and a storage domain as prerequisites.


The steps to follow are given below:

1. Create a new Data Center

i. First log in to the oVirt Engine Web Administrator Portal.

ii. Then Go to Data Centers Tab and click on New.

iii. . Give the Data Center Name, Description, and Storage Type, and Compatibility version.


2. Configuring Cluster for Data Center

i. On clicking OK in the above step, it will ask us to configure Cluster.

ii. Next, select the “Configure Cluster” option.

iii. Then specify the cluster name, Description, CPU architecture as per our setup, leave the other parameters as it is.

iv. Finally click on OK.


[Need assistance with creating Virtual Machines VMs? We are happy you!]


3. Adding Host

i. First Select the Node click on the Maintenance option, then click on OK.

ii. Next select the Edit option and update the Data center and Cluster information.

iii. And then Click OK.

iv.  Finally, click on the Activate option to activate the host.


4. Creating Storage Domains

i.  First click on the Storage tab and then click on New Domain.

ii. Select the Domain function as “Data” and Storage Type as NFS and specify the NFS servers’ share IP and name.

iii. Next click on New Domain from Storage Tab and Select Domain Function “ISO” and Storage Type “NFS”.


We can see that both the storage domains are activated now.

And when the storage domains are active, it initiates the Data Center automatically.


5. Upload ISO files to ISO Storage Domain

We need to transfer the ISO file to oVirt-engine and run the ‘engine-iso-uploader’.

Here we will be uploading Ubuntu 16.04 LTS iso file:

[root@ovirtengine ~]# engine-iso-uploader -i ISO_Domain_test_dc upload ubuntu-16.04-desktop-amd64.iso

Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort):

Uploading, please wait...
INFO: Start uploading ubuntu-16.04-desktop-amd64.iso
Uploading: [########################################] 100%
INFO: ubuntu-16.04-desktop-amd64.iso uploaded successfully
[root@ovirtengine ~]#

6. Creating Virtual Machines.

We will now create the Virtual Machines (VMs) in oVirt 4.0 Environment with the following steps:

i. First click on New VM from Virtual Machine Tab.

ii. Then specify the following parameters under the “General” Tab.


- Data Center “test_dc”

- Operating System Type as “Linux”

- Optimized for “Desktop”

- Name as “Ubuntu 16.04”

- nic1 as “ovirtmgmt”


iii. We can Specify the disk space for the Virtual machine by clicking on the Create option which is available in front of “Instance Images”.

iv. Then specify the Disk Size and leave other parameters as it is and click on OK.

v. Click on “Show Advance option”, then Go to System Tab, specify the memory and CPU.

vi. After that Go to the “Boot Options” Tab, attach the Ubuntu 16.04 ISO file and change the boot sequence and click on OK.

vii.  Choose the “Run Once” option from Virtual Machines Tab.

viii. Right-click on the VM to select Console.

ix. Click on Install Ubuntu and follow the screen instructions.

x. Then reboot the VM once the installation is complete.

xi. Change the Boot Sequence of VM in a way such that it can boot from Disk.

xii. We can provide the credentials that were set during installation.


[Need urgent assistance to create VMs? We are here for you!]


Conclusion

This article will guide you on the steps to create a Virtual Machines (#VMs) in oVirt 4.0 Environment.

The #oVirt engine acts as the control center for oVirt environments. The engine enables admins to define #hosts and #networks, as well as to add storage, create VMs and manage user permissions. Included in the oVirt engine is a graphical user interface (GUI), which manages oVirt #infrastructure resources.

To Create a Virtual Server:

i. Access the Virtual Server class tab in the Class #Manager.

ii. Click the Add Virtual Server link.

iii. Specify the name of the virtual server, its connections, and the URL Hosts. ...

iv. Click OK and then Apply to save and apply your changes.

To to Create Virtual Machines (VMs) in oVirt 4.0 Environment:

1. Create new Data Center.

2. Configure Cluster for Data Center.

3. Add Host or oVirt Node to above created data center & cluster.

4. Creating Storage #Domains.

5. Upload #ISO files to ISO Storage Domain.

6. Create Virtual Machine.