VMware Cloud Community
opetnor
Contributor
Contributor

Move-VM does not keep independent disks

Hi were creating new vms thru powercli, and add a new HDD with:

New-HardDisk -VM $myvm -CapacityGB 20 -StorageFormat EagerZeroedThick -Persistence IndependentPersistent

but when we later move this vm with:

Move-VM -VM $myvm -Datastore $myDatastoreCluster1

the disk gets dependent instead of  IndependentPersistent, when you move it via GUI you have the choice of "same format as source" how can we fix this with Move-VM?

This is also decribed as sort of a bug here:

VMware Knowledge Base

0 Kudos
1 Reply
LucD
Leadership
Leadership

You can use the solution described in the KB, detach the harddisk and then attach it again with the correct persistence.
Or you use the RelocateVM method, where you caN specify per harddisk how and what shall be moved.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos