CLOUDSTACK-8296 VMs cannot be migrated with XenMotion as network is not available.

This commit is contained in:
Sanjay Tripathi 2015-03-02 11:22:49 +05:30
parent 58c5850bee
commit 736c7d7668
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,12 @@ public class XenServer610Resource extends XenServer600Resource {
try {
prepareISO(connection, vmSpec.getName());
// Get the list of networks and recreate VLAN, if required.
for (NicTO nicTo : vmSpec.getNics()) {
getNetwork(connection, nicTo);
}
Map<String, String> other = new HashMap<String, String>();
other.put("live", "true");
Network networkForSm = getNativeNetworkForTraffic(connection, TrafficType.Storage, null).getNetwork();