HyperV VM Tasks This chapter contains the following sections: • Add Hyper-V VM Nic, on page 2 • Add VM Disk, on page 3 • Assign/Unassign VM to SCVMM cloud, on page 4 • Clone Hyper-V VM, on page 5 • Create Hyper-V VM Snapshot, on page 6 • Delete All Hyper-V Snapshots, on page 7 • Delete Hyper-V VM, on page 8 • Delete Hyper-V VM Snapshot, on page 9 • Edit Hyper-V VM Nic, on page 10 • Execute Hyper-V VM Power Action, on page 11 • HyperV - Provision a VM without VDC, on page 12 • Manage Hyper-V Resource Allocation, on page 15 • Mark/Unmark Hyper-V Golden snapshot, on page 16 • Provision Hyper-V VM , on page 17 • Provision basic HyperV VM, on page 19 • Remove Hyper-V VM Disk, on page 21 • Remove Hyper-V VM Nic, on page 22 • Resize CPU and Memory, on page 23 • Resize HyperV VM Disk, on page 24 • Resync Hyper-V VM, on page 25 • Revert Hyper-V VM Snapshot, on page 26 HyperV VM Tasks 1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
HyperV VM Tasks
This chapter contains the following sections:
• Add Hyper-V VM Nic, on page 2• Add VM Disk, on page 3• Assign/Unassign VM to SCVMM cloud, on page 4• Clone Hyper-V VM, on page 5• Create Hyper-V VM Snapshot, on page 6• Delete All Hyper-V Snapshots, on page 7• Delete Hyper-V VM, on page 8• Delete Hyper-V VM Snapshot, on page 9• Edit Hyper-V VM Nic, on page 10• Execute Hyper-V VM Power Action, on page 11• HyperV - Provision a VM without VDC, on page 12• Manage Hyper-V Resource Allocation, on page 15• Mark/Unmark Hyper-V Golden snapshot, on page 16• Provision Hyper-V VM , on page 17• Provision basic HyperV VM, on page 19• Remove Hyper-V VM Disk, on page 21• Remove Hyper-V VM Nic, on page 22• Resize CPU and Memory, on page 23• Resize HyperV VM Disk, on page 24• Resync Hyper-V VM, on page 25• Revert Hyper-V VM Snapshot, on page 26
HyperV VM Tasks1
Add Hyper-V VM NicSummary
Add a VM NIC.Description
This task adds a VM NIC. This task is supported for the following versions of SCVMM:
• SCVMM 2012 R2
Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VM on which to performthe action
Select VM
Ygen_text_inputSelect adapter typeAdapter Type
gen_text_inputSelect if need to enable the MACspoofing
Enable MAC Spoofing
YhypervVMNetworkIdentitySelect VM networkVM Network
hypervVMNetworkSubnetIdentity
Select a SubnetSubnet
Select if DHCP is used for VM IPaddress allocation
Use DHCP
hypervPortClassificationIdentity
Select Port ClassificationPort Classification
Outputs
TypeDescriptionOutput
vmID of the VMOUTPUT_VM_ID
hypervVMNicIdentityVM Nic IdentityOUTPUT_VM_NIC_IDENTITY
HyperV VM Tasks2
HyperV VM TasksAdd Hyper-V VM Nic
Add VM DiskSummary
Create a new disk for a VM.Description
This task adds disks to an existing VM. You can configure the size, type and adapters of the disk. Diskscan be only be attached to SCSI adapters.
Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VM on which to perform theaction
Select VM
Ygen_text_inputSpecify the name of the Virtual HardDisk to Add
Disk Name
gen_text_inputSelect the diskDisk
Ygen_text_inputSelect the SCSI controllerSCSI Controller
Ygen_text_inputSelect whether the disk size is fixed ordynamic in nature
Type
Ygen_text_inputSelect the size of the disk in GBSize (GB)
Ygen_text_inputChoose Virtual Hard diskChoose Virtual HardDisk
Outputs
TypeDescriptionOutput
gen_text_inputName of the DiskOUTPUT_HYPERV_VM_DISK
vmID of the VMOUTPUT_VM_ID
HyperV VM Tasks3
HyperV VM TasksAdd VM Disk
Assign/Unassign VM to SCVMM cloudSummary
Assign or unassign a VM to or from an SCVMM cloud.Description
This task assigns or unassigns a VM to or from an SCVMMcloud. This task is supported for the followingversions of SCVMM:
• SCVMM 2012 R2
Inputs
MandatoryMappable To TypeDescriptionInput
YAssign VM to cloudAssign VM to cloud
YvmSelect the VM onwhich to performthe action
Select VM
hypervSCVMMCloudIdentity
Specify SCVMM CloudSelect SCVMM Cloud
Outputs
TypeDescriptionOutput
vmID of the VMOUTPUT_VM_ID
hypervSCVMMCloudIdentity
SCVMM Cloud IdentityOUTPUT_SCVMM_CLOUD_IDENTITY
HyperV VM Tasks4
HyperV VM TasksAssign/Unassign VM to SCVMM cloud
Clone Hyper-V VMSummary
Clone a VM.Description
This task clones a VM. This task is supported for the following versions of SCVMM:
• SCVMM 2012 R2
Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect VMSelect VM
Ycuic_multi_user_group_IDSelect GroupsSelect Groups
YapplicationCategorySelect a vDC CategoryCategory
hyperVVMAppChargeFrequency
Select VM App ChargeFrequency
VMAppCharge Frequency
gen_text_inputEnter Active VM ApplicationCost
Active VM ApplicationCost
gen_text_inputEnter In Active VMApplicationCost
Inactive VM ApplicationCost
YvDCSelect VDCSelect VDC
gen_text_inputEnter VM Name or VM PrefixVM Name or VM Prefix
YvmSelect the VM for which snapshotneed to be created
Select VM
Ygen_text_inputName of the snapshotSnapshot Name
gen_text_inputDescriptionDescription
Outputs
TypeDescriptionOutput
gen_text_inputID of the SnapshotOUTPUT_SNAPSHOT
vmID of the VMOUTPUT_VM_ID
HyperV VM Tasks6
HyperV VM TasksCreate Hyper-V VM Snapshot
Delete All Hyper-V SnapshotsSummary
Delete all the snapshots of a VM.Description
This task deletes all the snapshots of a VM.Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VM on which to performthe action
Select VM
Outputs
No Outputs
HyperV VM Tasks7
HyperV VM TasksDelete All Hyper-V Snapshots
Delete Hyper-V VMSummary
Delete a Hyperv VM.Description
This task deletes and archives a HyperV VM.Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VM to be deletedSelect VM
Outputs
TypeDescriptionOutput
vmID of the VMOUTPUT_VM_ID
HyperV VM Tasks8
HyperV VM TasksDelete Hyper-V VM
Delete Hyper-V VM SnapshotSummary
Delete a VM Snapshot.Description
This task deletes a snapshot of a VM.Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VM for which snapshotneed to be created
Select VM
YsnapshotList of snapshotsSelect Snapshot
Outputs
No Outputs
HyperV VM Tasks9
HyperV VM TasksDelete Hyper-V VM Snapshot
Edit Hyper-V VM NicSummary
Edit a VM NIC.Description
This task edits a VM NIC. This task is supported for the following versions of SCVMM:
• SCVMM 2012 R2
Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VMonwhich to performthe action
Select VM
YhypervVMNicIdentitySelect VM NicSelect VM Nic
Ygen_text_inputSelect adapter typeAdapter Type
gen_text_inputSelect if need to enable the MACspoofing
Enable MAC Spoofing
YhypervVMNetworkIdentitySelect VM networkVM Network
hypervVMNetworkSubnetIdentity
Select a SubnetSubnet
Select if DHCP is used for VM IPaddress allocation
Use DHCP
hypervPortClassificationIdentity
Select Port ClassificationPort Classification
Outputs
TypeDescriptionOutput
vmID of the VMOUTPUT_VM_ID
hypervVMNicIdentityVM Nic IdentityOUTPUT_VM_NIC_IDENTITY
HyperV VM Tasks10
HyperV VM TasksEdit Hyper-V VM Nic
Execute Hyper-V VM Power ActionSummary
Perform a power action on the HyperV instance.Description
This task is used to perform the power actions on the HyperV instance like Power On, Off, Pause, Resume,Reboot, Archive, Restore, Shutdown, Terminate.
Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VM on which toperform the action
Select Instance
YhypervVMPowerActionsVM ActionVM Action
Outputs
No Outputs
HyperV VM Tasks11
HyperV VM TasksExecute Hyper-V VM Power Action
HyperV - Provision a VM without VDCSummary
Provision a HyperV VM without VDC policies and CatalogDescription
This task provisions a new HyperV VMwithout VDC policies and Catalog.It helps to provision the VMby giving parameters required to provision the VM directly. Note: This task is not intended for publishingto the service end user
Enter the VMNics with comma (,) separated in specifictext format - [NIC Alias]@[Adapter Type]@[VMNetwork]@[VM Subnet]@[VLAN Id]@[Is
VM Nics
MACSpoofingEnabled]@[IsDHCPEnabled]@[StaticIP Pool Id]@[PortClassification] Ex -NIC1@Synthetic@CFD_VM_Network_NoIsolation@@66@false@true@@@,NIC2@Synthetic@VM_Network_VLAN@@false@SCVMM-38-2k16;VLANNetworkIPPool;6ae309d0-accf-424b-ae15-d7e691dcdd31@Highbandwidth
YhypervScopeSelectionType
Select the Host Node/Cluster scopeHost Node/Cluster
hypervHostselect the host node on which VM should be provisionedHost
YhyperVDatastoreIdentity
Select datastoreDatastore
gen_text_input
Number of vCPUsNumberOf vCPUs
YBooleanMemory ConfigurationEnable DynamicMemory
gen_text_input
Memory (MB)Memory (MB)
gen_text_input
Memory (MB)Startup Memory(MB)
HyperV VM Tasks13
HyperV VM TasksHyperV - Provision a VM without VDC
MandatoryMappableToType
DescriptionInput
gen_text_input
Memory (MB)MaximumMemory(MB)
gen_text_input
Memory (MB)Memory Buffer(%)
gen_text_input
Memory WeightMemory Weight
gen_text_input
Custom Disk Size (GB)Custom Disk Size(GB)
gen_text_input
Wait for network to be up for a specified amount ofminutes (at the most)
Max Wait forNetwork (mins)
BooleanEnable this option to power the VM after deploymentPower On AfterDeploy
This task marks or unmarks a snapshot as a golden snapshot. A golden snapshot cannot be deleted. Tobe removed, a golden snapshot must be marked as a regular snapshot, then deleted. The output of thistask is the name of the snapshot that was marked (or unmarked).
Inputs
MandatoryMappable To TypeDescriptionInput
YvmSelect the VM on which to perform theaction
Select VM
YsnapshotList of snapshotsSelect Snapshot
BooleanMark or Unmark the selected snapshotas golden snapshot.
Mark As GoldenSnapshot
Outputs
No Outputs
HyperV VM Tasks16
HyperV VM TasksMark/Unmark Hyper-V Golden snapshot
Provision Hyper-V VMSummary
Provision a Hyper-V VM. The host and datastore inputs must be allocated before running this task.Description
This task provisions a Hyper-V VM. The task's host and datastore inputs must be allocated before thetask runs. The task does not validate these resources, and fails if they are not properly allocated andconnected. If you provide both primary and alternate (secondary) resources, the task selects the appropriateresource based on preference rating. To allocate resources in a workflow, see the "Manage Hyper-VResource Allocation" task, which selects optimal primary and secondary hosts and datastores from avDC.
Inputs
MandatoryMappable To TypeDescriptionInput
YSelect name of the HyperV Cloudin this system
Select HyperV Cloud
YcatalogSelect Catalog on which to performthe action
Select Catalog
YvDCSelect vDC on which to performthe action
Select vDC
gen_text_inputVM Name or VM PrefixVM Name or VM Prefix