Changes

Jump to: navigation, search

stoney conductor: VM Backup

252 bytes added, 13:29, 22 October 2013
/* Snapshot */
#* '''Please note<sup>2</sup>:''' If the VM <code>vm-001</code> has more than just one disk-image, repeat this step for every disk-image
# Create the new (empty) disk image with the old as backing store file: <syntaxhighlight lang="bash">qemu-img create -f qcow2 -b /path/to/retain/vm-001.qcow2 /path/to/images/vm-001.qcow2</syntaxhighlight>
#* '''Please note:''' If the VM <syntaxhighlight lang="bash"code>chmod 660 /path/to/images/vm-001.qcow2</syntaxhighlightcode>has more than just one disk-image, repeat this step for every disk-image
# Set correct ownership and permission to the newly created image:
#* <syntaxhighlight lang="bash">chmod 660 /path/to/images/vm-001.qcow2</syntaxhighlight>
#* <syntaxhighlight lang="bash">chown root:vm-storage /path/to/images/vm-001.qcow2</syntaxhighlight>
#* '''Please note:''' If the VM <code>vm-001</code> has more than just one disk-image, repeat these steps for every disk-image
# Save the VMs XML description
#* Save the current XML description of VM <code>vm-001</code> to a file at the retain location: <syntaxhighlight lang="bash">virsh dumpxml vm-001 > /path/to/retain/vm-001.xml</syntaxhighlight>
486
edits