Hello all,
if I want to start the fleet with the command Start-FleetSweep -b 4 -t 8 -o 8 -w 0 -d 300 -p r
I get this issue in Powershell - what can I do ?
PS C:\Windows\system32> Start-FleetSweep -b 4 -t 8 -o 8 -w 0 -d 300 -p r
--------------------
2022-01-05T08:52:37: RUN PARAMETERS
2022-01-05T08:52:37: o = 8
2022-01-05T08:52:37: d = 300
2022-01-05T08:52:37: AddSpec =
2022-01-05T08:52:37: p = r
2022-01-05T08:52:37: b = 4
2022-01-05T08:52:37: t = 8
2022-01-05T08:52:37: w = 0
2022-01-05T08:52:37: Cool = 30
2022-01-05T08:52:37: Warm = 60
2022-01-05T08:52:37: iops = $null
2022-01-05T08:52:49: START Go Epoch: 1
2022-01-05T08:52:49: CLEAR pause at Go
2022-01-05T08:52:49: SLEEP TO RUN CHECK (19,96 seconds)
2022-01-05T08:53:09: RUN CHECK Go Epoch: 1
GetDoneFlags : Cannot bind argument to parameter 'VM' because it is an empty array.
At C:\Program Files\WindowsPowerShell\Modules\VMFleet\2.0.2.1\VMFleet.psm1:5279
char:82
+ ... (GetDoneFlags -DonePath $donePath -GoEpoch $goepoch -VM $vms -Assert ...
+ ~~~~
+ CategoryInfo : InvalidData: (:) [GetDoneFlags], ParentContainsErrorRe
cordException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyArrayNotAllowed,G
etDoneFlags
Also I get an issue while creating the VMS:
PS C:\Windows\system32> New-Fleet -basevhd C:\ClusterStorage\Volume02TWM\VirtualMachines\Gold.vhdx -vms 30 -adminpass '123456' -connectuser username -connectpass password
HOST1: Cannot connect to CIM server. WinRM cannot process the request. The following error with errorcode
0x8009030e occurred while using Kerberos authentication: A specified logon session does not exist. It may already
have been terminated.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting
or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config.
+ CategoryInfo : ResourceUnavailable: (MSFT_Volume:String) [Get-Volume], CimJobException
+ FullyQualifiedErrorId : CimJob_BrokenCimSession,Get-Volume
+ PSComputerName : HOST2
I tried alot to solve this but it seems the script cant deploy the VMS on my second host.
- I tested commands like "Get-NetAdapter -CimSession Host2" - was successfully
or
- Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value 'Host1.domain.lab,Host2.domain.lab,Cluster.domain.lab'
or a simple remot PS:
- Enter-PSSession -ComputerName Host2 -Credential $cred - it also successfully.
- This command also work: [Host2]: PS C:\Users\admtl\Documents> Get-Volume
- I checked if I logged in on both with the same domain account and both Host are correctly memeber of my domain. (nltest /sc_query:domain.lab)
- Firewall is disabled.
What can I to here also ?