/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 Stack: corosync Current DC: example-host (version 1.1.16-12.el7_4.5-94ff4df) - partition with quorum Last updated: Fri Jan 12 18:00:45 2018 Last change: Fri Jan 12 17:53:44 2018 by root via crm_resource on example-host 2 nodes configured 2 resources configured Online: [ example-host ] GuestOnline: [ guest1@example-host ] Full list of resources: vm-guest1 (ocf::heartbeat:VirtualDomain): Started example-host Daemon Status: corosync: active/disabled pacemaker: active/disabled pcsd: active/enabled