OracleVM notes
OracleVM is/was virtualization platform on top of XEN using Oracle Unbreakable Linux Kernel (ULK). Platform is officialy on end of support, you cannot but support anymore.
OracleVM Documentation
Official Oracle Documentation for version 3.4 https://docs.oracle.com/cd/E64076_01/
OracleVM Server Installation
Prerequisites
System Storage
Oracle VM installation requires at least 6GB of disk space, should be RAID1 with how spare. Storage for the VMs could be local ones (RAID1/10/5/6) or SAN...
Networking
Five types of networks: - Management - Cluster Heartbeat - Storage - Live Migration - Virtual Machines
You should have at least two network connections - Management and Virtual Machines. Virtual Machines network should be bonded/teamed (at least Active/Backup).
Passwords
Two passwords have to be provided during installation: - root - local access to the system - Oracle Agent - used by Oracle VM Manager to manage the host
Installation
- Boot from the installation iso
- Type Enter to continue installation
- Second option is to boot from installation iso file to migration utility from hw to vm (p2v)
- OK for verification of the installation media, Skip to continue without verification
- Select/prepare disk for installation
- Select network card for management
- Adjust time config
- Provide passwords for agent and root
- Install packages
Oracle VM Manager Installation
Prerequisites
- Oracle Linux or RHEL installed (Server with GUI)
- At least network card connected into Management network for access to OracleVM server
- Install iptables-services package from the installation CD
rpm -Uvh iptables-services-1.4.21-28.el7.x86_64.rpm
- Remove MariaDB libraries
yum remove mariadb-libs
- Add OracleVM servers into hosts file
- Update iptables
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
service iptables save
- disable IPv6
vim /etc/sysctl.d/ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
vim /etc/sysconfig/network
NETWORKING_IPV6=no
vim /etc/sysconfig/network-scripts/ifcfg-interface
IPV6INIT=no
vim /etc/hosts
Remove line with IPv6 localhost
- reboot machine
Installation
- mount cdrom and jump into the installation directory
su -
mount /dev/cdrom /mnt
cd /mnt
- run script createOracle.sh to create user, group and make system adjustments
createOracle.sh
- unmount and mount again the cdrom
- run installation under root
cd /mnt/
./runInstaller.sh
- one password is used for all the components (WebLogic, MySQL,...) - choose strong one
- remove temporary config file
rm -rf /tmp/ovm_<configid>
Oracle VM Tricks
Useful commands on OracleVM server
# Check connected disks
lsscsi
# Check disk UUID
scsi_id -g -u /dev/sdX
# Check multipath
multipath -ll
Useful commands on OracleVM Manager server
# Restart OracleVM Manager
service ovmm stop
service ovmm start
# Restart OracleVm Manager CLI
service ovmcli stop
service ovmcli start
Backup
Database backup is located under /u01/app/oracle/mysql/dbbackup
Clean up OCFS2 storage
Connect to the OracleVM server Check the storages
multipath -ll
Erase OCFS2 header
dd if=/dev/zero of=/dev/<device> bs=1M count=256
Try to make OCFS2 fs again
Clear OracleVM Server local configuration
Stop Oracle Agent
service ovs-agent stop
Rename local configuration database
cd /etc/ovs-agent
mv db db.orig
Start Oracle Agent
service ovs-agent start
Oracle VM Hard Partitioning
Prerequisites
Obtain the package with Oracle VM Utilities (p13603094_30_Linux-x86-64.zip)