The dpmhyperv SetVMProperties command lets you change the properties of a VM.
This command has the following format:
dpmhyperv SetVMProperties [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -vm vm_name|-vguid vm_ID [-memory memory_size] [-cpuSocketCount total_CPU_socket_count] [-cpuidLimit CPU_ID_Limit] [-cpufeatlimit CPU_Feature_Limit] [-cpuReserve cpu_reserver] [-cpuReserve cpu_reserve] [-cpuLimit max_CPU_usage] [-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.
Specifies the VM name.
Specifies the unique GUID of the VM.
(Optional) Defines the size of the memory size of the VM in MB.
(Optional) Defines the number of CPU cores in the VM. The CPU cores cannot be more than the total number of the CPU cores available in the Hyper-V host.
(Optional) Indicates whether the VM must lower the CPU identifier for better compatibility with legacy operating systems like Windows NT.
(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 and 10000.
Default: 100
(Optional) Specifies the time interval to wait before performing the start-up action. Options include the following:
Performs no action.
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 is started.
(Optional) Specifies the action to perform on the VM before the Hyper-V host shuts down. Options include the following:
Suspends the VM.
Turns off the VM.
Shuts down the VM.
(Optional) Specifies the action to perform on the VM after the Hyper-V host restarts after an unexpected shutdown. Options include the following:
Performs no action.
Restarts the VM.
Returns to the last 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: Set Properties of a VM
This example changes the number of assigned CPU cores to two.
dpmhyperv -setVMProperties -ws_user dcaadmin -ws_password #test# -hypervHost hserver -vm TestVM -cpus 2
Copyright © 2013 CA. All rights reserved. |
|