The dpmhv-setVMClustered command lets you add or remove a VM from the shared cluster resources. In Hyper-V server environment, the VMs in a cluster can either be a shared cluster resource or private resource of the Hyper-V server. If the VM is a cluster shared resource, you cannot enable it for Quick or Live Migration between cluster nodes. Also, you cannot migrate the VM resources located on private storage such as virtual disk on a local hard drive, instead of cluster shared storage.
This command has the following format:
dpmhv-setVMClustered -host hostname -vm vmname|-vmid vmguid -clustered {on,off}[-retval] [-silent]
Specifies the name of the Hyper-V server host.
Specifies the name of the VM.
Specifies the unique ID of the VM.
Specifies the sharing mode of the cluster.
VM is a shared cluster resource.
VM is a private resource of the Hyper-V server.
Returns a value for further processing.
Specifies not to direct the output to the screen.
Example: Set a VM in a Cluster
This example adds a VM to the shared cluster resources.
dpmhv-setVMClustered -host hvserver -vm TestVM -clustered on
Copyright © 2013 CA. All rights reserved. |
|