I want to detect a USB storage device that may or may not be connected to my ESX Host and when I discover a connected USB device, I want to be able to attach the device to a specific Virtual Machine.
In looking the object Hierarchy for HostSystem it is not clear to me how to discover a USB device on a HostSystem Object.
So part 1 is to determine how to discover USB objects on the HostSystem object with VI Java. Anybody know how this would be done.
Part 2 - Supposing I can discover the USB object on the HostSystem, I now need to figure out how to get it attached to a given VirtualMachine Object (also using VI Java).
Anyone have any help/ideas here?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to detect a USB storage device that may or may not be connected to my ESX Host and when I discover a connected USB device, I want to be able to attach the device to a specific Virtual Machine.
In looking the object Hierarchy for HostSystem it is not clear to me how to discover a USB device on a HostSystem Object.
So part 1 is to determine how to discover USB objects on the HostSystem object with VI Java. Anybody know how this would be done.
Part 2 - Supposing I can discover the USB object on the HostSystem, I now need to figure out how to get it attached to a given VirtualMachine Object (also using VI Java).
Anyone have any help/ideas here?
I am basically trying to do this:
https://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp#configuring_virtual_machines/t_add_a_passthrough_usb_device_to_vm.html
Programmatically