Changes

Jump to: navigation, search

stoney conductor: VM Backup

1,044 bytes removed, 13:19, 26 June 2014
/* Merge */
For the workflow see [[stoney_conductor:_prov-backup-kvm#createSnapshot]]
==== Merge exportSnapshot ====# Check if Simply copy the VM <code>vm-001</code> is runningunderlying image to the backup location#* If not, start the VM in paused state: <syntaxhighlight source lang="bash">virsh start cp --paused vm-001<p /syntaxhighlight># Merge the live-disk-image (<codepath>/path/<to>/images/vm-001.qcow2</codeimage>) with its backing store file (<code>/path/to/retain/vm-001.qcow2</code>): <syntaxhighlight lang="bash"path>virsh qemu-monitor-command vm-001 --hmp "block_stream drive-virtio-disk0"/</syntaxhighlight>#* '''Please note:''' If a VM has more than just one disk-image, repeat this step for every image. Just increase the number at the end of the command. So command to merge the second disk image would be: <syntaxhighlight lang="bash">virsh qemu-monitor-command vm-001 --hmp "block_stream drive-virtio-disk1"</syntaxhighlight># If the machine is running in paused state (means we started it in 1. because it was not running), stop it again: #* <syntaxhighlight lang="bash"backup>virsh shutdown vm-001</syntaxhighlight> '''Please note:''' After these steps, the live-disk-image <code>/path/to/image/vm-001.qcow2</code> no longer contains a reference to the image at the retain location (<code>/path/to/retain/vm-001.qcow2</codesource>). This is important for the [[#Retain | retain process]].
486
edits