OS :Oracle linux 7.4
Database and Grid :12.2.0.1
Above softwares are down from edelivery site.
Most of Documents is about setup with virtualbox ,but for my env ,I prefer kvm and it is also a good challenge for me :)
Before start to install Oracle linux ,we need to config the network ,the default network for kvm is a NAT network named 'default', and it's ip range is 192.168.122.0 as default (you can create your own or edit it ) ,this network is okay for Oracle rac public IP ,but rac also need to private network for heartbeat and performance .KVM is not as easy as virtualbox to create a private network ,we need to create a bridge br0 (for example ) ,as this is only used for internal connection ,so there is no need to assign one IP to this bridge.
virtual disks ,to make is simple , I want to install the OS and softeware in one disk ,another disk is used to ASM shared disk .
to avoid trouble , it is better to assign the size large enough .Not sure why Oracle software is so huge .so for OS disk ,40G should be enough, and for ASM disk ,at least 40GB.
I installed the Linux with mini group packages , that means we can keep the OS simple and small as possible(still used up to 1.2GB for / ,I gave swap about 2GB ) .
After installation , some post install work should be done .
systemctl stop NetworkManager
systemctl stop firewalld
systemctl disable NetworkManager
systemctl disable firewalld
setenforce 0
by default ,the network interface is not onboot start , so we need to edit them ,the config file for interface is under /etc/sysconfig/network-scripts, ifcfg....
we need change the dhcp to static , onboot to yes , add IPADDR=192.168.122.100 NETMASK=255.255.255.0
GATEWAY=192.168.122.1 DNS1=192.168.122.1
Run yum update -y to update the packages update to date.
in the past , we have to create groups ,IDs and tune the kernel setting by ourselves ,but now the easy way to do this is install a rpm package .
yum search preinstall , you will get the right package for you and just install it !
This will install another 56 packages and size is just 36M .