I need some help in trouble-shooting an odd issue:
We've installed the VMWare View PowerCLI on a server and use the cmdlet Get-DesktopVM to get the list of all VDIs. That all works when I login with RDP to the server and use the VMWare View PowerCLI (which loads the correct snapin).
But I want to automate this and we use HP SA to do this. It logs in with it's own way (which works perfectly fine) and then tries to run the power shell script.
Our script loads the snapin with
. "D:\Program Files\VMware\VMware View\Server\extras\PowerShell\add-snapin.ps1"
and then runs Get-DesktopVM
But then it gets this error:
Welcome to VMware View PowerCLI
Get-DesktopVM : View Server connect FAILED
At C:\temp\rak1.ps1:2 char:14
+ Get-DesktopVM <<<<
+ CategoryInfo : NotInstalled: (vmware.view.pow...ts.GetDesktopVM
:GetDesktopVM) [Get-DesktopVM], Exception
+ FullyQualifiedErrorId : Node Manager not running,vmware.view.powershell.
cmdlets.GetDesktopVM
As said, the same thing works fine if I login with RDP so I don't think there's anything wrong with VMWare View or the way the PowerCLI is installed.
But something is obviously missing in this powershell environment when logged in via HP SA.
Could someone give me some hints on how to trouble-shoot this? What does Get-DesktopVM need to be able to connect to the Node Manager? Does it look for a file, is this a TCP/IP connection which maybe goes to the wrong address, or how does this work.
I'm already staring at this for many hours and I'm trying all kind of things. For a while I thought we miss the vmtoolsd process and I started it in this shell. But that didn't make a difference either.
Any help would be greatly appreciated.
Have you allowed remote access to Powershell users ??????
Enable-PSRemoting -Force
I'm not coming from a remote machine. HP SA logs in first and then runs this from the machine.
Can you attach the Debug file from connection server at the time of Problem.
C:\programdata\vmware\vdm\logs\debug.***.log Sort by time
Can I send you the debug log in private? I'm not sure I want to post it here for everyone to read. It's very large and it may contain too much company information for public consumption.
When I run it after logging in with RDP I see username in the debug log file. I don't see it when I login with HP SA. So I think it may not even get there.
Were you ever able to get this resolved?
I'm having the same problem after Upgrading Horizon from 5.3 to 6.2
I'm using a Constrained Powershell Endpoint so that non-administrators can connect to the server. That part works fine, btw
But if I issue a view powercli command - in this case Get-DesktopVM - I get the exact same errormessage (Node Manager not running)
If the connecting user is part of the local admin group on the server it works fine, but defeats the purpose.
Hi,
In Horizon View, i am trying to pull get-desktopvm using VMInvoke command from powerCLI using different admin account under domain controller. (please disregard default admin, it works with default admin but i don't want to go with default one)
but i am getting error like "NODE manager not running " & "View Server connect FAILED".
i have given full admin rights to new user account, but no joy.
here is script data.
#$DRVM = "Horizon_View6_35"
$ScriptBlock = [scriptblock]::create('
add-pssnapin vmware.view.broker
get-desktopvm
')
$HZNuser = "XYZ"
$HZNpass = "XYZ"
Invoke-vmscript -vm $DRVM -scripttext $scriptblock -guestuser $HZNuser -guestpassword $HZNpass
i am getting below error.
VM : VDI_HorizonXX
ExitCode : 0
ScriptOutput : get-desktopvm : View Server connect FAILED
At line:3 char:1
+ get-desktopvm
+ ~~~~~~~~~~~~~
+ CategoryInfo : NotInstalled:
(vmware.view.pow...ts.GetDesktopVM
:GetDesktopVM) [Get-DesktopVM], Exception
+ FullyQualifiedErrorId : Node Manager not
running,vmware.view.powershell.
cmdlets.GetDesktopVM
Thanks,
Ashish