0

我有 vCenter 5.5 和 ESXi 主机是 5.1 但是登录来宾 VM 时出现以下错误。我还更新了 vmware 工具

    import sys
    from  pysphere import VIServer
    s=VIServer()
    s.connect("X.X.X.X","administrator@vsphere.local","xxxxxxxxx"
    vm=s.get_vm_by_name('vmware_vm')
    vm.login_in_guest('admin', 'Admin123')

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/lib/python3.4/site-packages/pysphere/vi_virtual_machine.py", line 1027, in login_in_guest
        self.__validate_authentication(auth)
      File "/lib/python3.4/site-packages/pysphere/vi_virtual_machine.py", line 1706, in __validate_authentication
        raise VIApiException(e)
    pysphere.resources.vi_exception.VIApiException: [GuestOperationsUnavailableFault]: The guest operations agent could not be contacted.
4

2 回答 2

0

我也有同样的问题。在 vm 上安装 vm_tools 有帮助。

于 2016-04-15T08:53:22.287 回答
0

在您的虚拟机上安装 vmware 工具。

于 2016-04-21T04:22:46.977 回答