Hi guys,
I would like to implement my own algorithm VM migration, I would like to know whether it is possible and if yes which part of OpenNebula should i modify?
The hypervisor I am using is Xen 4.4.
I know this will be a long way for the learning curve, so i hope you can guide me on the right direction to get started.
Best Regards,
Arshad
cmartin
(Carlos MartÃn)
June 22, 2016, 7:16am
2
Hi,
Here are a few pointers to get you started:
The decision to choose a migration destination is made in the scheduler:
In the core the xml-rpc api call is managed by this method:
}
~VirtualMachineDeploy() = default;
protected:
void request_execute(xmlrpc_c::paramList const& _paramList,
RequestAttributes& att) override;
};
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
class VirtualMachineMigrate : public RequestManagerVirtualMachine
{
public:
VirtualMachineMigrate():
RequestManagerVirtualMachine("one.vm.migrate",
"Migrates a virtual machine",
"A:siibbii")
{
vm_action = VMActions::MIGRATE_ACTION;
From there, the action will call the VM drivers:
http://docs.opennebula.org/5.0/integration/infrastructure_integration/devel-vmm.html
Thank you for replying sir.
What I actually want to do is modify the live migration process of VMs. I know that there is this method "migrate(host_id, live = false, enforce = false, ds_id = -1)) " in VirtualMachine.rb(http://docs.opennebula.org/doc/5.0/oca/ruby/OpenNebula/VirtualMachine.html#migrate-instance_method ).
Would you like to add something to it.
Also if possible could you suggest something on this issue - VM creation failure on XEN host
Thanks and regards,
Arshad Shaikh