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.
如何将登录会话保存为 pyvmomi 中的文件?(服务实例)
前任)
from pyVim.connect import SmartConnect si = SmartConnect(host=self.host, user=self.user, pwd=self.pwd)
我遇到的问题是,当我向虚拟机发出命令时,始终尝试连接到 vSphere 可能会导致流量负载。所以我尝试将现有会话保存到文件中并重用它。我应该怎么办?