This repository was archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
mdaneri edited this page May 22, 2019
·
2 revisions
Manage Virtual Machines.
Usage:
vm -poweroff [-vim <vcenter>] [-dryrun] [-force] [-all] [-quiet]
vm -poweron [-vim <vcenter>] [-dryrun] [-all] [-quiet]
vm -reboot [-vim <vcenter>] [-dryrun] [-force] [-all] [-quiet]
vm -list [-vim <vcenter>] [-detail] [-all]
vm -remove [-vim <vcenter>] [-dryrun] [-force] [-all] [-quiet]
vm -cbt <on|off> [-vim <vcenter>] [-dryrun] [-all] [-quiet]
vm -profile [-vim <vcenter>] [-dryrun] [-all] [-quiet]
vm -help
Arguments:
-poweroff Shut down the Virtual machine(s). -poweron Power On the Virtual machine(s). -reboot Try a reboot of the Virtual machine(s) -list Virtual Machines list. -remove Remove the Virtual machine. -cbt <on|off> Enable disable Change Block Tracking -profile Show Virtual Machine(s) profile. -help Help -vim <vcenter> Target a specific vim service <vim> (uuid,url) -dryrun Do not do anything. -detail Show details. Used with list -force Force the Virtual machine operation. -all Operation apply to any Virtual Machines. -quiet No confirmation is asked.
Examples:
vm list detail -vim 9a583042-cb9d-5673-cbab-56a02a91805d
Show any Virtual Machine available with associated Improved Virtual Disk on vCenter 9a583042-cb9d-5673-cbab-56a02a91805d
vm poweron vm:testVM vm:vm-2313 vm:f9ad3050-d5a6-d107-d0d8-d305c4bc2330
Power On 3 Virtual Machines. 1st a VM selected by name. 2nd a VM selected by Moref. 3rd a VM selected by UUID
vm remove force vm:testVM
Remove the VM testVM if the VM is On a power-off is forced

