From 5809f0f4cd75ca84bb4b4f47185801ddd054c462 Mon Sep 17 00:00:00 2001 From: Takahiro Hirofuchi Date: Wed, 18 Dec 2013 15:42:36 +0100 Subject: [PATCH] fix an example of vm migration --- examples/msg/cloud/simple_vm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/msg/cloud/simple_vm.c b/examples/msg/cloud/simple_vm.c index e61c01c93c..630084f845 100644 --- a/examples/msg/cloud/simple_vm.c +++ b/examples/msg/cloud/simple_vm.c @@ -252,6 +252,12 @@ static int master_main(int argc, char *argv[]) XBT_INFO("## Test 6 (started): Check migration impact (not yet implemented neither on the CPU resource nor on the network one"); XBT_INFO("### Relocate VM0 between PM0 and PM1"); vm0 = MSG_vm_create_core(pm0, "VM0"); + { + s_ws_params_t params; + memset(¶ms, 0, sizeof(params)); + params.ramsize = 1L * 1024 * 1024 * 1024; // 1Gbytes + MSG_host_set_params(vm0, ¶ms); + } MSG_vm_start(vm0); launch_communication_worker(vm0, pm2); MSG_process_sleep(0.01); -- 2.20.1