In this exercise, you will create a new Red Hat Enterprise Linux virtual machine in your Red Hat Virtualization environment.
Outcome
You should be able to create a new, functioning Red Hat Enterprise Linux virtual machine.
Log in to workstation as student using student as the password.
On workstation, run the lab install-vm start command.
This command runs a start script that determines if the Red Hat Virtualization environment is configured and working.
[student@workstation ~]$lab install-vm start
On workstation confirm that you have access to the Kickstart file.
Use Firefox to access http://materials.example.com/static/small.cfg to review the contents of the Kickstart file.
Confirm that virt-viewer is installed.
On workstation, install the virt-viewer client.
The password for the sudo is student.
[student@workstation ~]#sudo yum -y install virt-viewer
On workstation increase the screen resolution to 1920x1080.
Different dialog windows displayed in this chapter and in the later chapters require a higher resolution.
Using the URL https://rhvm.lab.example.com, log in to Red Hat Virtualization Administration Portal as user admin with the password redhat in the authentication domain internal.
Navigate to Virtual Machines page by clicking Compute in the menu bar and then selecting Virtual Machines.
To create a new Red Hat Enterprise Linux virtual machine click the button. The New Virtual Machine dialog displays.
In the Cluster section, choose the cluster.
As the Operating System, select .
Click the Instance Type drop-down list and choose the type.
Click the Optimized for drop-down list and choose the type.
In the Name field, type in the name for the virtual machine as rhel-test.
In the Description field, type in the description for the virtual machine as First RHEL Guest.
To create an image for the new VM, click the button on the Instance Images line.
Specify the Size of the image as 5 GB.
Leave all the other options with their default values and confirm by clicking the button.
In the bottom part of the dialog window, choose a network interface by clicking on the Please select an item list next to the nic1 network card. From the list, choose the ovirtmgmt (ovirtmgmt) network.
To confirm the creation of this virtual machine, click the button.
Selecting an instance type populates memory and CPU values for the virtual machine. These values are visible from the System tab when viewing advanced options. Although choosing either Server or High Performance from the Optimized for menu will switch the Instance Type menu back to Custom, the memory and CPU values for the instance type that you selected will remain the same.
Notice that on the list of available virtual machines the new rhel-test virtual machine appeared.
Modify the configuration of the virtual machine so that it boots using the Red Hat Enterprise Linux installation image in the virtual CD-ROM/DVD-ROM device, and boot it.
Highlight the rhel-test virtual machine from the list of virtual machines. Click the drop down next to the button to display the Run Once option.
Click the + icon next to Boot Options to open the boot options dialog.
Click the check box next to the Attach CD.
From the drop-down list of available ISO files, choose the Red Hat Enterprise Linux installation ISO rhel-8.0-x86_64-boot.iso.
This “inserts” the ISO file into the virtual CD-ROM drive.
In the Predefined Boot Sequence list, choose the by clicking on it. With the CD-ROM highlighted, click the button once, to bring the CD-ROM drive to the top of the Boot Sequence list.
To confirm your changes and boot the virtual machine from the Red Hat Enterprise Linux installation ISO, click the button.
Open the virtual machine console and start a Kickstart installation of the virtual machine.
In case you open the console too late, at a stage where you can not modify the kernel argument line anymore, simply reboot the virtual machine by right-clicking the name and choosing Reboot. After the virtual machine reboots you will be able to access the console and follow along with the rest of the guided exercise.
Once the virtual machine has started and the console button becomes available,
click the active console button to start the Red Hat Enterprise Linux installation.
Accept the opening of the console.vv file using Remote Viewer by clicking the button.
If Remote Viewer prompts for your confirmation to inhibit shortcuts, click Allow.
In the GRUB menu, edit the installer options by choosing Install Red Hat Enterprise Linux 8.0.0 and press the Tab key to append the installer.
The editor should open with the cursor automatically positioned at the end of the existing kernel arguments.
At the end of the kernel argument line, add a space and the argument inst.ks=http://materials.example.com/static/small.cfg to specify the location of your Kickstart file.
Press Enter to start the Kickstart installation of the virtual machine.
Watch for the installation to complete. After the installation completes, the virtual machine automatically reboots from the CD.
Close the console and power off the VM by right-clicking the VM entry and selecting . Confirm that you really want to power off the machine.
To test the Red Hat Enterprise Linux virtual machine, power on your new virtual server by right-clicking the machine name in the overview and selecting .
Open the console by right-clicking the machine name and selecting .
After the virtual machine starts up, log in with the root user account with a password of redhat.
Log out of the virtual machine.