Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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"

share|improve this question
    
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

1 Answer 1

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 ;-)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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