/etc/hosts
file so we can connect by hostname. For this example:
# cat << END >> /etc/hosts 192.168.122.10 guest1 END
# virsh list --all Id Name State ---------------------------------------------------- - guest1 shut off
# virsh dumpxml guest1 > /etc/pacemaker/guest1.xml
# pcs resource create vm-guest1 VirtualDomain hypervisor="qemu:///system" \ config="/etc/pacemaker/guest1.xml" meta remote-node=guest1
Note
setenforce 0
. If it works after that, see SELinux documentation for how to troubleshoot, if you wish to reenable SELinux.
Note
pcs status
output as a node. The final pcs status
output should look something like this.
# pcs status Cluster name: mycluster Last updated: Fri Oct 9 18:00:45 2015 Last change: Fri Oct 9 17:53:44 2015 by root via crm_resource on example-host Stack: corosync Current DC: example-host (version 1.1.13-a14efad) - partition with quorum 2 nodes and 2 resources configured Online: [ example-host ] GuestOnline: [ guest1@example-host ] Full list of resources: vm-guest1 (ocf::heartbeat:VirtualDomain): Started example-host PCSD Status: example-host: Online Daemon Status: corosync: active/disabled pacemaker: active/disabled pcsd: active/enabled