Issue
VM won't start. The error looks like:
LibVirt: Call to virDomainCreateXML failed: operation failed: domain 'asdfasdfasdf12' already exists with uuid xxx
Environment
OnApp 3.x
OnApp 4.x
KVM Hypervisor
Resolution
Check the HV to make sure the VM is not online.
virsh list --all
1) If it shows up in that list as "shut off", then, making sure to replace "asdfasdfasdf12" with the VM's identifier, you can use the following:
virsh undefine asdfasdfasdf12
1b) Might be the case that the above fails with
error: Failed to undefine domain asdfasdfasdf12
error: Requested operation is not valid: cannot undefine transient domain
Ignore this error and continue with the next step
Then restart libvirtd
service libvirtd restart
2) If the VM is online, then it may have been reported incorrectly as offline in OnApp. This can be caused by problems with SNMP processes.
Cause
OnApp avoids starting VMs that are already running. Multiple instances of the same VM running at once can cause vdisk corruption.