The dpmhyperv CreateVM command creates a VM on a Hyper-V host.
This command has the following format:
dpmhyperv CreateVM [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname [-templatevm vm_template]| [-templatevmguid template_ID] [-path location] [-memory memory_size] [-cpuSocketCount total_CPU_socket_count] [-cpuidLimit] [-cpufeatlimit] [-cpuReserve cpu_reserve] [-cpuLimit max_CPU_resources] [-cpuWeight cpu_wieight] [-startAction {none|auto|always}] [-startDelay start_delay_secs] [-stopAction {save|off|shutdown}] [-recoveryAction {none|restart|revert}] [-pre] [-post] [-locale iso639value]
(Optional) Specifies the CA Server Automation user name.
(Optional) Specifies the CA Server Automation user password.
(Optional) Indicates whether the CA Server Automation password is encrypted.
Specifies the name of the Hyper-V host.
(Optional) Specifies the name of the VM from which you want to copy the configuration. This parameter identifies an existing VM in the Hyper-V environment and not a template from the VM catalog.
Note: We do not recommend creating VMs from the existing VMs because the shared resources results in potential conflicts.
(Optional) Specifies the GUID of the VM from which you want to copy the configuration. This parameter identifies an existing VM in the Hyper-V environment and not a template from the VM catalog.
Note: We do not recommend creating VMs from the existing VMs because the shared resources results in potential conflicts.
(Optional) Defines the full path of the new VM.
(Optional) Defines the memory size of the VM in MB.
(Optional) Defines the number of CPU cores in the VM. The number of the CPU cores of the VM cannot be more than the total number of the CPU cores available in the Hyper-V host.
(Optional) Indicates whether the processor must limit the maximum CPUID value.
(Optional) Indicates whether the VM must limit the CPU features exposed to the operating system.
(Optional) Specifies the amount of CPU resources that are reserved for use by the VM.
(Optional) Specifies the maximum amount of CPU resources that the VM can consume.
(Optional) Specifies the relative weight of the virtual machine from 1 to 10000.
Default: 100
(Optional) Specifies the action to perform after the VM startup. Options include the following:
Performs no action on the VM.
Starts the VM automatically if it was running before the Hyper-V host was shut down.
Starts the VM every time Hyper-V starts.
(Optional) Specifies the delay in seconds to start the VM after the Hyper-V host starts up.
(Optional) Specifies the action to perform on the VM before the Hyper-V host stops. Options include the following:
Suspends the VM.
Turns off the VM.
Shuts down the VM. To use this option, the Hyper-V tools must be installed.
(Optional) Specifies the action to perform on the VM after the VM worker process terminates abnormally and recovers. Options include the following:
Performs no action.
Restarts the VM.
Returns to the last snapshot. To use this option, the VM should have at least one snapshot.
(Optional) Generates an event before the operation is complete.
(Optional) Generates an event after the operation is complete.
(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".
Example: Create a VM
This example creates the VM, "TestVM" in the "VM" folder.
dpmhyperv CreateVM -ws_user dcaadmin -ws_password #test# -hypervHost hvserver -name TestVM -path c:\VM\TestVM
Copyright © 2013 CA. All rights reserved. |
|