Starting a VirtualDomain resource deletes the libvirt XML file for the VM in RHEL 6 or 7 with pacemaker

Solution Unverified - Updated -

Issue

  • Whenever I start a newly created VirtualDomain resource, the XML file in /etc/libvirt/qemu disappears
  • I'm trying to test a VirtualDomain with debug-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 VirtualDomain resources
    • The VirtualDomain config attribute points to the XML file stored in /etc/libvirt/qemu/

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.