If you trace startVirtualMachine you'll end up in
VirtualMachineManagerImpl.java, most likely in the advanceStart
method, where we see the StartCommand being crafted and sent to the
agent:
StartCommand strtcmd = new StartCommand(vmTO,
dest.getHost(), _mgmtServer.getExecuteInSeq
The DeployVMCmd.java file has a 'create' and an 'execute' method. The
create method is responsible for registering the VM and persisting it
in the database, the logical creation. The 'execute' starts the vm, if
the API call requires it. It calls the
userVmService.startVirtualMachine, which I think
I have been looking at the code trying to figure out where the API
call "deployVirtualMachine"
would send the command to a KVM hypervisor to create a new virtual machine.
I've found where the API call happens, but so far I have not seen where the
logic is that sends the command to the hypervisor to