Managing the VM state involves stopping and starting or pausing and resuming a VM. You can also save and restore a VM.
Managing VM state
Getting ready
This recipe uses the VM1 VM created in the Creating a virtual machine recipe. This recipe assumes the VM1 VM is stopped when you start this recipe. If this VM is running, then first stop it using Stop-VM.
How to do it...
Here is how to manage VM state:
- Get the VM's state to check if it is off:
Get-VM -Name VM1
- Start the VM, get its status, then wait until the VM has an IP address assigned and the...