Merge pull request #828 from sureshanaparti/CLOUDSTACK-8854

CLOUDSTACK-8854: Apple Mac OS/X VM get created without USB controller in ESXi 
hypervisorsCLOUDSTACK-8854: Apple Mac OS/X VM get created without USB 
controller in ESXi hypervisors

Problem Description: CloudStack doesnt add a USB controller to the Apple Mac OS 
X VMs created in ESXi hypervisors. But, vSphere Client, by default, adds a USB 
Controller to the Mac OS VMs. Mac OS X machines require USB Controller for USB 
mouse and keyboard access.

Root Cause: The Guest OS details are specified in the Virtual Machine 
Configuration Spec for creating the VM (using the SDK API) in the EXSi 
hypervisor. No USB Controller is added to the Virtual Machine Configuration 
Spec. As the guest OS Identification details are specified in the VM 
Configuration Spec, It is assumed that the Create VM SDK API would create the 
defaults in the VM same as vSphere Client. But, as per the observation, USB 
Controller is not added to the Guest OS - Mac OS VM created through the SDK API.

Resolution: When the Guest OS is Apple Mac OS, Add the USB Controller 
(EHCI+UHCI - Mac supported) to the Virtual Machine Configuration Spec before 
Creating or Starting the VM. For any existing Mac OS VMs, Stop and Start to add 
the USB Controller. For new VMs with Mac OS, USB Controller is added 
automatically.

* pr/828:
  CLOUDSTACK-8854: Apple Mac OS/X VM get created without USB controller in ESXi 
hypervisors

Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3ef775dc
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3ef775dc
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3ef775dc

Branch: refs/heads/4.9
Commit: 3ef775dc4d17b256308e709512d6105220381082
Parents: 5d7288b 309da6a
Author: Rohit Yadav <rohit.ya...@shapeblue.com>
Authored: Fri Dec 2 10:41:27 2016 +0530
Committer: Rohit Yadav <rohit.ya...@shapeblue.com>
Committed: Fri Dec 2 10:41:27 2016 +0530

----------------------------------------------------------------------
 .../vmware/resource/VmwareResource.java         | 24 ++++++++++++++++++++
 .../vmware/mo/HypervisorHostHelper.java         | 13 +++++++++++
 .../hypervisor/vmware/util/VmwareHelper.java    | 10 ++++++++
 3 files changed, 47 insertions(+)
----------------------------------------------------------------------


Reply via email to