]> xenbits.xensource.com Git - libvirt.git/commitdiff
vz: set PVMT_DONT_CREATE_DISK migration flag
authorPavel Glushchak <pglushchak@virtuozzo.com>
Thu, 8 Dec 2016 08:49:15 +0000 (11:49 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Fri, 9 Dec 2016 14:21:43 +0000 (17:21 +0300)
This flag tells backend not to create instance
disks making behavior the same as in qemu driver.
Disk files have to be created beforehand on target
host manually or by upper management layer i.e.
OpenStack Nova.

Signed-off-by: Pavel Glushchak <pglushchak@virtuozzo.com>
src/vz/vz_sdk.c

index d13c86afce1f36348ee346e7165d247f44a52796..4cd988a8bc37a5faab6dfa5c74621c0385c00fee 100644 (file)
@@ -4740,7 +4740,7 @@ int prlsdkSwitchToSnapshot(virDomainObjPtr dom, const char *uuid, bool paused)
  * connection to dispatcher
  */
 
-#define PRLSDK_MIGRATION_FLAGS (PSL_HIGH_SECURITY)
+#define PRLSDK_MIGRATION_FLAGS (PSL_HIGH_SECURITY | PVMT_DONT_CREATE_DISK)
 
 int prlsdkMigrate(virDomainObjPtr dom, virURIPtr uri,
                   const unsigned char *session_uuid,