Starting a VirtualDomain resource deletes the libvirt XML file for the VM in RHEL 6 or 7 with pacemaker
Issue
- Whenever I start a newly created
VirtualDomainresource, the XML file in/etc/libvirt/qemudisappears - I'm trying to test a
VirtualDomainwithdebug-start, and the XML file seems to get deleted and the operation fails:
# pcs resource debug-start vm1
Operation start for vm1 (ocf:heartbeat:VirtualDomain) returned 1
> stderr: DEBUG: Virtual domain vm1 is not running: shut off
> stderr: error: Failed to open file '/etc/libvirt/qemu/vm1.xml': No such file or directory
> stderr: ERROR: Failed to start virtual domain vm1.
Environment
- Red Hat Enterprise Linux (RHEL) 6 or 7 with the High Availability Add On
pacemaker- One or more
VirtualDomainresources- The
VirtualDomainconfigattribute points to the XML file stored in/etc/libvirt/qemu/
- The
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
