Language and Page Formatting Options
6.12. Virtual Machine Resources
Virtual machine resources are configured differently than other cluster resources. In particular, they are not grouped into service definitions. As of the Red Hat Enterprise Linux 6.2 release, when you configure a virtual machine in a cluster with the
ccscommand you can use the
--addvm(rather than the
addserviceoption). This ensures that the
vmresource is defined directly under the
rmconfiguration node in the cluster configuration file.
A virtual machine resource requires at least a
nameattribute should match the name of the
libvirtdomain and the
pathattribute should specify the directory where the shared virtual machine definitions are stored.
pathattribute in the cluster configuration file is a path specification or a directory name, not a path to an individual file.
If virtual machine definitions are stored on a shared directory named
/mnt/vm_defs, the following command will define a virtual machine named
ccs -h node1.example.com --addvm guest1 path=/mnt/vm_defs
Running this command adds the following line to the
rmconfiguration node in the
<vm name="guest1" path="/mnt/vm_defs"/>