cloudstack/api/src/com/cloud/vm
prachi ed9a11c6b6 API changes for Bug 3316 - Manual live migration of Virtual Machines
This is a Root admin only functionality
---------------------
Service API changes:
---------------------
- ManagementServer  will expose new API:
   Pair<List<HostVO>, List<Long>> listHostsForMigrationOfVM(UserVm vm, Long
startIndex, Long pageSize)
The API returns list of all hosts in the VM's cluster minus the current host and also a list of hostIds that seem to have enough CPU and RAM capacity to host this VM.
- ListHostsCmd will call this service API if virtualmachineid is present in the request.
- MigrateVmCmd is the new command added that takes in virtualmachineid and destination hostid
- UserVmService  will expose a new API:  UserVm migrateVirtualMachine(UserVm vm, Host destinationHost)

------------------------------------
API throws error in following cases:
------------------------------------
- User is not a root Admin. (‘Permission denied’)
- A VM uses local storage, we cannot migrate it, so ‘listHosts’ will throw error.
- We fail to migrate the VM on the chosen host.
- API will support migration for XenServer only currently. So error is thrown
if hypervisor is not XenServer (e.g KVM, vSphere etc)
- Destination host is not in same cluster as source host.
- VM is not in running state
2011-03-11 17:49:53 -08:00
..
BareMetalVmService.java Bug 8208 - bare metal provisioning 2011-02-24 14:07:10 -08:00
DiskProfile.java Add local storage support for kvm 2011-03-01 19:51:43 -05:00
InstanceGroup.java api refactoring 2010-11-21 12:00:21 -08:00
Nic.java Fixed DB upgrade script - vm_type field can be NULL 2011-03-05 10:37:57 -08:00
NicProfile.java bug 8146: Multiple network case (default network is Virtual) - for Direct networks dhcp servers set dns to the eth0 ip address of the domR belonging to virtualNetwork 2011-03-07 19:56:25 -08:00
ReservationContext.java Harmony amongst gurus 2010-11-03 21:18:31 -07:00
RunningOn.java more changes 2010-08-18 12:28:30 -07:00
UserVmService.java API changes for Bug 3316 - Manual live migration of Virtual Machines 2011-03-11 17:49:53 -08:00
VirtualMachine.java Bug 8208 - bare metal provisioning 2011-02-24 19:22:34 -08:00
VirtualMachineProfile.java Bug 8208 - bare metal provisioning 2011-02-25 18:58:07 -08:00
VmStats.java moved all agent commands to api. 2011-01-20 09:54:05 -08:00