February 2014
Intermediate to advanced
374 pages
8h 12m
English
You have created your virtual machine but it is still powered off. In this section, you will learn how to start, suspend, and stop a virtual machine using PowerCLI.
To start a virtual machine, you can use the Start-VM cmdlet. This cmdlet has the following syntax:
Start-VM [-RunAsync] [-VM] <VirtualMachine[]> [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
The –VM parameter is required to start a virtual machine.
In the first example, we will start the virtual machine VM2 using the following command:
PowerCLI C:\> Start-VM –VM VM2
The output to the preceding command is as follows:
Name PowerState Num CPUs MemoryGB ---- ---------- -------- -------- VM2 PoweredOn 1 1.000 ...
Read now
Unlock full access