- if (destHost != null) {
- if (sourceHost.isOn() && destHost.isOn()) {
- try {
- Msg.info("Migrate vm "+args[0]+" to node "+destHost.getName());
- VM.getVMByName(args[0]).migrate(destHost);
- } catch (HostFailureException e) {
- e.printStackTrace();
- Msg.info("Something occurs during the migration that cannot validate the operation");
- }
+ if (destHost != null && sourceHost.isOn() && destHost.isOn()) {
+ try {
+ Msg.info("Migrate vm "+args[0]+" to node "+destHost.getName());
+ VM.getVMByName(args[0]).migrate(destHost);
+ } catch (HostFailureException e) {
+ Msg.error("Something occurs during the migration that cannot validate the operation: " + e.getMessage());
+ e.printStackTrace();