VMware Cloud Community
ChadAbeln01
Contributor
Contributor
Jump to solution

Invoke-VMScript to interact with vtysh of the NSX L2VPN standalone client

Hi community, I am looking for anyone who may know if it is possible to interact with the guest OS of the NSX L2VPN standalone client (6.4.10-latest) using PowerCli and the Invoke-VMScript cmdlet? I am not having success. The OS underneath appears to be "Linux from Scratch" and when executed, I keep getting "Invoke-VMScript Failed to authenticate with the guest operating system using the supplied credentials." I have tried both the root user and admin user which have the password's created upon Ovf deployment.

I have tried LucD's Invoke-VMScriptPlusv3 as well with no luck. In the logs on the OS I see the following

nsx-l2vpn-edge vmsvc[1655]: [default]: [authpriv.err] pam_access(vmtoolsd:auth): access denied for user 'admin' from 'console'

My end goal is to automate configuring HA on Standalone L2 VPN Clients. After Ovf deployment of two clients, it seems like you still to interact with the OS and perform the following steps outlined in this document: https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSphere/6.4/com.vmware.nsx.admin.doc/GUID-9FE3...

Any help here is greatly appreciated. 

NSX Edge 6.4.10 (build 17539626 kernel 4.4.185)

Labels (6)
0 Kudos
21 Replies
LucD
Leadership
Leadership
Jump to solution

No, Set-VMKeystrokes doesn't do that


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
ChadAbeln01
Contributor
Contributor
Jump to solution

Luc, just wanted to follow up and thank you for your input here. I was able to pivot my efforts and use William's Set-VMKeyStrokes function to accomplish setting up HA on the two nodes after deployment as shown in the below document without having to touch the console. Thanks again!

https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSphere/6.4/com.vmware.nsx.admin.doc/GUID-9FE3...

0 Kudos