Kaitlin Rupert wrote:
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1259882291 28800
# Node ID a8972b732291267c0d695709f311f76dbcc015ca
# Parent 282660c5e43aba6b284a9909144b9df14dc95f5b
Xen version 3.3.0 doesn't accept system in the migration URI
This change has been tested with Xen version 3.1.0. Also tests against KVM
to check for regressions.
diff -r 282660c5e43a -r a8972b732291 src/Virt_VSMigrationService.c
--- a/src/Virt_VSMigrationService.c Wed Dec 02 12:48:47 2009 -0800
+++ b/src/Virt_VSMigrationService.c Thu Dec 03 15:18:11 2009 -0800
@@ -186,7 +186,12 @@
goto out;
}
- rc = asprintf(&uri, "%s+%s://%s/system", prefix, tport, dest);
+ if (STREQC(prefix, "xen"))
+ rc = asprintf(&uri, "%s+%s://%s", prefix, tport, dest);
+ else {
+ rc = asprintf(&uri, "%s+%s://%s/system", prefix, tport,
dest);
+ }
+
if (rc == -1) {
uri = NULL;
goto out;
ACK.