2016-02-04 47 views
0

我的vCenter 5.5和ESXi主機是5.1,但我得到了以下錯誤而給客人VM.I記錄也更新VMware工具得到錯誤,而使用pysphere

import sys 
    from pysphere import VIServer 
    s=VIServer() 
    s.connect("X.X.X.X","[email protected]","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. 

回答

0

我登錄到訪客VM也有同樣的問題。在vm上安裝vm_tools幫助。

0

在您的虛擬機上安裝vmware工具。