RHEL 8 Quick Install - VirtualBox

Overview

This overview covers the key steps for installing Red Hat Enterprise Linux 8 beta so you can get started with software development. Note: This tutorial does not replace the Red Hat Enterprise Linux 8 Beta Installation Guide. Instead, this tutorial provides an overview of the key steps for software developers. For detailed instructions, see the RHEL 8 Beta documentation.

You’ll install a system with a full graphical desktop.that you can use for exploring RHEL 8 Beta. Unlike prior versions of RHEL 8, there are no separate downloads for server, workstation, or desktop.

Before you begin

To follow the steps in this guide you will need:

  1. A RHEL 8 Beta subscription and the RHEL 8 Beta Binary DVD .iso file, which you can get at no cost by following the steps on the Get RHEL 8 page.
  2. Your Red Hat username and password. Your account was created during step one. You will need this to register the system attach it to your subscription. Completing these steps are required for your system to download software from Red Hat.
  3. A system that meets the following requirements:
    • A 64-bit x86 machine with with hardware virtualization assistance (Intel VT-X or AMD-V).  
    • At least 4 GB of RAM.
    • At least 28 GB of available disk space for the VM and the .iso file.
    • Has VirtualBox installed.

Notes:

  • You may need to enable hardware virtualization in the BIOS/UEFI setup for your system.
  • On Windows it may be necessary to disable Hyper-V in order to avoid conflicts with VirtualBox.

Create the VM

In VirtualBox, create a new VM with the following criteria::

  • 2 GB of RAM at a minimum. 4 GB or larger is recommended.
  • A 20 GB or larger virtual disk.
  • 2 or more Virtual CPUs are recommended.

Configure the VM to boot from the RHEL 8 Beta Binary DVD .iso file that you downloaded earlier. In the VM’s settings, under Storage, select the optical drive under the IDE controller.  Then, use the CD icon drop down menu on the right to select Choose Virtual Optical Disk File

 

 

Optional VM configuration:

Networking

The default networking choice NAT is the easiest to use, but you will not be able to access services such as ssh or http running on the RHEL VM from the host or the network. However, you can define port forwards in the Advanced section under the network adapter configuration to provide access.

For example, in order to use ssh, define a port forward from Host Port 2222 to Guest Port 22.  This will allow you to use ssh on the host machine by using port 2222:

$ ssh -p 2222 root@localhost

Alternatively, you can attach the VM to directly network by sharing the network adapter from the host system as a bridged network adapter. In this configuration, the VM gets its own IP address, usually using your network’s DHCP server. The VM appears on the network the same way a physical computer would with its own hardware MAC address. The host’s network adapter is shared by a device driver that is installed by VirtualBox. The VM’s virtual network adapter can only be bridged to one physical network adapter at a time. If your system has more than one network adapter you need to choose which one to attach to. If your system switches between wired and wireless connections, you will need to switch the adapter that the VM is bridged to when changing between wired and wireless.

Improved Network Performance with virtio (Windows and Linux hosts only)

For improved VM network performance on Windows and Linux hosts, in the VM’s settings under Network Adapter Type select Paravirtualized Network (virtio-net).  The paravirtualized adapter removes much of the overhead of emulating a hardware network adapter.

Copy and Paste

In the VM settings General, on the Advanced tab, set Shared clipboard and Drag’n’Drop to Bidirectional.  Copy and paste requires VirtualBox Guest Additions to be installed.  After the RHEL VM is fully installed and has been registered, you can install the kernel packages that are required to install VirtualBox Guest Additions. 

Tip: to copy and paste before you have setup VirtualBox Guest Additions, use ssh from a Terminal Window on the host in order to copy and paste between the host system and the guest. 
 

Installation

Now you are ready to run the RHEL 8 Beta installer.  The installation steps are:

  • Choose the disks/partitions to use for installation.
  • Select software to be installed.  Choose workstation, Development Tools, Graphical Administration Tools, and Container tools.
  • Disable kdump to save memory.
  • Check the network configuration and optionally set the host name.
  • Set the root password
  • Create your user ID and make your ID an administrator so you can use sudo.

 

1. Boot the RHEL 8 Installer

Boot your system using the bootable installation media containing the RHEL 8 Beta Binary DVD .iso:


 

Note: During boot, you can skip the media checking step by hitting the Esc key.

On the following screens:

  • select your preferred language and keyboard layout to use during installation.
  • Click I want to proceed to agree to using beta software.

 

You should now see the main screen for configuring your installation:

  

2. Select software to be installed

Click Software Selection under SOFTWARE.  We recommend that you:

  • Choose Workstation on the left under Base Environment
  • Then, choose Container Management, Development Tools, and Graphical Admin Tools

 

 

3. Choose disks/partitions for installation

Click Installation Destination under SYSTEM.  Choose the disks/partitions to use for installing RHEL.  See the Red Hat Enterprise Linux 8 Beta Installation Guide for more information.

Note: if your system only has one disk and you are using the whole disk for the installation, just click Done.


4. Disable kdump to save memory.

Next, To save memory turn off kdump by clicking Kdump under SYSTEM.  Then, uncheck Enable Kdump.

 

5. Check the network configuration

Next, configure the Network and optionally set the host name. Click Network & Host Name under SYSTEM.  Then:

  • On the lower left, enter your choice of host name.
  • Select your network adapter from the list. if you need to change any network settings click Configure…  .  
  • Test the adapter and turn the adapter on by clicking the toggle to the right of the OFF button in the upper right corner.

 


 

6. Begin the installation

When you are satisfied with your configuration, click Begin Installation.

 


7. create your user ID and set the root password, 

While the installation is proceeding, click Root Password to set the root (Administrator) password.

Next, create the regular user ID that you will use to log into the system by clicking User Creation.

IMPORTANT: Select Make this user administrator.  This will enable sudo for your user ID.

 

 

8. Reboot and eject installation media


When installation is complete, click Reboot in the lower right corner.

IMPORTANT: While your system is rebooting, don’t forget to eject the installation media so that you don’t inadvertently reboot into the RHEL 8 Beta installer again.
 

System Registration

When the system reboots, click License Information to accept the license agreement. On the License Information screen, Click I accept the license agreement under the text of the license.

Next, click Finish Configuration  Log into the system with the user ID and password you created during installation.

During your first login, set your language, keyboard layout, and enable or disable location services. Then, connect your online accounts or click Skip.  Next Click Start Using Red Hat Enterprise Linux. After you’ve reviewed the GNOME Getting Started info, close the window.

Start a Terminal window by clicking Activities in the upper left corner.  Then start typing terminal in the search box.  Hit enter to start the Terminal window.


 

In the terminal window, start a root shell:

$ sudo bash

Next, register your system with Red Hat Subscription Management:

# subscription-manager register --auto-attach

Enter your Red Hat username and password.  When registration has completed, you’ll see:

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Status:       Subscribed

Check that you now have the BaseOS and AppStream repos enabled with yum repolist:

# yum repolist
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream Beta (RPMs)
Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (RPMs)

Time to write code

Utilize these documents for creating your first applications on Red Hat Enterprise Linux 8 Beta app.

 

Working with AppStreams

The first step is to see what modules are available the Applications Streams (appstream) repo:

$ sudo yum module list  # list all available modules in appstream

Or, find just the modules named `nodejs`

$ sudo yum module list nodejs

From the output you can see that Node.js 10 is the default module to install, note the `[d]`.  You could have simply typed the following to install the default nodejs module.

$ sudo yum module install nodejs

Or even, shorter using ‘@’:

$ sudo yum install @nodejs

The above commands would have installed the nodejs with the default profile. A profile is group, usually a subset, of the packages in a module.  For this module the default profile is named `default. In the steps above, the `development` profile was chosen to get the packages in the development profile installed.

To find out more about a module, use one of the following commands:

$ yum module info nodejs  # get info about the default nodejs module
$ yum module info nodejs:10   # get info about a specific module stream