Installation guide

iSCSI
NFS
GFS2
Two or more Red Hat Enterprise Linux systems of the same version with the same updates.
Both system must have the appropriate ports open.
Both systems must have identical network configurations. All bridging and network configurations
must be exactly the same on both hosts.
Shared storage must mount at the same location on source and destination systems. The
mounted directory name must be identical.
Co n f ig u rin g n et wo rk st o rag e
Configure shared storage and install a guest on the shared storage. For shared storage instructions,
see Part V, Virtualization Storage Topics .
Alternatively, use the NFS example in Section 22.2, “Share storage example: NFS for a simple
migration .
22.2. Share st orage example: NFS for a simple migrat ion
This example uses NFS to share guest images with other KVM hosts. This example is not practical for
large installations, this example is only for demonstrating migration techniques and small
deployments. Do not use this example for migrating or running more than a few guests.
For advanced and more robust shared storage instructions, see Part V, “ Virtualization Storage
Topics
1.
Expo rt yo u r lib virt imag e d irect o ry
Add the default image directory to the /etc/exports file:
/var/lib/libvirt/images *.example.com(rw,no_root_squash,async)
Change the hosts parameter as required for your environment.
2.
St art NFS
a. Install the NFS packages if they are not yet installed:
# yum install nfs
b. Open the ports for NFS in iptables and add NFS to the /etc/hosts.allow file.
c. Start the NFS service:
# service nfs start
Chapt er 2 2 . KVM live migrat ion
231