Changes

Jump to: navigation, search

stoney conductor: VM Backup

1 byte removed, 07:33, 29 October 2013
/* Restore a machine */
=== Restore a machine ===
Shutdown the VM if it is running: virsh shutdown my-vm Undefine the VM if it is still defined: virsh undefine my-vm Remove the VMs disk image: rm /path/to/the/disk/image/my-vm.qcow2 Restore the VMs LDAP entry: Merge the actual LDAP entry and the LDAP backup entry On conflict ask the user which entry wins Restore the VMs XML Merge the actual XML-file and the backed up XML-file On conflict ask the user which file wins Copy the disk image from the backup directory to the live directory: cp -p /path/to/my-vm/backup/my-vm.qcow2.backup /path/to/the/disk/image/my-vm.qcow2 Define the VM from the XML virsh define /path/to/my-vm.xml Restore the VM from the state file virsh restore /path/to/my-vm/backup/my-vm.state
== Communication through backend ==
486
edits