The dpmhyperv CreateVMFromTemplate command creates a VM from an SCVMM server template.
This command has the following format:
dpmhyperv CreateTemplateFromVM [-ws_user username] [-ws_password password] [-ws_encrypted_password] [-prompt {yes|no}] -hypervHost hostname -vmname vm_name -template template_name [-dest destination] [-computerName computer_Name] [-ip4addr ip4addr] [-ip4dhcp ip4dhcp] [-ip4dhcpInt ip4dhcpInt] [-ip4mask ip4mask] [-ip4gw ip4gw] [-ip4metric ip4metric] [-ip4dns ip4dns] [-adminPass admin_password] [-productKey product_key] [-userName user_name] [-organization org_name] [-domain domain_name] [-domainAdmin domain_admin_login] [-domainAdminPass domain_admin_password] [-adminUser admin_username] [-startVM start_vm] {-memory memory_size] [cpuSocketCount total_CPU_socket] [-scvmmHost scvmm_host] [-scvmmHardwareProf scvmm_hardware_profile] [-scvmmGuestOSProf scvmm_guest_os_profile] [-auto_deploy autodeploy] [-async] [-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.
(Optional) Specifies whether you are prompted for the user name and password.
Specifies the name of the Hyper-V host.
Specifies the VM name.
Defines the name of the new template.
(Optional) Specifies the destination path where the template is created.
(Optional) Specifies the computer name of the VM.
(Optional) Specifies the static IPv4 address that you want to assign to the VM interface.
(Optional) Specifies whether to use DHCP.
Default: local
(Optional) Specifies the DHCP address.
(Optional) Specifies the subnet mask that you want to assign to the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the option to set the gateway for the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the interface metric that you want to set for the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the DNS server for the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the default administrator password for the VM.
(Optional) Specifies the Windows product activation key for the VM.
(Optional) Specifies the user name of the Windows in the VM.
(Optional) Specifies the organization name of the Windows OS in the VM.
(Optional) Specifies the domain name of the VM.
(Optional) Specifies the domain administrator login.
(Optional) Specifies the password for the domain administrator account. This option is invalid for the asynchronous mode.
(Optional) Specifies the user name that is the member of the default Administrators group.
(Optional) Indicates whether to start the VM.
(Optional) Defines the size of the memory in bytes.
(Optional) Specifies the number of processor sockets in the VM.
(Optional) Specifies the name of the SCVMM server host.
(Optional) Specifies the name of the SCVMM defined hardware profile.
(Optional) Specifies the name of the SCVMM defined guest operating system profile.
(Optional) Indicates automatic deployment.
(Optional) Runs the command in the asynchronous mode.
(Optional) Generates an event before the operation is complete.
(Optional) Generates an event after the operation is complete.
Note: If you are not using the -async mode, the following parameters are ignored: memory, cpuSocketCount, cpuidLimit, cpufeatlimit, cpuReserve, cpuLimit, cpuWeight, startAction, startDelay, stopAction, and recoveryAction.
(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 from a Standalone Server Template
This example creates the VM, "NewVM" using the standalone template, "Win2kSysPrepped."
dpmhyperv createVMFromTemplate -ws_user dcaadmin -ws_password #test# -hypervHost hvserver -vm NewVM -dest c:\VMs\NewBox -template Win2k3SysPrepped -ip4addr 127.0.0.1 -ip4mask 255.255.255.0 -ip4gw 127.0.0.1 -ip4dns 127.0.0.1 -computerName NewBox
Copyright © 2013 CA. All rights reserved. |
|