Hi,
is it possible to start a VM with the Powershell CLI command "start-vm" on a certain host in a cluster?
I see only the -server option, but i think this is for the vcenter server...
Can someone help?
Regards
Uwe
You can connect to the host directly with the connect-viserver cmdlet instead of the vcenter server and use start-VM,I use it in my nested lab to shutdown the nested esxi hosts when I want to power everything off.
Moderator: Thread moved to the PowerCLI area.
I assume you mean a cluster enabled for DRS? If so, connecting directly to the host will be the method - bypassing vCenter Server which would otherwise control the VM placement.
It depends if that ESXi node is part of a cluster with DRS active.
Normally you can move the VM to the intended ESXi node and then start it.
But when DRS is active, then DRS might decide to start it on another node in the cluster.
One option is to temporarily disable DRS
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Even if you connect to the ESXi node directly, if that ESXi is part of a cluster with DRS active, DRS might still start/move it on/to another node in the cluster.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi,
thanks for the information. It works now.
Regards
Uwe