Home > Linux > Red Hat Enterprise Linux 7.1 in VirtualBox – quick setup for a PoC

Red Hat Enterprise Linux 7.1 in VirtualBox – quick setup for a PoC

Obviously it’s not a tutorial – neither for VirtualBox nor for Linux – just a quick note on essentials when you need to provision a RHEL instance in VirtualBox without active Red Hat subscription.

I assume you have installed a basic server with GUI. Then it’s really important and convenient to have Guest Additions installed (this is basically an analogue of VMWare Tools allowing for better integration between VM and the host OS).

  1. Create a mount point and mount the installation CD (connect the installation image file as a CD in VirtualBox before you proceed with the commands below):

cd /mnt
mkdir cdrom
mount -t auto /dev/cdrom /mnt/cdrom

2. Create a new repository for Yum (pointing to the CD):

cd /etc/yum.repos.d/
touch cdrom.repo
nano cdrom.repo

[cdrom]
name=cdrom-repo
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0

3. Install packages required for Guest Additions

yum groupinstall “Development Tools”
yum install kernel-devel

4. Connect Guest Additions CD:

VM > Devices > Insert Guest Additions CD Image…

5. Run the software from the CD and reboot upon completion.

Once the Guest Additions are installed you should get very nice features like a shared clipboard and drag’n’drop, VM screen resizing to match VM window size on the host, shared folders between the VM and the host OS etc.

===

Update (08/07/2016)

Add the command switch below if Yum is moaning about missing GPG keys.

--nogpgcheck          disable gpg signature checking
Advertisements
Categories: Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: