- public static void test_vm_migrate (Host hostToKill, long killAt) throws MsgException {
- Msg.info("**** **** **** ***** ***** Test Migrate with host shutdown ***** ***** **** **** ****");
- Msg.info("Turn on one host, assign a VM on this host, launch a process inside the VM, migrate the VM and turn off either the SRC or DST");
-
- host1.off();
- host2.off();
- host1.on();
- host2.on();
-
- // Create VM0
- int dpRate = 70;
- XVM vm0 = null;
- vm0 = new XVM(
- host1,
- "vm0",
- 1, // Nb of vcpu
- 2048, // Ramsize,
- 125, // Net Bandwidth
- null, //VM disk image
- -1, //size of disk image,
- 125, // Net bandwidth,
- dpRate // Memory intensity
+ // Robustness on the SRC node
+ //for (int i =0 ; i < 55000 ; i++)
+ // test_vm_migrate(host1, i);
+
+ // Robustness on the DST node
+ //for (int i =0 ; i < 55000 ; i++)
+ // test_vm_migrate(host2, i);
+
+ /* End of Tests */
+ Msg.info("Nor more tests, Bye Bye !");
+ Main.setEndOfTest();
+ }
+
+ public static void test_vm_migrate (Host hostToKill, long killAt) throws MsgException {
+ Msg.info("**** **** **** ***** ***** Test Migrate with host shutdown ***** ***** **** **** ****");
+ Msg.info("Turn on one host, assign a VM on this host, launch a process inside the VM, migrate the VM and "
+ + "turn off either the SRC or DST");
+
+ host1.off();
+ host2.off();
+ host1.on();
+ host2.on();
+
+ // Create VM0
+ int dpRate = 70;
+ XVM vm0 = null;
+ vm0 = new XVM(host1, "vm0",
+ 1, // Nb of vcpu
+ 2048, // Ramsize,
+ 125, // Net Bandwidth
+ null, //VM disk image
+ -1, //size of disk image,
+ 125, // Net bandwidth,
+ dpRate // Memory intensity