Steps from VMA (after you connect to host using vifp and vifptarget commands):
Firstly need to be set fqdn:
esxcli -h esx02 system hostname set --fqdn=esx02.vmtest.local
Next line should set DNS server:
esxcfg-dns -D 192.168.100.66 -d esx02.vmtest.local -n esx02
Last step is to add server to domain:
vicfg-authconfig -h esx02.vmtest.local -j vmtest.local -t AD \\ -U domainadmin
No Comments