Skip to content

Commit 8069b17

Browse files
sanjaytripathiyadvr
authored andcommitted
CLOUDSTACK-8296 VMs cannot be migrated with XenMotion as network is not available.
(cherry picked from commit 736c7d7) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent c8e6fbb commit 8069b17

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/XenServer610Resource.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ protected MigrateWithStorageAnswer execute(MigrateWithStorageCommand cmd) {
132132

133133
try {
134134
prepareISO(connection, vmSpec.getName());
135+
136+
// Get the list of networks and recreate VLAN, if required.
137+
for (NicTO nicTo : vmSpec.getNics()) {
138+
getNetwork(connection, nicTo);
139+
}
140+
135141
Map<String, String> other = new HashMap<String, String>();
136142
other.put("live", "true");
137143
Network networkForSm = getNativeNetworkForTraffic(connection, TrafficType.Storage, null).getNetwork();

0 commit comments

Comments
 (0)