Install CentOS 7 on VirtualBox

February 2, 2017 - Linux

First enable/add NatNetwork and Host only Network in VirtualBox Interface
File > Preferences > Network

If Host-only adapter gives error on Windows go to
Control Pannel > Network and Sharing Center > Change Adapter Settings > Virtual Host-only Network > Preferences
Check VirtualBox __________

In the Network section of the new instance two Adapters should be visible
1. NAT
2. Host-only Adapter

Set ISO image and start intsallation
* On setup enable both network adapters
* Set hostname –
* Set Timezone
* Create root password
* Create user

After installation
make sure both connections are on at boot

sed -i s/ONBOOT=no/ONBOOT=yes /etc/sysconfig/network-scripts/ifcfg-enp0s3
sed -i s/ONBOOT=no/ONBOOT=yes /etc/sysconfig/network-scripts/ifcfg-enp0s8

Update software and install

yum update
yum install -y redhat-lsb-core net-tools epel-release kernel-headers kernel-devel
yum groupinstall -y "Develpoment Tools"
yum groupinstall -y "X Window System" "MATE Desktop"

Set as default

systemctl set-default  // creates a symlink from /etc/systemd/system/ to
systemctl isolate graphical-target

Reboot to make sure you are using the latest kernel.

Install GuestAdditions.iso for Virtualbox

Go to Devices > Insert Guest Additions CD image > Run

su -

On Ubuntu you can download ISO with:

sudo apt-get install virtualbox-guest-additions-iso