Вы находитесь на странице: 1из 37

Red Hat Certified Specialist

in Virtualization
Study Guide

Matthew Pearson
matthewp@linuxacademy.com

April 12, 2019


Contents
Install Red Hat Virtualization Manager and any dependencies 1

Install RHV-M and ensure packages are up to date . . . . . . . . . . . . . . . . . . . . . . . 1

Configure RHV-M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Connect to the Administration Portal for the Red Hat Virtualization Manager . . . . . . . . . 3

Configure Red Hat Virtualization Manager to authenticate against an external IPA service 4

Install and configure an external LDAP provider . . . . . . . . . . . . . . . . . . . . . . . . . 4

Remove an External LDAP Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Install Red Hat Virtualization Hypervisor 7

Installing RHVH on a physical machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Installation steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Add one or more Red Hat Virtualization Hypervisor instances to Red Hat Virtualization Manager 8

Create a Backup of the Red Hat Virtualization Manager 9

Create Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Restore From Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Manage Storage 9

Configure Storage Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Storage Domain Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Configure NFS Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Attaching NFS Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Import Installation Media Into a Storage Domain . . . . . . . . . . . . . . . . . . . . . . . . 11

Create and Manage Data Centers and Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Create New Data Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Remove Data Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

1
Attach and Detach Storage Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Attach Storage Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Detach Storage Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Assign User or Administrator Role to a Resource . . . . . . . . . . . . . . . . . . . . . 12

Creating New Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Removing a Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Cluster Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Create and Manage Virtual Machines 14

Install Virtual Machines (Linux) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Starting and stopping Virtual Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Edit Virtual Machine Hardware Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Virtual Machine Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

IO Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Edit IO Threads: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Network Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Add a network interface: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Edit an existing network interface: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Remove a network interface: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Virtual Disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Add a new virtual disk: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Configure new disk: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Attach a virtual disk: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Extend the size of a virtual disk: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Remove a virtual disk: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Configure Automatic Migration for Virtual Machines . . . . . . . . . . . . . . . . . . . . . . 19

Prerequisites: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2
Optimize Live Migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Enable the optimization settings at the global level: . . . . . . . . . . . . . . . . . . . 20

Enable the optimization settings at the cluster level: . . . . . . . . . . . . . . . . . . . 20

Work With Virtual Machine Images 20

Create Snapshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Create a Snapshot: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Delete a Snapshot: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Restore a Virtual Machine from Snapshot: . . . . . . . . . . . . . . . . . . . . . . . . 21

Create Virtual Machines from Snapshots: . . . . . . . . . . . . . . . . . . . . . . . . . 21

Import Existing Virtual Machine Images Into Red Hat Virtualization Manager . . . . . . . . . 21

Exporting a Virtual Machine: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Importing a Virtual Machine: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Importing an OVA File: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Create and Manage Red Hat Virtualization Manager Users 23

Create Internal Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Create internal users using ovirt-aaa-jdbc-tool on the Manager host: . . . . . . . 23

Create External Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Configure Roles and Assign Them to Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Creating a New Role: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Assign Roles to Users: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Configure Access Using Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Automatically Deploy Virtual Machines 25

Create and Manage Virtual Machine Templates . . . . . . . . . . . . . . . . . . . . . . . . . 25

Create Virtual Machine Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Edit Virtual Machine Templates: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

3
Delete Virtual Machine Templates: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Deploy Virtual Machines Using Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Create a Virtual Machine Based on a Template: . . . . . . . . . . . . . . . . . . . . . . 26

Create a Cloned Virtual Machine Based on a Template: . . . . . . . . . . . . . . . . . 27

Configure Virtual Machines Using Cloud-init . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Installing Cloud-init on a Virtual Machine: . . . . . . . . . . . . . . . . . . . . . . . . . 27

Use Cloud-init to Prepare a Template: . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Use Cloud-init to initialize Virtual Machine: . . . . . . . . . . . . . . . . . . . . . . . . 28

Work With Logical Networks 29

Create Logical Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Create New Logical Network in Data Center or Cluster: . . . . . . . . . . . . . . . . . 29

Remove a Logical Network: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Edit Logical Networks: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Edit Gateway: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Designate Specific Traffic Type for a Logical Network: . . . . . . . . . . . . . . . . . . 30

Create or Edit vNIC Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Assign Hosts to Logical Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31


Red Hat Certified Specialist in Virtualization Linux Academy

Install Red Hat Virtualization Manager and


any dependencies
Install RHV-M and ensure packages are up to date
1. Ensure all Packages are up to date:

# yum update

2. Install rhevm package and dependencies:

# yum install rhevm

Configure RHV-M
1. Run the engine-setup command to begin configuration for the RHV-M:

# engine-setup

2. Press Enter to configure the Manager:

Configure Engine on this host (Yes, No) [Yes]:

3. Configure I/O proxy to allow manager to upload virtual disks into storage domains:

Configure Image I/O Proxy on this host? (Yes, No) [Yes]:

4. Configure a websocket proxy server to allow users to connect to virtual machines via the noVNC or
HTML 5 consoles:

Configure WebSocket Proxy on this machine? (Yes, No) [Yes]:

5. Choose whether to configure the Data Warehouse on the Manager machine:

Please note: Data Warehouse is required for the engine. If you choose not to configure
it on this host, you have to configure it on a remote host, and then configure the
engine on this host so that it can access the database of the remote Data Warehouse
host.
Configure Data Warehouse on this host (Yes, No) [Yes]:

6. Allow access to the virtual machine serial console from the command line (manager used as proxy):

Configure VM Console Proxy on this host (Yes, No) [Yes]:

7. Accept the automatically detected hostname, or enter an alternative hostname and press Enter:

Host fully qualified DNS name of this server [autodetected host name]:

8. You can either let engine-setup automatically configure the ports used by the Manager for external
configuration, or you can do it manually.

1
Red Hat Certified Specialist in Virtualization Linux Academy

Note: Only automatically configure the firewall if that is specified on the exam, otherwise just
use the No option:

Setup can automatically configure the firewall on this system.


Note: automatic configuration of the firewall may overwrite current settings.
Do you want Setup to configure the firewall? (Yes, No) [Yes]:

9. Choose local or remote PostgreSQL database for the Data Warehouse (choose Local and Automatic
unless otherwise specified):

Where is the DWH database located? (Local, Remote) [Local]:


Setup can configure the local postgresql server automatically for the DWH to run.
This may conflict with existing applications.
Would you like Setup to automatically configure postgresql and create DWH database,
or prefer to perform that manually? (Automatic, Manual) [Automatic]:

10. Chose local or remote PostgreSQL database for the Manager database (choose Local and Automatic
unless otherwise specified):

Where is the Engine database located? (Local, Remote) [Local]:


Setup can configure the local postgresql server automatically for the engine to run.
This may conflict with existing applications.
Would you like Setup to automatically configure postgresql and create Engine database,
or prefer to perform that manually? (Automatic, Manual) [Automatic]:

11. Set a password for the automatically created administrative user for the Red Hat Virtualization Man-
ager:

Engine admin password:


Confirm engine admin password:

12. Select the application mode as Gluster, Virt, or Both (the Both option offers the greatest flexibility
and will be your choice for most cases):

Application mode (Both, Virt, Gluster) [Both]:

13. Set the default value for the wipe_after_delete flag. This will wipe the blocks of a virtual disk upon
deletion:

Default SAN wipe after delete (Yes, No) [No]:

14. Provide an organization name for certificate (use default unless specified):

Organization name for certificate [autodetected domain-based name]:

2
Red Hat Certified Specialist in Virtualization Linux Academy

15. Allow engine-setup to make the landing page for the Manager the default presented by the Apache
web server (optional):

Setup can configure the default page of the web server to present the application
home page. This may conflict with existing applications.
Do you wish to set the application as the default web page of the server?
(Yes, No) [Yes]:

16. Choose to use the default self-signed certificate for SSL (HTTPS). You may choose to configure a
separate SSL certificate:

Setup can configure apache to use SSL using a certificate issued from the internal CA.
Do you wish Setup to configure that, or prefer to perform that manually?
(Automatic, Manual) [Automatic]:

17. Configure the Manger to use a local ISO domain (select No unless specified otherwise):

Configure an NFS share on this server to be used as an ISO Domain? (Yes, No) [No]:

18. If you chose to set up the Data Warehouse locally, you can configure how long it will retain col-
lected data (Basic is recommended when housing the Data Warehouse and Manager on the same
machine):

Please choose Data Warehouse sampling scale:


(1) Basic
(2) Full
(1, 2)[1]:

19. Review the settings and hit Enter to accept:

Please confirm installation settings (OK, Cancel) [OK]:

Connect to the Administration Portal for the Red


Hat Virtualization Manager
1. In a web browser, go to https://your-manager-fqdn/ovirt-engine, making sure to replace your-manager-
fqdn with the fully qualified domain name that you used during installation.

2. Click on Administration Portal and you will be directed to an SSO login page.

3. Use the admin user, with the credentials that you provided during the installation/configuration of
the Manager, then click Log in (using the internal domain for the admin user).

4. To sign out of the Manager, click on your username in the header bar and click Sign Out.

3
Red Hat Certified Specialist in Virtualization Linux Academy

Configure Red Hat Virtualization Manager


to authenticate against an external IPA ser-
vice
Install and configure an external LDAP provider
1. On the Red Hat Virtualization Manager host, install the LDAP extension package:

# yum install ovirt-engine-extension-aaa-ldap-setup

2. Run the ovirt-engine-extension-aaa-ldap-setup to begin the setup:

# ovirt-engine-extension-aaa-ldap-setup

3. Select the LDAP type by entering the corresponding number:

Available LDAP implementations:


1 - 389ds
2 - 389ds RFC-2307 Schema
3 - Active Directory
4 - IBM Security Directory Server
5 - IBM Security Directory Server RFC-2307 Schema
6 - IPA
7 - Novell eDirectory RFC-2307 Schema
8 - OpenLDAP RFC-2307 Schema
9 - OpenLDAP Standard Schema
10 - Oracle Unified Directory RFC-2307 Schema
11 - RFC-2307 Schema (Generic)
12 - RHDS
13 - RHDS RFC-2307 Schema
14 - iPlanet
Please select:

4. Press Enter to accept the default use of DNS (highly recommended):

It is highly recommended to use DNS resolution for LDAP server.


If for some reason you intend to use hosts or plain address disable DNS usage.
Use DNS (Yes, No) [Yes]:

5. Select the DNS policy method:

1 - Single server
2 - DNS domain LDAP SRV record
3 - Round-robin between multiple hosts
4 - Failover between multiple hosts
Please select:

4
Red Hat Certified Specialist in Virtualization Linux Academy

• Option 1: The DNS servers listed in /etc/resolve.conf will be used to resolve the IP address.
• Option 2: Enter the fully qualified domain name (FQDN) or the IP address of the LDAP server.
• Option 3: Enter a space-separated list of LDAP servers using either IP address or the FQDN of
the servers. This policy provides load balancing between the LDAP servers using the round-
robin algorithm.
• Option 4: Enter a space-separated list of LDAP servers using either IP address or the FQDN
of the servers. This policy defines the first LDAP server listed as the primary LDAP server to
receive queries. If the primary LDAP server fails, the queries will start going to the next server
on the list.

6. Select the secure protocol that your LDAP server supports and specify the method to obtain the
PEM-encoded CA certificate:

Note:
It is highly recommended to use secure protocol to access the LDAP server.
Protocol startTLS is the standard recommended method to do so.
Only in cases in which the startTLS is not supported, fallback to non standard ldaps
protocol.
Use plain for test environments only.
Please select protocol to use (startTLS, ldaps, plain) [startTLS]:
Please select method to obtain PEM encoded CA certificate
(File, URL, Inline, System, Insecure):
Please enter the password:

• File allows you to provide the full path to the certificate.


• URL allows you to specify a URL for the certificate.
• Inline allows you to paste the content of the certificate in the terminal.
• System allows you to specify the default location for all CA files.
• Insecure will skip certificate validation but still encrypt the connection with TLS.

7. Enter the search user distinguished name (DN) for a user that has permission to view all the users
and groups on the directory server. This must be done in LDAP annotation as specified in the
example:

Enter search user DN (for example uid=username,dc=example,dc=com or leave empty for


anonymous): uid=user1,ou=Users,ou=department-1,dc=example,dc=com
Enter search user password:

8. Enter the base DN:

Please enter base DN (dc=redhat,dc=com) [dc=redhat,dc=com]:


ou=department-1,dc=redhat,dc=com

9. Choose whether or not to use single sign-on (SSO) for virtual machines:

Are you going to use Single Sign-On for Virtual Machines (Yes, No) [Yes]:

5
Red Hat Certified Specialist in Virtualization Linux Academy

10. Specify a profile name:

Please specify profile name that will be visible to users:redhat.com

Note: Select the correct profile in the drop-down list when logging in to the Red Hat Virtualiza-
tion Manager.

11. Test configuration with login query:

Note:
It is highly recommended to test drive the configuration before applying it into engine.
Login sequence is executed automatically, but it is recommended to also execute Search
sequence manually after successful Login sequence.
Please provide credentials to test login flow:
Enter user name:
Enter user password:
[ INFO ] Executing login sequence...
[ INFO ] Login sequence executed successfully

12. Confirm that user details are correct. If not, choose Abort:

Please make sure that user details are correct and group membership meets expectations
(search for PrincipalRecord and GroupRecord titles).
Abort if output is incorrect.
Select test sequence to execute (Done, Abort, Login, Search) [Abort]:

13. Manually test the search function (recommended):

Select test sequence to execute (Done, Abort, Login, Search) [Search]: Search
Select entity to search (Principal, Group) [Principal]:
Term to search, trailing '*' is allowed: testuser1
Resolve Groups (Yes, No) [No]:

14. Select Done to complete the setup:

Select test sequence to execute (Done, Abort, Login, Search) [Abort]: Done
[ INFO ] Stage: Transaction setup
[ INFO ] Stage: Misc configuration
[ INFO ] Stage: Package installation
[ INFO ] Stage: Misc configuration
[ INFO ] Stage: Transaction commit
[ INFO ] Stage: Closing up
CONFIGURATION SUMMARY
Profile name is: redhat.com
The following files were created:
/etc/ovirt-engine/aaa/redhat.com.properties
/etc/ovirt-engine/extensions.d/redhat.com.properties

6
Red Hat Certified Specialist in Virtualization Linux Academy

/etc/ovirt-engine/extensions.d/redhat.com-authn.properties
[ INFO ] Stage: Clean up
Log file is available at
/tmp/ovirt-engine-extension-aaa-ldap-setup-20171004101225-mmneib.log:
[ INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination

15. Restart the ovirt-engine service to allow the newly created profile to be available:

# systemctl restart ovirt-engine.service

Remove an External LDAP Provider


1. Delete the LDAP provider configuration files:

# rm -f /etc/ovirt-engine/extensions.d/profile1-authn.properties
# rm -f /etc/ovirt-engine/extensions.d/profile1-authz.properties
# rm -f /etc/ovirt-engine/aaa/profile1.properties

2. Restart the ovirt-engine service:

# systemctl restart ovirt-engine

3. Navigate to the Administration Portal, and in the Users tab, select the users of this provider and
click Remove.

Install Red Hat Virtualization Hypervisor


The Red Hat Virtualization Hypervisor or Red Hat Virtualization Host (RHVH) is a minimal operating system
that is based on Red Hat Enterprise Linux. The Host only contains the packages necessary for the machine
to act as a hypervisor.

Installing RHVH on a physical machine


1. Download an ISO image from the Customer Portal.

2. Write the ISO image to a USB, CD, or DVD.

3. Install the RHVH minimal operating system.

7
Red Hat Certified Specialist in Virtualization Linux Academy

Installation steps
1. Start the machine you wish to perform the installation on, with the bootable media connected.

2. At the boot menu, choose the Install option and press Enter.

3. Select your preferred language and click Continue.

4. Select a timezone from the Date & Time screen. Click Done.

5. Select a keyboard from the Keyboard screen. Click Done.

6. Select the device on which to install the RHVH from the Installation Destination screen (Use Auto-
matically configure unless your install needs specific partitioning). Click Done.

7. Select a network from the Network & Host Name screen and click Configure. Enter a hostname
name in the Hostname field. Click Done.

8. Click Begin Installation.

9. During the installation, set a root password and create an additional user (if desired).

10. Click Reboot to complete the installation.

Note: For automating RHVH deployments through a kickstart file, follow the documentation
provided by Red Hat.

Add one or more Red Hat Virtualization Hy-


pervisor instances to Red Hat Virtualization
Manager
1. Log in to the Administration Portal and click the Hosts resource tab.

2. Click New.

3. Use the drop-down list to select Data Center and the Host Cluster.

4. Enter the Name and Address for the new host (standard SSH port is auto-filled in the SSH Port
field).

5. Select an authentication method for the Manager to access the host:

• Enter the root password, or copy the SSH key displayed in the SSH PublicKey field onto the
host for public key authentication.

6. Click Advanced Parameters to disable automatic firewall configuration (optional) or add SSH fin-
gerprint (optional).

7. Configure power management if the host has a supported power management card (optional).

8
Red Hat Certified Specialist in Virtualization Linux Academy

8. Click OK.

The new host will display in the list of hosts. You can view the installation progress in the details pane.
Once the host has installed, it will display as Up.

Create a Backup of the Red Hat Virtualiza-


tion Manager
Create Backup
1. Log in to the manager host and run the following command to back up the virtualization manager:

# engine-backup --scope=all --mode=backup --file=file_name --log=log_file_name

Note: The default for --scope is all. You must specify a file name, --file, for the tar file that
is created by the engine-backup command as well as a name for the log file, --log.

Restore From Backup


1. Log in to the manager host and run the following commands to restore the virtualization manager
from a backup.

2. When restoring over an existing install, shutdown the manager (systemctl stop ovirt-engine)
and run engine-cleanup to remove the configuration files and clean the database.

3. Next, Run the following:

# engine-backup --mode=restore --file=file_name --log=log_file_name \


--provision-db --restore-permissions

Note: You must specify the tar file created by the backup using --file=file_name. You will
also need to specify a log file, --log=log_file_name, for the restore.

4. Once the restore is complete, you need to run the engine-setup command to configure the restored
Manager.

Manage Storage
Configure Storage Domain
Storage Domain Types
• Data: Stores the virtual disk, OVFs, templates, and snapshots

9
Red Hat Certified Specialist in Virtualization Linux Academy

• ISO: Stores ISO files used for installing and booting operating systems (NFS ONLY)

• Export: Temporary storage used to copy and move images between data centers and Red Hat
Virtualization environments (NFS ONLY)

Configure NFS Storage


Perform the following steps on the storage host

1. Create kvm group:

# groupadd kvm -g 36

2. Create vdsm user in the kvm group:

# useradd vdsm -u 36 -g 36

3. Create directories to be exported:

# mkdir -p /exports/data
# mkdir -p /exports/ISO
# mkdir -p /exports/export

4. Set ownership and permission of export directories:

# chown -R 36:36 /exports/data


# chown -R 36:36 /exports/ISO
# chown -R 36:36 /exports/export
# chmod 0755 /exports/data
# chmod 0755 /exports/ISO
# chmod 0755 /exports/export

5. Install nfs packages (if they are not already installed):

# yum install nfs-utils

6. Enable and start nfs:

# systemctl enable nfs


# systemctl start nfs

7. Add hostnames/IPs to be exported in /etc/exports:

/exports/data hostname(rw)
/exports/ISO. ip(rw)
/exports/export *.example.com(rw)

8. Export directories:

# exportfs -a

10
Red Hat Certified Specialist in Virtualization Linux Academy

Attaching NFS Storage


1. In the Red Hat Virtualization Administration Portal, click the Storage resource tab.

2. Click New Domain.

3. Enter a Name for the storage domain.

4. Accept the defaults for Data Center, Domain Function, Storage Type, Format, and Use Host lists.

5. Enter the Export Path for the storage domain.

6. Click OK.

Import Installation Media Into a Storage Domain


1. Copy the ISO image to a temporary directory on the system running Red Hat Virtualization Manager.

2. Log in to the Manager system as root.

3. Use the engine-iso-uploader command to upload the ISO image.


Example:

# engine-iso-uploader --iso-domain=ISODomain upload RHEL7.iso

• The ISODomain is the name of your specific ISO Storage Domain.

• You will be prompted for a username/password for an admin user.

• The username will need to be in the following format: name@domain.

• This can take a little while depending on the size of the image and the network bandwidth.

Create and Manage Data Centers and Clusters


Create New Data Center
1. Select the Data Centers resource tab.

2. Click New to open the New Data Center Window.

3. Enter a Name and Description for the data center.

4. Select the Storage Type(Shared/Local), Compatibility Version(4.1), and Quota Mode(Disabled) from
the drop-down menus.

5. Click OK to create the data center and open the New Data Center - Guide Me window.

6. Configure entities through the Guide Me window in order to complete creation (cluster, host, and
storage domain must be configured to create data center).

11
Red Hat Certified Specialist in Virtualization Linux Academy

Note: The data center will remain Uninitialized until a cluster, host, and storage domain are
configured for it.

Remove Data Center


1. Make sure that any storage domains attached to the data center are in maintenance mode.

2. Click the Data Centers tab and select the data center you wish to remove.

3. Click Remove which will open the Remove Data Center(s) confirmation window.

4. Click OK.

Attach and Detach Storage Domains


Attach Storage Domain
1. Click the Data Centers tab and select the data center you want to attach storage to.

2. Select the Storage tab.

3. For data domain, Click Attach Data and select the check box for the data domain(s) you want to
attach.

4. For ISO domain, Click Attach ISO and select the radio button for the ISO domain you wish to attach.

5. For Export domain, Click Attach Export and select the radio button for the Export domain you wish
to attach.

6. To finish, click OK.

Detach Storage Domain


1. Click the Data Centers tab and select the data center you want to attach storage to.

2. Select the Storage tab.

3. Select the storage domain to detach. If the storage domain is Active, click Maintenance, then click
OK to put the storage domain into maintenance mode.

4. Click OK to finish.

Assign User or Administrator Role to a Resource


1. Use the resource tabs, tree mode, or the search function to find and select the resource.

2. Click the Permissions tab in the details pane to list the assigned users, the user’s role, and the
inherited permissions for a particular resource.

12
Red Hat Certified Specialist in Virtualization Linux Academy

3. Click Add.

4. Enter the name or username of an existing user in the Search text block and click Go. Select a user
from the results.

5. Select a role from the Role To Assign drop-down.


Note: To remove permissions, follow steps 1 and 2, select the user, and click Remove.

Creating New Cluster


1. Select the Clusters tab.

2. Click New.

3. Choose the Data Center the cluster will belong to from the drop-down.

4. Enter a Name and Description for the cluster.

5. Select a network from the Management Network drop-down list.

6. Select the CPU Architecture and CPU Type from the drop-down lists.

7. Select Compatibility Version.

8. Select Enable Virt Service:

• Enable Gluster Service is only for Gluster-enabled hosts, and it not compatible with Red Hat
Virtualization Hosts.

9. Set Optional fields:

• Set Enable to set VM maintenance reason to enable a reason field for when the virtual ma-
chine is shut down.
• Set Enable to set Host maintenance reason to enable a reason field for when the host is set
into maintenance mode.
• Select the random number generator to be /dev/hwrng source. The /dev/urandom source
is enabled by default.

10. Click the Optimization tab to select the memory page threshold for the cluster (optional). You can
enable the CPU thread handling and memory ballooning for the hosts on the cluster:

• Setting these options will allow VM to run at 200% of memory allocated and also utilize more
threads than specified for the VM.
• These resources are temporarily taken from other VMs in the cluster.

11. Click the Migration Policy tab to define the virtual machine migration policy.

12. Click the Scheduling Policy policy tab to:

• Configure a scheduling policy and optimization settings

13
Red Hat Certified Specialist in Virtualization Linux Academy

• Enable a trusted service


• Enable HA reservation
• Add a custom serial policy number

13. Click the Console tab to (optionally) override the global SPICE policy and set the address for a SPICE
proxy host for the cluster.

14. Click Fencing policy to enable or disable fencing in the cluster.

15. Click the MAC Address Pool specify a mac address pool other than the default.

16. Click OK to create the cluster. This will open the Guide Me window for configuring entities.

Removing a Cluster
Note: Move all hosts out of a cluster before removing it. Also, you cannot remove the Default cluster
because it holds the Blank template. However, you can rename the Default cluster, and add it to a
new data center.

1. Find the cluster by using the resource tab, tree mode, or search function. Then select it.

2. Ensure there are no hosts in the cluster.

3. Click Remove.

4. Click OK in the Remove Cluster(s) confirmation window.

Cluster Permissions
Please see section on Assign User or Administrator Role to a Resource, as the process for setting permis-
sions is the same.

Create and Manage Virtual Machines


Install Virtual Machines (Linux)
1. Click the Virtual Machines tab and click New VM.

2. Select Operating System.

3. Enter Name.

4. Add storage to the VM with either of the following:

• Attach (existing)
• Create (new) virtual disk

14
Red Hat Certified Specialist in Virtualization Linux Academy

5. Connect the VM to the network. Add a NIC by selecting a vNIC profile.

6. Specify Memory Size on the System tab.

7. Choose the First Device that the virtual machine will boot from (under Boot Options).

8. Accept defaults unless otherwise specified.

9. click OK.
Note: Installing the Linux Guest agents and Drivers will allow for monitoring as well as graceful
shutdowns. To install on Linux:

1. Enable repo:

# subscription-manager repos --enable=rhel-7-server-rh-common-rpms

2. Install packager and dependencies:

# yum install ovirt-guest-agent-common

3. Start and enable services:

# systemctl start ovirt-guest-agent.service


# systemctl enable ovirt-guest-agent.service
# systemctl start qemu-guest-agent.service
# systemctl enable qemu-guest-agent.service

Starting and stopping Virtual Machines


To start up:

• Click Virtual Machines tab and select a VM with a status of down.

• Click the run button (looks like a green up arrow):

• You could instead right click VM and select Run.

To shut down:

• Click Virtual Machines tab and select a running VM.

• Click the shut down button (looks like a red down arrow):

• You could instead right click VM and select Shutdown.

To suspend:

• Click Virtual Machines tab and select a running VM.

15
Red Hat Certified Specialist in Virtualization Linux Academy

• Click the suspend button (looks like a blue moon):

• You could instead right click VM and select Suspend

To reboot:

• Click Virtual Machines tab and select a running VM.

• Click the reboot button (looks like a green circle with an arrow):

• You could instead right click VM and select Reboot

Edit Virtual Machine Hardware Characteristics


Virtual Machine Properties
Select the virtual machine to be edited, then click Edit. The following changes are applied immediately
without a restart:

• Name

• Description

• Comment

• Optimized for Desktop/Server

• Delete Protection

• Network Interfaces

• Memory Size

• Virtual Sockets

• Use custom migration downtime

• Highly Available

• Priority for Run/Migration queue

• Disable strict user checking

• Icon

16
Red Hat Certified Specialist in Virtualization Linux Academy

IO Threads
Edit IO Threads:
1. Select the IO Threads Enabled check box (default count is 1).

2. Click OK.

3. Click the reboot Icon to restart the VM.

If you increase the number of IO threads, you must reactivate the disks so that they will be remapped
according to the the new number of controllers:

1. Click the Shutdown icon.

2. Click the Disks tab.

3. Select each disk and Deactivate.

4. Select each disk and Activate.

5. Click the Run icon to start the VM.

Network Interfaces
Add a network interface:
1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Network Interfaces tab.

3. Click New.

4. Enter the Name of new network interface.

5. Use the drop-down to select the Profile and Type.

6. Select the Custom MAC address check box and enter MAC address as needed.

7. Click OK.

Edit an existing network interface:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Network Interfaces tab and select a network interface.

3. Click Edit.

4. Change settings as required (Name, Profile, Type, and Custom MAC address).

5. Click OK.

17
Red Hat Certified Specialist in Virtualization Linux Academy

Remove a network interface:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Network Interfaces tab and select a network interface.

3. Click Remove.

4. Click OK.

Virtual Disks
Add a new virtual disk:
1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Disks tab.

3. Click New.

Configure new disk:


1. Use radio buttons to switch between Image, Direct LUN, or Cinder.

2. Enter Size(GB), Alias, and Description.

3. Pick an interface:

• VirtIO is faster but requires drivers.


• IDE does not require drivers.

4. Storage Domain - select storage domain available to store virtual disk.

5. Allocation policy:

• Preallocated allocates the entire size of the disk at the time of creation.
• Thin Provision allocates 1 GB at the point of disk creation and sets a maximum limit to which
the disk can grow.

6. Disk Profile: Define maximum throughput for a virtual disk. The profile is defined on the storage
domain based on the quality of service (QoS) that has been created.

7. Activate Disk: Activate virtual disk immediately after creation.

8. Wipe after Delete: Enable enhanced security for deletion of sensitive material when virtual disk is
deleted.

9. Bootable: Enable the bootable flag on the virtual disk.

10. Shareable: Attach the virtual disk to more than one VM at a time.

11. Read Only: Set the disk as read only. You can attach the disk as writable to another virtual machine.

12. Enable Discard: Shrink a thinly provisioned disk while the VM is up.

18
Red Hat Certified Specialist in Virtualization Linux Academy

Attach a virtual disk:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Disks tab.

3. Click Attach.

4. Select one or more virtual disks from the list.

5. Click OK.

Extend the size of a virtual disk:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Disks tab. and select a disk.

3. Click Edit and enter a value in the Extend size by(GB) field.

4. Click OK.

Remove a virtual disk:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Disks tab and select a disk.

3. Click Deactivate.

4. Click OK.

5. Click Remove (select Remove Permanently to remove the disk from the environment).

6. Click OK.

Configure Automatic Migration for Virtual Machines


The Red Hat Virtualization Manager automatically initiates live migration of all virtual machines on a host
when that host is moved into maintenance mode.

Prerequisites:
1. Source/Destination hosts are members of same cluster.

2. Source/Destination hosts are up.

3. Source/Destination hosts have access to the same virtual networks and VLANs.

4. Source/Destination hosts have access to the data storage domain on which the VM resides.

5. A destination host has enough CPU and RAM capacity to support the new VM.

6. The migrating virtual machine cannot have the cache!=none property set.

19
Red Hat Certified Specialist in Virtualization Linux Academy

Optimize Live Migration


Enable the optimization settings at the global level:
1. Enable auto-convergence at the global level:

# engine-config -s DefaultAutoConvergence=True

2. Enable migration compression at global level:

# engine-config -s DefaultMigrationCompression=True

3. Restart ovirt-engine service to apply changes:

# systemctl restart ovirt-engine.service

Enable the optimization settings at the cluster level:


1. Select cluster.

2. Click Edit.

3. Click the Migration Policy tab:

• From the Auto Converge Migration list select Auto Converge.


• From the Enable migration compression list select Compress.

Work With Virtual Machine Images


Create Snapshots
Create a Snapshot:
1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Snapshots tab in the details pane and click Create.

3. Enter a description for the snapshot.

4. Select Disks to include.

5. Use the Save Memory check box if you want to include the virtual machines memory in the snap-
shot.

6. Click OK.

20
Red Hat Certified Specialist in Virtualization Linux Academy

Delete a Snapshot:
1. Click Virtual Machines and select a VM.

2. Click the Snapshots tab.

3. Select a snapshot.

4. Click Delete then OK.

Restore a Virtual Machine from Snapshot:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Snapshots tab to list available snapshots.

3. Select a snapshot to restore in the left side-pane.

4. Click the drop-down menu beside Preview to open the Custom Preview Snapshot window.

5. Use the check boxes to select the VM Configuration, Memory, and disk(s) to create and restore
from a customized snapshot using the configuration of multiple snapshots, then click OK.

6. Start the virtual machine (it runs using the disk image of the snapshot).

7. Click Commit to permanently restore the virtual machine to the condition of the snap shot (this will
erase any subsequent snapshots).

8. You can (alternatively) click Undo to return to the previous state of the virtual machine deactivating
the snapshot.

Create Virtual Machines from Snapshots:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click the Snapshots tab to list available snapshots.

3. Select a snapshot in the list displayed and click Clone.

4. Enter the Name and Description for the virtual machine.

5. Click OK.

Import Existing Virtual Machine Images Into Red


Hat Virtualization Manager
• OVF: Open Virtual Machine Format

• OVA: Open Virtual Appliance

• V2V: Feature that allows you to import virtual machines from other providers like VMware or Zen.

21
Red Hat Certified Specialist in Virtualization Linux Academy

Note: The Export domain holds two directories for each VM or template - one holds OVF and one
holds the disk image(s)

Exporting a Virtual Machine:


1. Click Virtual Machines and select a VM.

2. Click Export.

3. Select Force Override (optionally) to override existing images of the VM or Collapse Snapshots
which creates a single export volume per disk. This option will remove snapshot restore points and
includes the template for template-based VMs (you can also choose to export the template if the
VM is dependent upon a template)

4. Click OK.

Note: The Virtual Machine must be shut down before it can be exported.

Importing a Virtual Machine:


1. Click the Storage tab and select the the export domain (it must be Active).

2. Select the VM Import tab to list the available VMs.

3. Select one or more VMs to import and click Import.

4. Select the Default Storage Domain and Cluster.

5. Select the Collapse Snapshots check box to remove snapshot restore points and include templates
(for template-based VMs).

6. Click the VM to be imported and click the Disks sub-tab. From there you can use the Allocation
Policy and Storage Domain to configure the disk(s).

7. Click OK.

Note: The Export domain must be attached before you can import the VM into a new data center.

Also Note: If the VM already exists, the Import Virtual Machine Conflict window will open allowing
you to address the conflict. You can choose Don’t import or Import as cloned.

Importing an OVA File:


1. Copy the OVA file to a host in your cluster.

2. Ensure that the qemu user and kvm group have read/write permissions on the file:

22
Red Hat Certified Specialist in Virtualization Linux Academy

# chown 36:36 path_to_OVA_file/file.OVA

3. In the Virtual Machines tab, click Import.

4. Select VMware Virtual Appliance (OVA) from the Source list, the host with the OVA file, the path to
the file, then click Load and select one more virtual machines from the list.

5. Click Next.

6. Select the Target Cluster, CPU Profile, Allocation Policy, Attach VirtIO-Drivers (optionally), and
Operating System (per virtual machine). From the Network Interfaces sub-tab, select the Network
Name and Profile Name. From the Disks sub-tab, you can view the Alias, Virtual Size, and Actual
Size of the virtual machine.

7. Click OK to import the virtual machines.

Create and Manage Red Hat Virtualization


Manager Users
Create Internal Users
Create internal users using ovirt-aaa-jdbc-tool on the Man-
ager host:
1. Create a new user:

# ovirt-aaa-jdbc-tool user add USERNAME

2. Set user password (you must set --password-valid-to or the password expiry will default to the
current time):

# ovirt-aaa-jdbc-tool user password-reset USERNAME \


--password-valid-to="2025-08-01 12:00:00"

3. View user information:

# ovirt-aaa-jdbc-tool user show USERNAME

4. Edit a user:

# ovirt-aaa-jdbc-tool user edit USERNAME --attribute=ATTRIBUTE=VALUE

5. Remove a user:

# ovirt-aaa-jdbc-tool user delete USERNAME

23
Red Hat Certified Specialist in Virtualization Linux Academy

Note: You can use the –help option to get more information about a particular command such
as ovirt-aaa-jdbc-tool user add --help

6. Add a group:

# ovirt-aaa-jdbc-tool group add GROUPNAME

7. Add a user to a group:

# ovirt-aaa-jdbc-tool group-manage useradd GROUPNAME --user=USERNAME

Create External Users


External users are created on the external LDAP server and can be added to the Red Hat Virtualization
Manager by the following process:

1. In the Administration Portal on the header bar, click Configure to open the configure window. Click
System Permissions.

2. Click Add to open the Add System Permission to User window.

3. Select a profile under Search. This profile should be the name of the external LDAP domain. Enter
a name or part of a name and Click Go. Just clicking Go without putting in a name will show all of
the available users.

4. Select the check box for the appropriate users or groups.

5. Under Role to Assign select an appropriate role. Assigning the UserRole gives permission to login to
the user portal.

6. Click OK.

Configure Roles and Assign Them to Users


Creating a New Role:
1. In the header bar in the Administration console, Click the Configure button (This will display default
and custom roles).

2. Click New.

3. Enter Name and Description for the new role.

4. Select either Admin or User as the account type.

5. Use the Expand All or Collapse All buttons to view more or fewer permissions options.

6. For each object, select or clear the actions you wish to permit or deny.

7. Click OK to apply changes you’ve made.

24
Red Hat Certified Specialist in Virtualization Linux Academy

Assign Roles to Users:


1. In the Administration Portal on the header bar, click Configure to open the Configure window.

2. Click System Permissions.

3. Click Add to open the Add System Permission to User window.

4. Select a profile under Search. This profile should be the name of the external LDAP domain. Enter
a name or part of a name and Click Go. Just clicking Go without putting in a name will show all of
the available users.

5. Select the check box for the appropriate users or groups.

6. Under Role to Assign select an appropriate role. Assigning the UserRole gives permission to login to
the user portal.

7. Click OK.

Configure Access Using Roles


Please see the previous heading for the explanation on creating New Roles and providing Access. You
can create custom roles to allow very specific access for users.

Automatically Deploy Virtual Machines


Create and Manage Virtual Machine Templates
Create Virtual Machine Templates
1. Click the Virtual Machines tab and select a source virtual machine.

2. Ensure the VM is powered down and has a status of Down.

3. Click Make Template.

4. Enter a Name, Description, and Comment.

5. Select the cluster to associate the template with from the Cluster drop-down.

6. Optional steps:

• Set the CPU Profile assigned to the template (CPU QoS).


• Select Create as a Template Sub Version. You can create a sub template of an already existing
template (Root Template).

7. Under Disks Allocation enter an Alias for the disk, select a Format, select a storage domain from
the Target drop-down, and the Disk Profile (by default they are the same as the source VM).

25
Red Hat Certified Specialist in Virtualization Linux Academy

8. Select Allow all users to access this Template to make the template public.

9. Select the Copy VM permissions check box to copy the permissions of the source virtual machine
to the template.

10. Select Seal Template check box (for Linux only) to seal the template. This removes the system-
specific details from the VM.

11. Click OK.

Edit Virtual Machine Templates:


1. Click the Templates tab.

2. Select a template.

3. Click Edit.

4. Click OK.

Delete Virtual Machine Templates:


1. Click the Templates tab.

2. Select a template.

3. Click Remove.

4. Click OK.

Note: You cannot delete a template that has been used to create VMs using the thin provisioning
storage option.

Deploy Virtual Machines Using Templates


Create a Virtual Machine Based on a Template:
1. Click the Virtual Machines tab.

2. Click New VM.

3. Select the Cluster.

4. Select a template from the Based on Template list.

5. Enter a Name, Description, and any Comments (accept defaults of template or change if required).

6. Click the Resource Allocation tab.

7. Select the Thin radio button.

8. Use the Target drop-down to select the storage domain.

9. Click OK.

26
Red Hat Certified Specialist in Virtualization Linux Academy

Create a Cloned Virtual Machine Based on a Template:


1. Click the Virtual Machines tab.

2. Click New VM.

3. Select the Cluster.

4. Select a template from the Based on Template list.

5. Enter a Name, Description, and any Comments (accept defaults of template or change if required).

6. Click the Resource Allocation tab.

7. Select the Clone radio button.

8. Select the disk format from the Format drop-down list:

• QCOW2: Disk space is allocated as needed by the VM.


• Raw: Disk space requested is fully allocated at the time of the clone operation.

9. Use the Target drop-down to select the storage domain.

10. Click OK.

Configure Virtual Machines Using Cloud-init


Installing Cloud-init on a Virtual Machine:
1. Log in to the virtual machine.

2. Enable required repositories:

# subscription-manager repos --enable=rhel-7-server-rpms


# subscription-manager repos --enable=rhel-7-server-rh-common-rpms

3. Install the cloud-init package and dependencies:

# yum install cloud-init

Use Cloud-init to Prepare a Template:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click Edit.

3. Click the Initial Run tab and select the Use Cloud-Init/Sysprep check box.

4. Enter a host name in the VM Hostname text field.

27
Red Hat Certified Specialist in Virtualization Linux Academy

5. Select the Configure Time Zone check box and select a time zone from the Time Zone drop-down
list.

6. Expand the Authentication section and select Use already configured password to use the existing
credentials, or clear the check box and enter a root password in the Password and Verify Password
text fields to specify a new root password.

7. Enter any SSH keys to be added in the SSH Authorized Keys text area.

8. Select the Regenerate SSH Keys check box to regenerate SSH keys for the virtual machine.

9. Expand the Network section to enter any DNS servers.

10. Enter any DNS search domains.

11. Select the Network check box and use the + or - to add or remove network interfaces (specify correct
name and number for interface).

12. Expand the Custom Script section and enter any custom scripts.

13. Click OK.

14. Click Make Template.

15. Click OK.

Use Cloud-init to initialize Virtual Machine:


1. Click the Virtual Machines tab and select a virtual machine.

2. Click Run Once.

3. Click the Initial Run section and select the Cloud-Init check box.

4. Enter a host name in the VM Hostname text field.

5. Select the Configure Time Zone check box and select a time zone from the Time Zone drop-down
list.

6. Select Use already configured password to use the existing credentials, or clear the check box
and enter a root password in the Password and Verify Password text fields to specify a new root
password.

7. Enter any SSH keys to be added in the SSH Authorized Keys text area.

8. Select the Regenerate SSH Keys check box to regenerate SSH keys for the virtual machine.

9. Enter any DNS servers.

10. Enter any DNS search domains.

11. Select the Network check box and use the + or - to add or remove network interfaces (specify correct
name and number for interface).

12. Enter a custom script in the Custom Script text area.

13. Click OK.

28
Red Hat Certified Specialist in Virtualization Linux Academy

Work With Logical Networks


Create Logical Networks
Create New Logical Network in Data Center or Cluster:
1. Click the Data Centers or Clusters resource tab to select a data center or cluster.

2. Click the Logical Networks tab of the details pane to list existing logical networks.

3. For Data Centers, click New to open the New Logical Networks window. For Clusters, click Add Net-
work to open the New Logical Networks window.

4. Enter a Name, Description, and Comment for the logical network.

5. Select Create an external provider and provide IP of Physical Network (optional).

6. Select an existing Network Label or create a new one.

7. You can Enable VLAN tagging (optional).

8. You can disable VM Network (optional).

9. Set the MTU value to Default (1500) or Custom.

10. From the Cluster tab, select clusters to assign the logical network to.

11. If Create an external provider was selected, the Subnet tab will be visible. You can create a subnet
by entering the following: Name, CIDR, Gateway, and IP Version.

12. Add vNIC profiles as required through the vNIC Profiles tab.

13. Click OK.

Remove a Logical Network:


You can remove a logical network from the Networks or Data Centers resource tabs:

1. Click the Data Centers tab and select the data center of the logical network.

2. Click the Logical Networks tab to list the logical networks.

3. Select the logical network and click Remove. You can select to remove any external network from
the provider as well.

4. Click OK.

29
Red Hat Certified Specialist in Virtualization Linux Academy

Edit Logical Networks:


1. Click the Data Centers tab and select a data center.

2. Click the Logical Networks tab and select a logical network.

3. Click Edit.

Edit Gateway:
1. Click the Hosts tab and select a host.

2. Select Network Interfaces.

3. Select Setup Host Networks.

4. Select Edit Management Network:

• Hover over an assigned logical network and click the pencil icon.

5. Select Static to manually configure.

Designate Specific Traffic Type for a Logical Network:


1. Navigate to Clusters and select a cluster.

2. Click Logical Networks.

3. Click Manage Networks:

• Assign: Assigns the logical network to all the hosts in the cluster.
• Required: Network must remain operational in order for hosts to function properly.
• VM Network: Carries traffic relevant to the virtual machine network.
• Display Network: Carries network traffic relevant to SPICE and to the virtual network controller.
• Migration Network: Carries virtual machine and storage migration traffic.

Create or Edit vNIC Profiles


Navigate to Networks (select a logical network) > vNIC Profiles > New or Edit:

1. Network: Drop-down list of available networks

2. Name: Name of vNIC profile

3. Description: Description of vNIC profile

4. QoS: drop-down list of available QoS (quality of service) profiles that regulate inbound and outbound
network traffic to vNIC

30
Red Hat Certified Specialist in Virtualization Linux Academy

5. Network Filter: Drop-down list of available network filters to apply to vNIC profile:

• Improves security by filtering the types of packets that can be sent to and from virtual ma-
chines
• No Network Filter should be used for virtual machine VLANs and bonds:
• Not having a filter can also improve performance

6. Passthrough: Allows vNIC to connect directly to a virtual function of a host NIC:

• Enabling Passthrough will disable QoS, network filters, and port mirroring

7. Migratable: Default setting that allows vNIC to be migrated:

• Selecting the Passthrough option allows this setting to be deselected.

8. Port Mirroring: Copies layer 3 network traffic on the logical network to a virtual interface on a virtual
machine:

• Used mainly for monitoring and debugging network traffic.

9. Device Custom Properties: Drop-down menu to select available custom properties to apply to the
vNIC profile.

10. Allow all users to use this Profile: Makes profile available to all users.

Remove vNIC profile by navigating to Networks (select a logical network)> Profiles> select one or more
profiles and click Remove > OK.

Configure user permissions by navigating to Networks (select a logical network) > vNIC Profiles > Permis-
sions > click Add (or Remove) > in Add Permissions to User click My Groups.

Assign Hosts to Logical Networks


1. Click the Hosts tab and select a host.

2. Click the Network Interfaces tab in the details pane.

3. Click the Setup Host Networks button to open the Setup Host Networks window.

4. Attach a logical network to a physical host network interface by selecting and dragging the log-
ical network into the Assigned Logical Networks area next to the physical host network interface.
Alternatively, right-click the logical network and select a network interface from the drop-down.

5. To configure the logical network, hover your cursor over an assigned logical network and click the
pencil icon.

6. Check network connectivity by selecting the Verify connectivity between Host and Engine:

• Only works if the host is in maintenance mode

31
Red Hat Certified Specialist in Virtualization Linux Academy

7. To make the changes persistent when the environment is rebooted, select the Save network con-
figuration check box.

8. Click OK.

32

Вам также может понравиться