Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在过去的一两天里,我在这里和优秀的 ole Google 上都做了很多研究,似乎找不到任何使用 pyVmomi(或任何其他 vSphere 模块)将孤立虚拟机添加到库存的示例.
感谢 github 上的一些示例,我能够使用 pyVmomi 找到孤立的 vm,但是 man.. pyVmomi 没有任何好的文档。
所以,现在我要发布我自己的问题!
感谢您的任何提示/帮助!
——克里斯·穆里纳
您可以folder.Register使用 vmx 文件的路径调用 ,如下所示:
folder.Register
from pyVim import folder folder.Register("[datastore]TestVM/TestVM.vmx")