![]() ![]() ![]() # - Retrieve snapshot tree using try / catch since if it doesn't exist, an exception is generatedįunction Test-SnapshotExists ($SnapshotQuery) ). PS> New-VMFromSnapshot -SourceVM VM01 -CloneName "Clone01" -SnapshotName "Testing" -Cluster "Test Cluster" -Datastore "Datastore01" -VMFolder "Test Clones" -LinkedClone New-VMFromSnapshot -SourceVM VM01 -CloneName "Clone01" -Cluster "Test Cluster" -Datastore "Datastore01" VMware VM Clone via HTML5 Client Results in Incorrectly Configured VMDK Use vSphere Web Client (FLEX) or PowerCLI to perform the clone operation Edit the. Thanks to this post for breaking down a lot of the particulars. New-VMFromSnapshot -SourceVM VM01 -CloneName "Clone01" -SnapshotName "Testing" -Cluster "Test Cluster" -Datastore "Datastore01" -VMFolder "Test Clones" -LinkedClone New-VMFromSnapshot -SourceVM VM01 -CloneName "Clone01" -Cluster "Test Cluster" -Datastore "Datastore01"Ģ) Same as the above, but this time clone from a snapshot named ‘Testing’ and additionally place it in the Virtual Machine folder “Test Clones” and create only a linked clone rather than a full clone. So I put together the below New-VMFromSnapshot function to make this easy to do for a few different scenarios – it supports multiple snapshots to choose from, full and linked clones, and multiple destinations such as cluster, datastore, VM folder:ġ) Clone a VM from the current snapshot of VM01, give it a name Clone01, place it in the cluster ‘Test Cluster’ and Datastore01. The vSphere API contains a Clone_VM task, which includes the ability to specify a snapshot to clone from in the VirtualMachineCloneSpec. Since there is no capability to do this via the GUI, I looked at what was possible via other means, i.e. HashiCorp Certified: Terraform Associate – Exam ExperienceĪ colleague asked me whether it was possible to clone a VM from a particular snapshot. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |