Linux KVM Virtualization Manual Low-Level Guest Export/Import Procedure: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:
  <disk type='file' device='disk'>
  <disk type='file' device='disk'>
     <driver name='qemu' type='qcow2'/>
     <driver name='qemu' type='qcow2'/>
     <source file='/main-storage-pool/appproxy.qcow2'/>
     &lt;source file='/main-storage-pool/appproxy.qcow2'/>
     ...
     ...
  </disk>
  </disk>


=Restore from Snapshot=
=Restore from Snapshot=

Revision as of 17:15, 4 July 2017

Internal

Overview

Create a Snapshot Image


If the virtual machine has more than one storage device attached, they all must be snapshot at the same time to produce a consistent snapshot that can be reverted to.

Procedure

Shutdown the Target Guest

virsh shutdown <vm-name>

Identify all Storage Devices

virsh dumpxml <vm-name>

Look for <disk> definitions. The disk definition specifies the source and the format of the virtual storage device. Example:

<disk type='file' device='disk'>
    <driver name='qemu' type='qcow2'/>
    <source file='/main-storage-pool/appproxy.qcow2'/>
    ...
</disk>

Restore from Snapshot