创建通用 VMware 控件库
在我们的组织中,我们正在运行 VMware 的多个虚拟机解决方案:
- VMware ESX
- VMware ESXi(现在称为 Hypervisor/vSphere)
- VMware Workstation
我希望能够以透明的方式控制所有这些(发送电源命令、恢复到作为我们产品自动化流程的一部分。
我的问题是 API 太多,而且我没能找到任何关于如何实现这一目标的好示例。
有人有创建此类图书馆的经验吗?需要使用哪些VMware API?
In our organization, we're running several VM solutions from VMware:
- VMware ESX
- VMware ESXi (now called Hypervisor/vSphere)
- VMware Workstation
I'd like to be able to control all of these in a transparent way (send power commands, revert to a given snapshot to begin with) as part of an automated process of our product.
My problem is that there are far too many APIs and i've failed to find any good samples on how to achieve this.
Anyone has any experience with creating this sort of library? which VMware APIs need to be used?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在此处查看 VIX API:VIX API 参考通用任务。它是基于 COM 的,因此您必须导入 COM 对象作为引用。
另请参阅此处的这篇文章:使用 VIX API 在 C# 中自动执行 VMWare 任务
You can have a look at the VIX API here: VIX API Reference Common Task. It's COM based, so you'll have to import the COM object as a reference.
See also this article here: Automating VMWare Tasks in C# with the VIX API