It can be very challenge to configure the network in Oracle VMs, especially for Oracle RAC which requires the public network and a bonded private network interface. The following configuration has been tested in configuring Oracle VMs as the Oracle RAC nodes:
1. Oracle VM server (Dom 0) physical network configuration:
eth2, eth3: for iSCSI storage connections.
eth4 and eth5 for private interconnects.
2. Xen bridge and bonding configuration in Oracle VM server (Dom 0)
- Xen bridge xenbr0 is connecting to eth0 to provide a public network
- eth4 and eth5 are bonded as bond0 for the private interconnect.
This bonded private interconnection is also used for Oracle Cluster File System 2( OCFS2) heartbeat traffic between VM servers in the VM server pool. This OCFS2 cluster file system provides storage for the VM repositories. On other hand, bond0 is also presented to the guest VMs as a virtual network interface eth2 through Xen bridge Xenbr1.
3. Network configuration on guest VMs (Dom U)
etho in Dom U is connected to eth0 of Dom 0 through Xen bridge xenbr0 as the public network.
eth1 in dom U is connected to bond0 through Xen bridge xenbr1 as the bonded private network for RAC on the guest VMs. The following shows the network configuration in dom0 and domU
For the detailed network configuration such as bonding and Xen bridging network configuration scripts, refer to my recently published whitepaper :Efficient Deployment of Oracle® Real Application Clusters (RAC) in a Virtualized Environment Using Enterprise Manager Provisioning Pack,