简体   繁体   中英

Programatically connect and disconnect USB devices in virtual machine

I'm developing automated testing for software which needs to eject and reconnect USB devices automatically at the BUS level, not simply software.

This makes a virtual environment optimum because the virtual hardware can be controlled to emulate such behavior. However, I cannot find a way to do this programmatically through VMWare, VirtualBox, or Zen.

Is this kind of functionality implementable? Thank you!

using VSPhere API, it's soap based web service that can do the same thing as you using VSphere client.

there is a interface called: ReconfigVM_Task may be you can use, see ref at: Vsphere API Reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM