Hi all!
When using linked clones, it seems close to impossible to relocate the parent VM unless you connect through SSH to the host and manually update the
parentFileNameHint attribute of the child's linked vmdk.
I'm sure there is a better way to do it, hopefully through the PowerCli.
I looked through the Set-HardDisk command with no success, same with Get-HardDisk and some not so clever code.
I found that the following command would show me the path to the parent disk... so, my first instinct is to see if i can update that attribute, pointing it to the relocated disks from the Parent VM (the example is made with the assumption my linked/child VM is named "MyVM" and that is only has one disk):
(Get-harddisk -vm MyVM).Extensiondata.Backing.Parent
How would I change the parent to point to the correct/new location without having to go edit the .vmdk file directly?
Thanks in advance!
-
Jean-Marc Lagacé
Senior Software Consultant
BancTec (Canada), Inc.
Message was edited by: jean-marc.lag… to make the title more clear