axxyhtrx / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

login_in_guest() Failed with Unix Login #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Was able to log in to ESXi and find the VM by name, then any attempts to log in 
to the VM fail. I am able to connect and login to a Windows guest just fine. I 
created additional users in my unix VM and tested, all of which failed the same 
with the following error:
Traceback (most recent call last):
  File "./test.py", line 20, in <module>
    vm.login_in_guest("user1", "password")
  File "/usr/local/lib/python2.7/dist-packages/pysphere/vi_virtual_machine.py", line 1044, in login_in_guest
    self.__validate_authentication(auth)
  File "/usr/local/lib/python2.7/dist-packages/pysphere/vi_virtual_machine.py", line 1722, in __validate_authentication
    raise VIApiException(e)
pysphere.resources.vi_exception.VIApiException: [InvalidGuestLoginFault]: 
Failed to authenticate with the guest operating system using the supplied 
credentials.

System info of the VM running the script:
root@test:~# uname -a
Linux archive 3.2.0-51-generic-pae #77-Ubuntu SMP Wed Jul 24 20:40:32 UTC 2013 
i686 athlon i386 GNU/Linux
root@test:~# cat /proc/version
Linux version 3.2.0-51-generic-pae (buildd@komainu) (gcc version 4.6.3 
(Ubuntu/Linaro 4.6.3-1ubuntu5) ) #77-Ubuntu SMP Wed Jul 24 20:40:32 UTC 2013
root@test:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:        12.04
Codename:       precise

See ubuntu.png for the version information of the VM (only able to get console 
access and no copy/paste for text mode)

The VM is running an updated version on VMware tools.
-See ubuntu2.png picture

Finally, I tested this on an Ubuntu Desktop VM and a different Ubuntu Server 
VM, all of which returned the same error as above.

Let me know if I need to provide any further information.

Original issue reported on code.google.com by jkhedge...@gmail.com on 17 Sep 2013 at 6:18

Attachments: