If you are going to use this installation for development/personal use, register at https://developers.redhat.com
You can read about no-cost RedHat Enterprise Linux at https://developers.redhat.com/articles/faqs-no-cost-red-hat-enterprise-linux/#getting_your_no_cost_subscription
Next, login to https://access.redhat.com/management to check your current subscription information.
You are now ready to download a desired RedHat Enterprise Linux and install on a virtualization tool such as Oracle VM VirtualBox.
Below link does a pretty good job and detailing steps for installing RedHat on VirtualBox.
https://developers.redhat.com/products/rhel/hello-world#fndtn-virtualbox
I will only cover from logging into the machine and registering your RedHat Linux. Make sure you have internet access on your new machine.
Navigate to Applications > System Tools > RedHat Subscription Manager


Click Register. This will open another window, keep default and click on next.

On the next screen, provide user name and password that you use to login on developer.redhat.com.

Click register.

Next, click on Attach, to attach your subscription to the machine.

The subscription status will changed to “subscribed”.

This completes the subscription process. Let’s validate the subscription from command line.
subscription-manager list

Validate that you have access to Red Hat software repositories.
subscription-manager repos –list-enabled

Download and install any available updates using below command.
yum -y update
Enable repositories
You can enable repositories by manually editing the /etc/yum.repos.d/redhat.repo file. We will use subsciption-manager here.
subscription-manager repos –enable rhel-server-rhscl-7-rpms
subscription-manager repos –enable rhel-7-server-optional-rpms