Issue with connecting to SWServer via Powershell

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Anatoly (staff), Max (staff)

Post Reply
Starwindenjoyer
Posts: 2
Joined: Wed Jul 17, 2024 8:41 am

Wed Jul 17, 2024 8:51 am

Hi everyone,

I have recently been tasked with setting up a 3 node setup using VSAN, after I got this assignment I looked up the options, and found Starwind, and so far I've been really happy with it, it's really easy to setup, however as I am using the Free version, I cannot setup LUNs via the web management or Management Console, so I have resorted to using the powershell scripts in the samples folder, however I cannot connect.

I have 3 CVM in a Vsphere environment, with 1 CVM on each node, after this I made a Windows VM for connecting to the web, and for managing with Powershell.
I try to use these 2 commands
$server = New-SWServer -host $addr -port $port -user $user -password $password
$server.Connect()

However when I do this I get the following error

"Connection to X.X.X.X ( X.X.X.X ) : 3261 has failed

Login username password

104 Username or password you entered is invalid.."

I have tried retyping the password, and looked it over dozens of times, I even tried making a new user, just for this purpose but still to no avail.
I have also tried using Test net connection via Powershell and it works just fine, and I can connect to the servers in the Management Console, I just cannot get the Powershell connection to work for some reason.

Thanks in advance!
thomas84
Posts: 6
Joined: Sat Jul 20, 2024 2:30 pm

Sat Jul 20, 2024 2:41 pm

Hi, i am also new to Starwind and tried to install my first VSAN free cluster today.
I ran into the exact same issue and was also not able to connect with powershell example script, but i found a solution.

I started the "starwind smi-s configurator" which comes with the powershell-sample bundle and put in my credentials für my first stwarwind instance.

After that i was able to add my two Starwind instances to the "StarWind Management Console".
When i connect each one of them i get a message that i am not allowed to configure them with my "free" license, but that was OK.

But i found a "hidden" menu item in the management console, which was preconfigured with username "root" (which i was not using) and an unknown password. So i stayed with the username "root" but set my normal starwind password here again, and after that the powershell login / script was working.

Image
yaroslav (staff)
Staff
Posts: 2848
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 25, 2024 2:58 pm

Welcome to StarWind Forum.
The credentials should be
root/starwind
You can always find them in the script. Have a nice day.
Starwindenjoyer
Posts: 2
Joined: Wed Jul 17, 2024 8:41 am

Mon Aug 05, 2024 7:48 am

Hi Thomas84, sorry for the late reply, I was on vacation, but I just tested this, and as you said it was indeed related to these Authentication settings, thanks a lot for your help!

Best Regards
yaroslav (staff)
Staff
Posts: 2848
Joined: Mon Nov 18, 2019 11:11 am

Mon Aug 05, 2024 8:38 am

If you have access to the management console UI, the system might be covered under some Support contract (it can be expired).
Post Reply