This article describes the steps to install Oracle Linux 7.3 x86_64 on an Oracle VirtualBox 5.1 virtual machine.
-
Creating a Virtual Machine
Memory: 4GB Hard Disk: 80GB
-
Installing Oracle Linux 7.3
- Configure Network and Host Name
- Configure Installation Destination
Create partitions as:
Mount point | Partition | Size | File System |
/boot | /dev/sda1 | 1 GB | xfs |
swap | /dev/sda2 | 16 GB | swap |
/ | /dev/sda3 | 63 GB | xfs |
- Configure Software Selection
Minimal Install (Default)
- Begin Installation, set root password, complete installation and reboot.
3 Post-installation of Oracle Linux
3.1 Disable Firewall
# systemctl status firewalld # systemctl stop firewalld # systemctl disable firewalld # systemctl status firewalld
3.2 Network Configuration
- Network Configuration tool
# nmtui
- Check hostname
# hostname # hostnamectl status
- Set hostname
# hostnamectl set-hostname new_host_name
- Network configuration files
/etc/hosts /etc/hostname /etc/sysconfig/network-scripts/ifcfg-* /etc/resolv.conf
3.3 NTP Configuration
chrony is the default package in Oracle Linux 7.
Review /etc/chrony.conf and enable NTP:
# systemctl status chronyd # systemctl start chronyd # systemctl enable chronyd
-
Installing VirtualBox guest additions
To share a folder from host machine with the Oracle Linux guest, the VirtualBox Guest Additions is needed to be installed in the guest.
Navigate to VirtualBox menu: Virtual box menu -> Devices -> Insert Guest Additions CD image
# mkdir /media/cdrom # mount /dev/sr0 /media/cdrom # yum install bzip2 # yum install kernel-uek-devel-`uname -r` # export KERN_DIR=/usr/src/kernels/`uname -r` # /media/cdrom/VBoxLinuxAdditions.run # reboot
Add user to vboxsf user group, in order to use a shared folder:
# usermod -aG vboxsf oracle
Let’s play: