Created
April 7, 2021 15:29
-
-
Save jpluimers/8466191e3a01d36d3eff37bfe9da7191 to your computer and use it in GitHub Desktop.
`vim-cmd help` for each `vmsvc` command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage: acquiremksticket vmid | |
Acquire mks ticket. | |
Usage: acquireticket vmid ticketType | |
Acquire a virtual machine ticket. | |
Usage: createdummyvm vm_name datastore_path [hw_version] | |
Create a pre-configured dummy vm. | |
Usage: destroy vmid | |
Deletes the vm. | |
Usage: device.connection vmid deviceKey connect | |
Connect/Disconnect the virtual device specified | |
Usage: device.connusbdev vmid usbid | |
Connect a USB device to this virtual machine. | |
Usage: device.ctlradd vmid ctlr_type bus_number | |
Add a LsiSAS1068, LsiLogic, BusLogic, PvSCSI, AHCI, NVME or NVDIMM controller to this virtual machine. | |
Usage: device.ctlrremove vmid ctlr_type bus_number | |
Remove a SCSI, SATA or NVME controller from this virtual machine. | |
Usage: device.disconnusbdev vmid usbid | |
Remove a disk from this virtual machine. | |
Usage: device.diskadd vmid size controller_numer unit_number datastore [ctlr_type] | |
Add a disk to this virtual machine. | |
Usage: device.diskaddexisting vmid disk_file controller_number unit_number [ctlr_type] | |
Add an existing disk to this virtual machine. If controller type is not set, the command will create a SCSI disk. | |
Usage: device.diskextend vmid new_size controller_numer unit_number [ctlr_type] | |
Extend an existing disk of this virtual machine. | |
Usage: device.diskremove vmid controller_number unit_number delete_file [controller_type] | |
Remove a disk from this virtual machine. If controller type is not set, the command will look for a SCSI disk. | |
Usage: device.getdevices vmid | |
Retrieves and displays the virtual devices for the vm. | |
Usage: device.nvdimmadd vmid size | |
Add a nvdimm to this virtual machine. | |
Usage: device.nvdimmremove vmid deviceKey | |
Remove a nvdimm from this virtual machine. | |
Usage: device.toolsSyncSet vmid new state | |
Set whether tools sync to host is enabled for the virtual machine. | |
Usage: devices.createnic vmid adapter-type network-id [network-type] | |
Add a NIC to this virtual machine. | |
Usage: get.capability vmid | |
Get list of capabilities for virtual machine. | |
Usage: get.config vmid | |
Retrieves and displays the configuration object for the vm. | |
The device list is omitted and can be retrieved using the device.getdevices command. | |
Usage: get.config.cpuidmask vmid | |
Retrieves and displays the cpu id masks for this virtual machine. | |
Usage: get.configoption vmid | |
Get the configuration options for this virtual machine. | |
Usage: get.datastores vmid | |
Show the list of datastores for this virtual machine. | |
Usage: get.disabledmethods vmid | |
Show the list of disabled methods on the virtual machine. | |
Usage: get.environment vmid | |
Retrieves the vm's environment browser. | |
Usage: get.filelayout vmid | |
Show the list of files for this virtual machine. | |
Usage: get.filelayoutex vmid | |
Show the list of files for this virtual machine. | |
Usage: get.guest vmid | |
Get guest information | |
Usage: get.guestheartbeatStatus vmid | |
Show the guest heartbeat status for this virtual machine. | |
Usage: get.managedentitystatus vmid | |
Show the status for the virtual machine. | |
Usage: get.networks vmid | |
Show the list of networks for this virtual machine. | |
Usage: get.runtime vmid | |
Get runtime information | |
Usage: get.snapshotinfo vmid | |
Show the snapshot information for this virtual machine. | |
Usage: get.spaceNeededForConsolidation vmid | |
Estimate the space needed to perform consolidation. | |
Usage: get.summary vmid | |
Retrieves and displays the listsummary status from the vm. | |
Usage: get.tasklist vmid | |
Get list of recent tasks on virtual machine. | |
Usage: getallvms [includeConfigNotAvailable] | |
getallvms | |
Get the list of virtual machines on the host. | |
Usage: vmconstraints | |
Retrieves and displays the constraints object for the host. | |
Usage: message vmid [messageId] [messageChoice] | |
Replies to the current pending question on the vm. | |
Usage: power.getstate vmid | |
Retrieves the power state of the specified virtual machine. | |
Usage: power.hibernate vmid | |
Cause guest to go into standby/hibernate and suspend. | |
Usage: power.off vmid | |
Power off the specified virtual machine. | |
Usage: power.on vmid | |
Power on the specified virtual machine. | |
Usage: power.reboot vmid | |
Reboot the guest OS if tools is running. | |
Usage: power.reset vmid | |
Reset the specified virtual machine. | |
Usage: power.shutdown vmid | |
Shutdown the guest OS | |
Usage: power.suspend vmid | |
Suspend the specified virtual machine. | |
Usage: power.suspendResume vmid | |
Suspend & resume the specified virtual machine. | |
Usage: queryftcompat vmid [faultToleranceType] | |
Query FT compatibility for a VM. | |
Usage: reload vmid | |
Reload the virtual machine state from afresh. | |
Use to pick up hand-edits (powered off) or re-establish a connection (powered on). | |
Usage: setscreenres vmid width height | |
Sets the Console window's resolution. | |
Usage: snapshot.create vmid [snapshotName] [snapshotDescription] [includeMemory] [quiesced] | |
Creates a snapshot for the vm. | |
Usage: snapshot.dumpoption showconfig | |
Set the snapshot dump option. | |
Usage: snapshot.get vmid | |
gets the snapshot info for the vm. | |
Usage: snapshot.remove vmid snapshotId [removeChildren] | |
Remove a snapshot on the vm. | |
Usage: snapshot.removeall vmid | |
Removes all the snapshots on the vm. | |
Usage: snapshot.revert vmid snapshotId suppressPowerOn | |
Revert to a snapshot on the vm. | |
Usage: snapshot.setoption [OPTIONS] vmid | |
Config snapshot behavior on the vm. | |
Options: | |
--locked=bool | |
Whether to lock the snapshot | |
--disabled=bool | |
whether to disable snapshot | |
--action=string | |
The snapshot power-off behavior | |
Usage: tools.cancelinstall vmid | |
Cancel the tools installation process | |
Usage: tools.install vmid | |
Start the tools installation process | |
Usage: tools.upgrade vmid [args] | |
Upgrade VMware Tools in the virtual machine | |
Usage: unregister vmid | |
Unregister the virtual machine | |
Usage: upgrade vmid [vm_hwversion] | |
Upgrade the virtual hardware of the VM if possible. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment