This is to test DB2, Oracle and other DBs later.
1. CentOS7 on VirtualBox
(Reference: https://itekblog.com/centos-7-virtualbox-guest-additions-installation-centos-minimal/)1.1. Guest Additions
Once installed CentOS7, install Guest additions
# yum update
# reboot
# yum update kernel
# reboot
# yum groupinstall "Development tools"
# yum install kernel-devel
Mount Guest CD
# cd /mnt
# mkdir cdrom && mount /dev/cdrom /mnt/cdrom
# cd cdrom && ./VBoxLinuxAdditions.run
1.2.1. Shared folder - method #1
Get shared folder name from VB
# mkdir /mnt/shared
# mount -t vboxsf vm.share /mnt/shared
1.2.2. Shared folder - method #2
# usermod -aG vboxsf kkim
Reboot, and the shared folder will be mounted at /media/sf_vm.share/
If didn't work, try this:
# mount.vboxsf vm.share /media/sf_vm.share/
1.3. mount shared folder automatically at boot
# vi /etc/rc.local
Add:
mount.vboxsf windows_share /media/windows_share vboxsf
2. Install things
2.1. EPEL
(Reference: https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/)
# yum install epel-release
2.2. ifconfig
# yum install net-tools
3. Set up things
3.1. Static IP
use 'nmtui' or:
(Reference: https://www.techrepublic.com/article/how-to-configure-a-static-ip-address-in-centos-7/)
In VB, use Bridge Adapter first.
# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
Add:
BOOTPROTO=static
IPADDR=192.168.1.200
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
DNS2=8.8.8.8
DNS3=8.8.4.4
3.2. sudo
(Reference: https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-centos-quickstart)
# usermod -aG wheel username
4. Disable SELinux and Firewall
4.1. disable SELinuxTo check,
# sestatus
Disable
# setenforce 0
Disable permanently
# vi /etc/sysconfig/selinux
SELINUX=disabled
And reboot.
4.2. disable firewall
Check
# systemctl status firewalld
Stop
# systemctl stop firewalld
Disable it
# systemctl disable firewalld