Whats the correct syntax for coping a vmdk with PowerCLI? I'd like to do the same as vmkfstools -i

Get-HardDisk Machine1 | Copy-HardDisk "[DS] Machine2/test.vmdk"

Produces: Copy-HardDisk : 21.01.2010 17:59:57 Copy-HardDisk 5285a123-e8b0-06df-984f-6ce1f7c0e080 The operation for the entity failed with the followi ng message: "General fault caused by file. One of the parameters supplied is invalid"

link|improve this question

67% accept rate
You can try the community forums here: communities.vmware.com/community/vmtn/vsphere/automationtools/…. I have PowerCLI loaded locally, and checked the help file, but don't have access to my ESXi server currently to double-check. – Marco Shaw Jan 23 '10 at 11:11
Thanks Marko, thats what i did (See my Answer below) By the way: The copy command fails on (at least unlicenced/free) ESXi.. seems just to work on ESX. – icnivad Jan 24 '10 at 18:25
feedback

1 Answer

up vote 1 down vote accepted

After troubleshooting with help of the VMWare community i found that i need to give the parameter: DestinationStorageFormat Thin with the command. Not sure yet why Thick does not work...

A proper Error Message would saved me a lot of troubleshooting time ;-)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.