Chapter 2. Installing Red Hat Enterprise Linux Virtual Machines Installing a Red Hat Enterprise Linux virtual machine involves the following key steps: Create a virtual machine. You must add a virtual disk for storage, and a network interface to connect the virtual machine to the network. Start the virtual machine and install an operating system. See your operating system's documentation for instructions. Red Hat Enterprise Linux 6: Installing Red Hat Enterprise Linux 6.9 for all architectures Red Hat Enterprise Linux 7: Installing Red Hat Enterprise Linux 7 on all architectures Red Hat Enterprise Linux Atomic Host 7: Red Hat Enterprise Linux Atomic Host 7 Installation and Configuration Guide Red Hat Enterprise Linux 8: Installing Red Hat Enterprise Linux 8 using the graphical user interface Enable the required repositories for your operating system. Install guest agents and drivers for additional virtual machine functionality. 2.1. Creating a virtual machine When creating a new virtual machine, you specify its settings. You can edit some of these settings later, including the chipset and BIOS type. For more information, see UEFI and the Q35 chipset in the Administration Guide . .Prerequisites Note Before you can use this virtual machine, you must: Install an operating system Use a pre-installed image by Creating a Cloned Virtual Machine Based on a Template Use a pre-installed image from an attached pre-installed Disk Install an operating system through the PXE boot menu or from an ISO file Register with the Content Delivery Network Procedure Click Compute Virtual Machines . Click New . This opens the New Virtual Machine window. Select an Operating System from the drop-down list. Note If you selected Red Hat Enterprise Linux CoreOS as the operating system, you may need to set the initialization method by configuring Ignition settings in the Advanced Options Initial Run tab. See Configuring Ignition . Enter a Name for the virtual machine. Add storage to the virtual machine: under Instance Images , click Attach or Create to select or create a virtual disk . Click Attach and select an existing virtual disk. or Click Create and enter a Size(GB) and Alias for a new virtual disk. You can accept the default settings for all other fields, or change them if required. See Explanation of settings in the New Virtual Disk and Edit Virtual Disk windows for more details on the fields for all disk types. Connect the virtual machine to the network. Add a network interface by selecting a vNIC profile from the nic1 drop-down list at the bottom of the General tab. Specify the virtual machine's Memory Size on the System tab. In the Boot Options tab, choose the First Device that the virtual machine will use to boot. You can accept the default settings for all other fields, or change them if required. For more details on all fields in the New Virtual Machine window, see Explanation of settings in the New Virtual Machine and Edit Virtual Machine Windows . Click OK . The new virtual machine is created and displays in the list of virtual machines with a status of Down . Configuring Ignition Ignition is the utility that is used by Red Hat Enterprise Linux CoreOS to manipulate disks during initial configuration. It completes common disk tasks, including partitioning disks, formatting partitions, writing files, and configuring users. On first boot, Ignition reads its configuration from the installation media or the location that you specify and applies the configuration to the machines. Important Once Ignition has been configured as the initialization method, it cannot be reversed or re-configured. In the Add Virtual Machine or Edit Virtual Machine screen, click Show Advanced Options . In the Initial Run tab, select the Ignition 2.3.0 option and enter the VM Hostname . Expand the Authorization option, enter a hashed (SHA-512) password, and enter the password again to verify. If you are using SSH keys for authorization, enter them in the space provided. You can also enter a custom Ignition script in JSON format in the Ignition Script field. This script will run on the virtual machine when it starts. The scripts you enter in this field are custom JSON sections that are added to those produced by the Manager, and allow you to use custom Ignition instructions. Note If the Red Hat Enterprise Linux CoreOS image you are using contains an Ignition version different than 2.3.0, you need to use a script in the Ignition Script field to enforce the Ignition version included in your Red Hat Enterprise Linux CoreOS image. When you use an Ignition script, the script instructions take precedence over and override any conflicting Ignition settings you configured in the UI.

Commands: