3.2. Creating virtual machines and installing guest operating systems using the web console
To manage virtual machines (VMs) in a GUI on a RHEL 9 host, use the web console. The following sections provide information on how to use the RHEL 9 web console to create VMs and install guest operating systems on them.
3.2.1. Creating virtual machines using the web console
To create a virtual machine (VM) on the host machine to which the web console is connected, follow the instructions below.
Conditions préalables
- Virtualization is enabled on your host system.
- The web console VM plug-in is installed on your system.
- You have sufficient a amount of system resources to allocate to your VMs, such as disk space, RAM, or CPUs. The recommended values may vary significantly depending on the intended tasks and workload of the VMs.
Procédure
In the Virtual Machines interface of the web console, click Create VM.
The Create new virtual machine dialog appears.
Enter the basic configuration of the VM you want to create.
- Name - The name of the VM.
- Installation type - The installation can use a local installation medium, a URL, a PXE network boot, a cloud base image, or download an OS from a limited set of operating systems.
- Operating system - The VM’s operating system. Note that Red Hat provides support only for a limited set of guest operating systems.
- Storage - The type of storage with which to configure the VM.
- Storage Limit - The amount of storage space with which to configure the VM.
- Memory - The amount of memory with which to configure the VM.
Create the VM:
- If you want the VM to automatically install the operating system, click Create and run.
- If you want to edit the VM before the operating system is installed, click Create and edit.
Ressources supplémentaires
3.2.2. Creating virtual machines by importing disk images using the web console
To create a virtual machine (VM) by importing a disk image of an existing VM installation, follow the instructions below.
Conditions préalables
- The web console VM plug-in is installed on your system.
- You have sufficient a amount of system resources to allocate to your VMs, such as disk space, RAM, or CPUs. The recommended values can vary significantly depending on the intended tasks and workload of the VMs.
- Make sure you have a disk image of an existing VM installation
Procédure
In the
Virtual Machines
interface of the web console, click Import VM.The Import a virtual machine dialog appears.
Enter the basic configuration of the VM you want to create.
- Name - The name of the VM.
- Disk image - The path to the existing disk image of a VM on the host system.
- Operating system - The VM’s operating system. Note that Red Hat provides support only for a limited set of guest operating systems.
- Memory - The amount of memory with which to configure the VM.
Import the VM:
- If you want the VM to automatically install the operating system, click Import and run.
- If you want to edit the VM before the operating system is installed, click Import and edit.
3.2.3. Installing guest operating systems using the web console
The first time a virtual machine (VM) loads, you must install an operating system on the VM.
If you click Create and run or Import and run when creating a new VM, the installation routine of the operating system starts automatically when the VM is created.
Conditions préalables
- The web console VM plug-in is installed on your system.
- A VM on which to install an operating system must be available.
Procédure
In the Virtual Machines interface, click the VM on which you want to install a guest OS.
A new page opens with basic information about the selected VM and controls for managing various aspects of the VM.
Optional: Change the firmware.
NoteYou can change the firmware only if you select Create and edit or Import and edit when creating a new VM, and the OS has not already been installed on the VM.
- Click the firmware.
- In the Change Firmware window, select the desired firmware.
- Cliquez sur Enregistrer.
Cliquez sur Installer.
The installation routine of the operating system runs in the VM console.
Résolution de problèmes
- If the installation routine fails, the VM must be deleted and recreated.
3.2.4. Creating virtual machines with cloud image authentication using the web console
By default, distro cloud images have no login accounts. However, using the RHEL web console, you can now create a virtual machine (VM) and specify the root and user account login credentials, which are then passed to cloud-init.
Conditions préalables
- The web console VM plug-in is installed on your system.
- Virtualization is enabled on your host system.
- You have a sufficient amount of system resources to allocate to your VMs, such as disk space, RAM, or CPUs. The recommended values may vary significantly depending on the intended tasks and workload of the VMs.
Procédure
In the Virtual Machines interface of the web console, click Create VM.
The Create new virtual machine dialog appears.
- In the Name field, enter a name for the VM.
On the Details tab, in the Installation type field, select Cloud base image.
- In the Installation source field, set the path to the image file on your host system.
Enter the configuration for the VM that you want to create.
- Operating system - The VM’s operating system. Note that Red Hat provides support only for
a limited set of guest operating systems.
- Storage - The type of storage with which to configure the VM.
- Storage Limit - The amount of storage space with which to configure the VM.
Memory - The amount of memory with which to configure the VM.
Click on the Automation tab.
Set your cloud authentication credentials.
- Root password - Enter a root password for your VM. Leave the field blank if you do not wish to set a root password.
- User login - Enter a cloud-init user login. Leave this field blank if you do not wish to create a user account.
User password - Enter a password. Leave this field blank if you do not wish to create a user account.
Click Create and run.
The VM is created.
Ressources supplémentaires