Changes

Jump to: navigation, search

stoney conductor: VM Backup

780 bytes added, 13:26, 22 October 2013
/* Merge */
== Merge ==
# Check if the VM <code>vm-001</code> is running#* If not, start the VM in paused state: <syntaxhighlight lang="bash">virsh start --paused vm-001</syntaxhighlight># Merge the live-disk -image (<code>/path/to/images my/vm-001.qcow2</code>) with its backing store file (<code>/path/to/retain/vm-001.qcow2 and my</code>): <syntaxhighlight lang="bash">virsh qemu-monitor-command vm-snap001 --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.qcow2 Just increase the number at the end of the command. So command to a single merge the second disk imagewould be: <codesyntaxhighlight lang="bash">virsh qemu-monitor-command my-vm -001 --hmp "block_stream drive-virtio-disk0disk1"</codesyntaxhighlight># 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">virsh shutdown vm-001</syntaxhighlight>
== Retain ==
486
edits