Setup VM
In order to work begin using Red Hat Enterprise Linux in this lab, you may also want to run a RHEL virtual machine on your computer to keep your work and progress. This section will teach you how to download the operating system, install it on VirtualBox, and configure your RHEL machine once started.
If you’re using a M1 based Mac machine, please use this tutorial for installing RHEL. |
Downloading RHEL
The first step to working with Red Hat Enterprise Linux is downloading via the Red Hat Developer program. On the Red Hat Developer page, scroll down to see the list of available RHEL image downloads, and download the x86_64 Boot iso.
![Download RHEL Button](_images/setup/download-rhel.png)
From here, sign in to your Red Hat account or create a new account, and the download will start automatically.
![Red Hat Account Login](_images/setup/red-hat-account-login.png)
You now have a bootable RHEL .iso
that we can use VirtualBox to run.
Setting up VirtualBox
VirtualBox can be used to run operating systems in a special environment, called a virtual machine, on top of the existing operating system. We’ll use it to install the RHEL VM in this tutorial, so head to the VirtualBox downloads page to download the correct platform package for your machine.
![Download VirtualBox](_images/setup/download-virtualbox.png)
After installing and opening VirtualBox, you should be greeted at the homepage, where we’ll click on the New button to create a new VM.
![Create new Virtualbox](_images/setup/new-virtualbox.png)
From here, give this virtual machine a name, for example RHEL, and feel free to use the default machine folder location, which stores your virtual machine files. Under Version, be sure to select Red Hat (64-bit) if it hasn’t already pre-populated. Click continue from here.
![Name & specify your new virtual machine](_images/setup/name-new-vm.png)
Now, while the reccomended memory size is 1024 MB (1 GB), feel free to increase this to 2048 MB (2 GB) for normal usage.
![Allocating RAM to the virtual machine](_images/setup/virtualbox-ram.png)
Select the default option to create a virtual hard disk now, and hit create. For the hard disk file type, select VirtualBox Disk Image (VDI, recommended for normal usage), and select Dynamically allocated on the next prompt (also reccomended for daily usage).
![Creating a virtual hard disk for the VM](_images/setup/virtualbox-harddisk.png)
Next, select the File location and size for the virtual hard disk. You can leave the default location, but select a size of 20 GB to ensure enough space for packages and downloads. Hit create to continue.
![Selecting the hard disk size](_images/setup/virtualbox-harddisk-size.png)
Finally, we need to attach the downloaded RHEL .iso file to our virtual machine. After selecting our RHEL VM, hit the settings menu.
![Entering the VirtualBox VM settings](_images/setup/virtualbox-settings.png)
Under the storage section, select the Empty tab under Controller: IDE. Here, we can click on the CD icon and select *Choose a disk file… to select our downloaded .iso file. Navigate to where you downloaded the RHEL .iso, and load it into VirtualBox.
![Adding the .iso file to our operating system](_images/setup/virtualbox-storage.png)
Once loaded in, hit Ok to leave the storage, and return to the VirtualBox dashboard. Now, simply press Start to launch Red Hat Enterprise Linux!
![Starting the RHEL VM](_images/setup/virtualbox-start.png)
Getting Started with RHEL
Once you start the RHEL virtual machine, you’ll be greeted by the Red Hat Boot Loader. Simply click into the VM and press enter to begin with the default RHEL installation process.
![Starting the RHEL VM](_images/setup/rhel-bootloader.png)
In around a minute, the installation wizard will start and ask you for your language. Select this, and proceed to configure the rest of your RHEL machine.
![Selecting the default language for RHEL](_images/setup/rhel-language-select.png)
In addition, if you’d like to make the VirtualBox screen larger, head down to the window size control under the GUI and select Scale to 200%.
![Resizing the VirtualBox window](_images/setup/virtualbox-window-resize.png)
The configuration items include selecting your time & date, connecting to a Red Hat account, software selection, specifying installation destination, and root password/user creation.
![RHEL installation menu](_images/setup/rhel-installation-menu.png)
Firstly, be sure to connect your Red Hat account to RHEL. Feel free to use your existing credentials that you used to download the .iso image, or if needed, create a new account here.
![Connecting to Red Hat from RHEL](_images/setup/rhel-register.png)
We won’t be needing the complete RHEL Server with GUI for this tutorial, so select Software Selection and choose Minimal install.
![RHEL minimal software install](_images/setup/rhel-software-install.png)
Next, specify the installation destination. Nothing is needed to be done here as we are using a virtual machine, so you can leave this section after confirming the 20 GB drive that we created earlier.
![Confirming the correct RHEL installation](_images/setup/rhel-installation.png)
The last steps involve user settings. From the installation summary, click on Root password, and select a root password of your choice. Once finished here, click *Done.
![Setting up RHEL root password](_images/setup/rhel-root-password.png)
In addition, be sure to create a user other than root to work with. Again, create the credentials, and hit Done when finished.
![Setting up RHEL user password](_images/setup/rhel-user-password.png)
Once you’ve finished all the configuration tasks, you’re ready to begin the installation of RHEL.
![Installing RHEL](_images/setup/rhel-install.png)
It may take a bit of time to prepare the installation and install packages, but once finished installing you’ll be prompted to reboot the system.
![Rebooting RHEL once installed](_images/setup/rhel-reboot.png)
Once the Red Hat Enterprise Linux virtual machine has rebooted, you should now be in the RHEL CLI, ready to begin.