live migration of vm

2,397 views
Skip to first unread message

suresh moharana

unread,
Jan 15, 2011, 12:51:17 AM1/15/11
to cloudsim
I am working in live migration of VM. Is it possible to simulate live
migration in cloudsim framework.

Anton Beloglazov

unread,
Jan 17, 2011, 1:44:33 AM1/17/11
to clou...@googlegroups.com
Hi Suresh,

Yes, it is possible to model live VM migration. Please have a look at the CloudSimTags.VM_MIGRATE event type and the Datacenter::processVmMigrate() method. You can find an example of initiation of a migration in the PowerDatacenter class on the line number 167.

Best regards,
Anton

suresh moharana

unread,
Jan 25, 2011, 6:47:23 AM1/25/11
to clou...@googlegroups.com


Dear Sir,

How to allocate disk space to a VM in cloudsim framework. Is there any class like RamProvisioners.

Rodrigo Calheiros

unread,
Jan 27, 2011, 6:39:23 PM1/27/11
to clou...@googlegroups.com
Dear suresh,

unfortunately, there is no such a disk provisioner in InterCloud.
However, you can get this behavior by creting a new VmAllocationPolicy
that considers storage on each VM to decide VM placement. This new
class would have also to keep track of the amount of free and used
disk space on each host.

Regards,
Rodrigo

mansi kulkarni

unread,
Jan 27, 2011, 11:28:54 PM1/27/11
to clou...@googlegroups.com
hi rodrigo,
can you please tell me how to run our own application on cloudsim?is it possible?if yes then how?we are implementing code for scheduling of tasks in cloud ,the alogorithm we are coding is activity based costing?how to run it?
plz send reply as early as possible.
thank you

Rodrigo Calheiros

unread,
Jan 28, 2011, 1:40:38 AM1/28/11
to clou...@googlegroups.com
Dear mansi,

you have to port your scheduling algorithm to CloudSim: the logic of
the algorithm has to be added to the DatacenterBroker, as it
represents the users in CloudSim. However, you can't run real
applications (CloudSim is a simulator, not an emulator). You have to
model your application as one or more cloudlets and submit it for
execution via your modified DatacenterBroker.

Regards,
Rodrigo

mansi kulkarni

unread,
Jan 29, 2011, 7:24:47 AM1/29/11
to clou...@googlegroups.com
thanks rodrigo,
can you please simplify it,i am new in the area of cloud computing.

Srinivasan S

unread,
Jan 30, 2011, 2:16:57 AM1/30/11
to clou...@googlegroups.com
Dear mansi,

cloulet is a application that you like to run in your datacenter.

As Rodrigo told you can't run your real applications (eg: games, softwares etc) in cloudsim but you can design your load ie. your application (eg. if you run a application in your system it will consume memory,cpu etc.,) in clousim you want to feed the details of your application like file size, pes needed etc, to run and know the results.

Regards,
Srinivasan
Message has been deleted

pallavi gupta

unread,
Sep 9, 2013, 12:00:13 AM9/9/13
to clou...@googlegroups.com
HI,
   Do you want to implement your own vm allocation policy and use the existing vm migration policies on it? or
 want to implement your own vm migration policy?


On Sun, Sep 8, 2013 at 11:06 PM, M Haritha <harith...@gmail.com> wrote:
Hi 
I am new to this group
But i would like to post my doubts which I'm having please anyone help me as soon as possible


I'm planning to implement scheduling algorithms while Vm migrating from one host to another, so here I'm planning to implement algorithms by using CloudSim but i don't know why how we can use please anyone help me for my project

please reply to me









On Saturday, January 15, 2011 11:21:17 AM UTC+5:30, suresh moharana wrote:
I am working in live migration of VM. Is it possible to simulate live
migration in cloudsim framework.

--
 
---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

dhaval limbani

unread,
Jan 24, 2014, 10:57:43 AM1/24/14
to clou...@googlegroups.com
Hello Pallavi,

if we want to add new one , where to add?

if we want to make changes in policy, where  to change?

regards,
Dhaval 

Mario Henrique Souza Pardo

unread,
Jan 25, 2014, 12:36:15 AM1/25/14
to clou...@googlegroups.com
Hello,

   there are parts of VM migration policy handling that you can find at the updateVmProcessing method at Host, HostDynamicWorkload, CloudletScheduler classes and VmScheduler classes. Perhaps will be necessary to study the interconnection and methods calling of these classes. Run a sample program in debug mode with the migration of VMs enabled, should help you understand how it works.

   Good luck!

   Mário Pardo


2014/1/24 dhaval limbani <dhaval....@gmail.com>

dhaval limbani

unread,
Jan 25, 2014, 4:23:07 AM1/25/14
to clou...@googlegroups.com

Hello Mario!

Thanks a lot! I ll follow!

-Dhaval

Tapender Singh Yadav

unread,
Jun 24, 2014, 10:18:00 PM6/24/14
to clou...@googlegroups.com
Hello Anton Sir,
                       I am working on live vm migration in cloudsim. After reading your post, I have one doubt. Can you tell me when and how to trigger the vm migration event? And how we should end up in calling the processVmMigrate() method? As I want to simulate my own vm migration algorithm, should I write the implementation in the Datacenter::processVmMigrate() method? Please reply as it will help me in moving forward with my research work as I am not finding any convincing answers. 

Thanks & Regards,
Tapender Singh Yadav

Mohammed

unread,
Sep 7, 2014, 3:23:43 AM9/7/14
to clou...@googlegroups.com
I am new to cloudsim, and was wondering about the same question.
I think this is answer:

"VmAllocatonPolicy -- you need to extend this abstract class to implement your own algorithms for deciding which host a new VM should be placed on. You can also implement dynamic VM reallocation algorithms by implementing the optimizeAllocation method, which is called at every time frame and passed with the full set of current VMs in the data center."

So inside "optimizeAllocation" you can trigger migration using:
"send(this.getId(),delay,CloudSimTags.VM_MIGRATE,vm);"

If I am wrong, I hope someone corrects me.

Giridharan Venugopal

unread,
Jun 8, 2015, 11:24:57 PM6/8/15
to clou...@googlegroups.com
Dear Anton,

I'm trying to migrate VM from from 1 host to another by modifying example 3 in cloudsim within a datacenter. But I'm not quite sure regarding where to insert the block of code in datacenterbroker.java. Can you please help?

HashMap<String, Object> migrationData = new HashMap<String, Object>();
migrationData.put("vm", vmlist.get(1)); //the object of the VM you want to migrate
migrationData.put("host", 0); //the host you want the VM to migrate in
send(datacenterId,(vm1.getRam() / ((double) vm1.getBw() / 8000) + 10),CloudSimTags.VM_MIGRATE,migrationData);

Regards,
Giridharan

Harraj

unread,
Jun 9, 2015, 6:51:27 AM6/9/15
to clou...@googlegroups.com

Dear Rodrigo,

 
I am new to cloudsim. plz suggest to how submit cloudlets based on execution time. I am able to calculate the execution time . but how to submit. plz help 

taleb...@gmail.com

unread,
Apr 30, 2017, 6:01:10 AM4/30/17
to cloudsim
yes m it is possible but i don't know how!!!!!

s15rahm...@gmail.com

unread,
Dec 16, 2017, 2:41:58 AM12/16/17
to cloudsim
Hi all
excuse me, i new in cloudsim. live migration dont implement in cloudsim. examples of power package dont use of live migration? please help me.


On Saturday, January 15, 2011 at 9:21:17 AM UTC+3:30, suresh moharana wrote:

s15rahm...@gmail.com

unread,
Dec 16, 2017, 2:43:40 AM12/16/17
to cloudsim
Hi all
excume me, cloudsim use of postcopy or precopy for migration?
please help me.


On Saturday, January 15, 2011 at 9:21:17 AM UTC+3:30, suresh moharana wrote:

hari priya

unread,
Feb 15, 2018, 12:26:20 AM2/15/18
to cloudsim
Hello,

I have a  few queries regarding VM.

In CloudSim, cloudlets are mapped to virtual machines. 

For example:  I have considered 10 tasks and 5 virtual machines,  

1. How to identify which cloudlet is mapped to which Virtual machine?

2. In which class of cloudsim I can see the code of mapping the cloudlet to VM?

please respond. It will really helpful for my work

huned materwala

unread,
Feb 17, 2018, 3:21:11 AM2/17/18
to cloudsim
Greetings
I would recommend you to implement the examples in cloudsim first and understand it properly, this will clear all your doubts.

Print cloudlet Id and VM id after each mapping, this will print the list of all the cloudlets and corresponding VM it is allocated to.

hari priya

unread,
Feb 19, 2018, 8:34:56 AM2/19/18
to cloudsim
Thank you so much for your reply, I have gone through it and understood.

Priyanka

unread,
Apr 28, 2019, 10:43:35 AM4/28/19
to cloudsim
hello, 
I have proposed an algorithm for vm scheduling (to schedule vm on host). I have implemented my proposed approach in cloudsim by updating VMAllocationPolicy class but till now the resource requirement  of VM is static. I have query that during simulation how I can change resources requirement (cpu, memory and bandwidth) of a VM. after change in requirement I need to calculate overloaded host on the basis of utilization of host. During simulation how I can calculate utilization of host (to detect overloaded or not). Do I need to pause the simulation, what I have to do. please help..  

Sohaib Ajmal

unread,
Apr 28, 2019, 10:49:17 AM4/28/19
to clou...@googlegroups.com
Use cloudsim plus. It gives functionality to do some things after fixed intervals. For example if you set interval to 20 then after each interval your function will calculate utilization and will perform some action. 

--

---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saira Manzoor

unread,
May 4, 2019, 6:34:09 AM5/4/19
to clou...@googlegroups.com
yup move to cloudsim plus check scalability examples 

Priyanka

unread,
Jun 3, 2019, 7:37:36 AM6/3/19
to cloudsim
Thanks. I checked cloudsim plus, function for dynamic allocation and migration are available. But I am not able to use those file in my package. For vm allocation I created a package, imported cloudsim package in new created package and also created some new classes and main class for host,vm and cloudlet creation in neww package. As per my proposed VM to Pm allocation approach I made changes in datacenter, broker, etc. Now for migration as per suggestions I need to import cloudsim plus package.  Now on importing cloudsim plus package, some class of cloudsim and cloudsim plus are of same name so it need overwriting and in that case I am getting error in most of the files. On other side when I am importing file of cloudsim plus outside my created package I am able to do that. But I am unable to link files of cloudsimplus and my java file in my package.  please help How I can link or use file of cloudsim plus in my package. 


On Saturday, May 4, 2019 at 4:04:09 PM UTC+5:30, Saira Manzoor wrote:
yup move to cloudsim plus check scalability examples 


To unsubscribe from this group and stop receiving emails from it, send an email to clou...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clou...@googlegroups.com.

Varun

unread,
Jun 3, 2019, 7:45:04 AM6/3/19
to clou...@googlegroups.com
PowerVm package contains files related to VM selection and allocation policy
e.g. local regression Lr for VM allocation
Minimum migration time for VM selection

To make system dynamic workload is required and in cloudsim planetLab was used as a workload 

May be it can be useful 


To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim/526cad99-4f2f-4a5d-bef3-1f7fde458dab%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages