New virtual machine on an ESX(i) or Hyper-V host

vmname

--vmname=<virtual machine name>

Name of a new virtual machine.

vmstorage

--vmstorage=<path>

Location of the new virtual machine.

  • When creating a virtual machine on an ESX(i) server, specify the name of the datastore.

    Example:

    --vmstorage=Storage_1
  • When creating a virtual machine on a Hyper-V server, specify the path to the server's local folder.

    Example:

    --vmstorage=C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines

vmserver_name

--vmserver_name=<server name>

Name of the ESX(i) or Hyper-V server or cluster where a virtual machine will be created. To learn names of virtualization servers or clusters, use the list vmservers command. The --vmserver_name and --vmserver_id parameters are mutually exclusive.

vmserver_id

--vmserver_id=<server GUID>

Identifier of the ESX(i) or Hyper-V server or cluster where a virtual machine will be created. To learn identifiers of virtualization servers or clusters, use the list vmservers command. The --vmserver_id and --vmserver_name parameters are mutually exclusive.

Virtual machine configuration