Method: OpenNebula::VirtualMachine#migrate
- Defined in:
- lib/opennebula/virtual_machine.rb
#migrate(host_id, live = false, enforce = false, ds_id = -1,, mtype = 0) ⇒ nil, OpenNebula::Error
Moves a running VM to the specified host. With live=true the migration is done withdout downtime.
478 479 480 481 |
# File 'lib/opennebula/virtual_machine.rb', line 478 def migrate(host_id, live=false, enforce=false, ds_id=-1, mtype=0) call(VM_METHODS[:migrate], @pe_id, host_id.to_i, live==true, enforce, ds_id.to_i, mtype) end |