RedHat has released a new version of its flagship Linux operating system. In this blog, I will show you how to install Red Hat Enterprise Linux 8.1 in VirtualBox 6.1. We will also register/subscribe to Red Hat to enable all the features of Red hat Linux Enterprise 8 after the installation completes.
If you have not install VirtualBox yet, please follow my post How to install Oracle VirtualBox 6.1 in Windows 10
- If you want to install Red Hat Linux Enterprise in VMware Workstation Pro 15.5, Please follow my post
- If you want to install Red Hat Linux Enterprise in VMware Player 15, Please follow my post
To get started, we will have to first download the installer ISO.
Step 1 – Download Red Hat Linux ISO image
There are two websites from Red Hat from where you can download the ISO images for Red Hat Linux 8.1.
- https://access.redhat.com/ – From this website, you can download the latest version of Red Hat Linux 8 which is offered to enterprise customers and is not free. This however does offer you one year trial. In this blog, we will use this version and activate it, which is discussed later in the blog.To download the image, please visit the official download page. You will have to login to download the image.
- https://developers.redhat.com/ – From this website, you can download the developer version of Red Hat Linux 8 which is not the latest release by Red Hat. It is generally one version behind the current release. You will have to activate the developer license, which is discussed later in the blog.To get the installer ISO image file, please visit the official download page. You will have to login to be able to download the image.
Step 2 – Locate the downloaded file
You can find the downloaded image file in the downloads folder, if you have not changed the default settings. The filename would be something like rhel-8.1-x86_64-dvd.iso. The file size would be around 7.3 GB.
Step 3- Open VirtualBox
Open VMware Workstation Player from Windows Start menu or from you desktop if you have VMware Workstation Player icon there.
Step 4 – Launch VirtualBox Create Virtual Machine installation wizard.
You can launch this by clicking gear symbol highlighted in Red. The keyboard shortcut is Ctrl + N on Windows.
In the Create Virtual machine dialog box, enter a Name for the Virtual machine. This can be anything you want. VirtaulBox will also create a folder by this name in your computer to store the virtual machine files, path to which is your users folders which typically is something like “C:\Users\User name\VirtualBox VMs” by default. User name is the name of the user you are logged in as in windows which will vary for all of us. Specify the memory to be allocated to the VM. I generally feel that 1 GB is not sufficient and increase the memory to 2 GB.
Select Type: Linux
Version: Red Hat(64 bit)
Select Click create to continue.
Now you will have to specify the disk space to allocate. I specify 60 GB. Leave the rest as default. Click Create to continue.
Now you will see the VirtualBox manager screen with the VM created.
Step 5 – Change Virtual machine settings
Now we will have to change the virtual machine settings. Click on the settings.
In the settings dialog box make the following changes:
- Go to General -> Advanced tab – Change Shared clipboard and Drag’n’Drop to bidirectional.
- Go to System -> Motherboard tab – Uncheck floppy.
- Go to System -> Processor tab – Increase number of processors to 2 have better performance. You can leave it as it is if you want. leave rest of the settings as it is.
- Go to System -> Acceleration tab – Accept the defaults and leave it as it is.
- Go to Storage-> Optical Drive attribute – Click on the disk Icon and select Choose Virtual optical Disk file and navigate to the ISO image that you have downloaded.
- Click OK to exit settings and return to VirtualBox Manager screen.
Step 6 – Click on the Start Icon to start the virtual machine
This will power on the virtual machine and the installation process will start.
Step 7 – Red hat Enterprise Linux 8 installation begins
After the VM starts, you will see Virtual Machine Window open with Red Hat Boot Loader. Click Inside the Window and Press I to select the first option or leave it as it is, the first option will be selected automatically.
Media Check will begin, wait for some time.
The process will continue:
You will see the Installation Wizard starts and you will be asked to select your language.
Click Continue to proceed.
Step 7 – Red Hat Enterprise Installation Summary
Now you will see various options that needs to be configured before the installation can start. Lets do it one by one.
Configure Time and Date
Under localization, we can see the Time and Date option, click on that to setup your time zone. You can either enter the Region and city or click on the Map to select your time zone. Click on Done to set up Date and time.
In Software selection, you can choose which environment want to install. Since I will be installing it on my Personal Laptop, I will go for Workstation. You can choose server environment if you need a Red Hat Server. You can choose additional software you want to install based on your need such as container management. Its OK if you don’t select anything in the additional software, you can install them manually later on.
Click Done to Continue.
Here you have to select the disk where Red Hat will be installed. Click On ATA VBOX HARDDISH to select the disk and leave storage configuration as it is, that is default to Automatic.
Click Done to Continue.
Network and Host Name
Here you can specify the Network to use. Initially, It will be off. Turn it on by sliding the slider. I normally do not change the host name and leave the default.
Click Done to Continue.
Here you can specify the purpose for which you want to use Red Hat Linux.I choose:
Role: Red Hat Enterprise Linux Workstation
Red Hat Service Level Agreement: Self-Support
Click Done to Continue.
After you have set all the requirements, you can start the installation process. Click on Begin Installation to Start the installation process.
Step 8 – User Settings
Now you will see the user settings screen and the progress of the installation process.
While the installation process continues, we can set the password for root user and create a user other than root.
Set root password
Enter the root password and click on done.
You can create a user other then a root user by clicking on User creation.
Provide the user name and password of your choice. If you want to provide root or admin privilege to the user, check the box Make the user Administrator.
Click Done to continue and wait for the installation to complete.
Step 9 – Installation Complete – Reboot
Once the Installation completes, you will be asked to reboot.
Make sure that you have removed the ISO image from device. In the Device-> Optical Drives -> Remove Disk from Virtual Drive. If you miss this step, the installation will begin again. So be careful here.
Click on Reboot to restart the system.
Step 10 – Licence Agreement and Subscribe to Red Hat
Once the System restarts, you will see the boot loader. Select the first option or wait for a few seconds for the system to automatically boot using the first option.
You will see the initial setup screen where you have to accept the licence agreement and Subscribe to Red Hat to register Product.
Accept Licence agreement
Click on License Information to read and accept the licence. Check box “I accept the licence agreement” and click on done to continue.
Subscribe with Red Hat to activate the product
You can skip this step and click on Finish configuration to continue to Red Hat Linux login screen. But you will have to register Red Hat from terminal after you login.
The steps required to register from terminal using subscription manager is described later in the blog under alternate registration method.
Click on Subscription Manager to open the subscription window.
Subscription Manager Window will open, leave the default and click on next
Enter you Red Hat login credentials and click on register
Wait for the process to complete, you will see the registering process window, wait for some time
Now you will be asked to confirm subscription. Click on attach to continue
Now you will see the registration confirmation message. Click on Done to continue.
Now you are all done, click on Finish Subscription to login to Red Hat Linux.
Step – 11 – Login to Red Hat Enterprise Linux 8
After you click on Finish Configuration, you can see the Login screen with your user name. Click on the username and enter the password you entered in the earlier steps.
You can login as root use as well as with the username you created. The password will be what you setup in earlier steps.
In this blog, I will login with my user account and not as root.
Enter the password to login
You will see the Red Hat 8 desktop. That’s it you are done with the installation process.
Step – 12 – Install Guest Editions to enable Full Screen Mode
By default Virtual Box will not switch to full screen mode for Red Hat Enterprise Linux 8. You will have to install VirtualBox Guest Editions manually to enable full screen mode.
Please follow my blog to install Virtual Box Guest Editions and enable full screen mode.
Use the below steps to Register and Subscribe to Red Hat using command line or terminal if you were not able to Register or skipped registration during installation.
Alternate method – 2 – Red Hat Linux 8 activation – Register System With Red Hat using Command line tool
When you install Red Hat, a lot of features are blocked until you register with Red Hat. Without registration, your Red Hat Installation is useless as you will not be able to access software and install anything.
Check the status of your Red Hat Subscription
You can check the status of your subscription using Red Hat Subscription Manager.
Goto Activities -> Show Applications -> Red Hat Subscription Manager
You will see Authentication Required dialog box. Enter your password and click Authenticate.
In the Subscriptions dialog box, you will see status as not registered.
Register System with Red Hat Subscription manager
Red Hat ships with Red Hat Subscription Manager to manage your subscriptions with Red Hat. We will use the terminal and Red Hat Subscription manager command line tool to register.
Open terminal: Activities-> Terminal
Check subscription status using terminal
subscription-manager statusin terminal and provide your password for root access when asked.
In the output, you will see that the status is unknown.
Register with Red Hat
Type the command in terminal to register Red Hat Linux with Red Hat.
Provide root access when asked
Provide your username and password for your Red Hat account. This will register your system with Red Hat.
Subscribe to Red Hat
After registering your system with Red Hat, you will have to subscribe to Red Hat. Enter the following commands in terminal.
Enter root password if asked, you will see that the system get subscribed to Red Hat.
Check subscription if it is successful
Now lets check if our system has successfully registered with Red Hat. Enter the following commands in terminal.
subscription-manager list --consumed
Enter root password if asked, you will see under subscription name that you have subscribed to the developer version of Red Hat Linux Enterprise 8
When you scroll down you will see that your subscription is valid for 1 year from the start and end date.
In the Red Hat Subscription Manager also, now you can see that the system is registered.
Update Red Hat Enterprise Linux
After you have successfully registered and subscribed with Red Hat, now you can access all the repositories and software. Lets update the system to see if it is successful.
Goto Activities -> Show applications -> Software
Click On Software
When the software window opens, in updates click on download to start the update process
Wait for the process to complete, and will see Restart and update. Click on it to restart the system.
System will restart and the update will continue. Wait for the process to complete.
After the update completes, you will see the login screen and you can login to Red Hat Enterprise Linux.
Thanks for visiting my blog.