Changes

stoney conductor: VM Backup

257 bytes added, 12:41, 22 October 2013
/* Snapshot */
== Snapshot ==
# Create a snapshot with state:
#* Save the state of VM <code>my-vm-001</code> to the file <code>my-vm-001.state</code>: <syntaxhighlight lang="bash">virsh save my-vm my-001 vm-001.stat</syntaxhighlight>#* Rename After this command, the VMs CPU and memory state is represented by the file <code>vm-001.state</code> and the VM <code>vm-001</code> is shut down.#* Move the actual disk image: <code>mv my-/path/to/vm-001.qcow2 my</code> to the retain location: <syntaxhighlight lang="bash">mv /path/to/vm-001.qcow2 /path/to/retain/vm-backup001.qcow2</codesyntaxhighlight>.
#* Create the new disk image with the old as backing file: <code>qemu-img create -f qcow2 -b my-vm-backup.qcow2 my-vm.qcow2</code>.
#* Set correct ownership and permission to the newly created image:
486
edits