ezrapagel/knife-vsphere — Issue #3: Incorrect user or password
Author: ianrossi
Created: 2012-01-18 16:42:29+00:00
State: open

Here is my configuration In the knife.rb file:

knife[:vsphere_host] = "host.domain.com"
knife[:vsphere_user] = "WINDOWSDOMAIN\username"
knife[:vsphere_pass] = "PASSWORD"
knife[:vsphere_dc] = "DATA-CENTER"

I am getting the error:
ERROR: RbVmomi::Fault: InvalidLogin: Cannot complete login due to an incorrect user name or password.

My question is:
How do I format the value for knife[:vsphere_user] ? When I log into the vSphere client in Windows, I login using WINDOWSDOMAIN\username. Should it be different here? I have also tried username@WINDOWSDOMAIN. We use NT Authentication to log on to vCenter.

Thanks.