VMware Cloud Community
ii00907
Contributor
Contributor

Problem with vdiskcreate.pl

Hello everyone,

I have a problem with the VMA when launching the command vdiskcreate.pl comes back to me the following message?

$ perl vdiskcreate.pl --server 111.23.42.001 --username root --password passw0rd --vmname Test --filename Test1

Can't call method "key" on an undefined value at vdiskcreate.pl line 82.

End Disconnect

$

And also as' the syntax for attaching a rdmp?

what should I put on --filename xxx ?

Can you help?

0 Kudos
3 Replies
lamw
Community Manager
Community Manager

Here is some additional documentation on the vSphere SDK for Perl Utilities: http://www.vmware.com/support/developer/viperltoolkit/viperl40/doc/vsperl_util_index.html that may help

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

navadavuluri
Contributor
Contributor

See if this post helps: http://communities.vmware.com/thread/213276

The answer of this post seems to have worked.

Thanks,

Nava

http://communities.vmware.com/community/developer/codecentral
0 Kudos
ii00907
Contributor
Contributor

Ok,

for simple vmdk but for create a rdm ?

Maybe I'm wrong syntax. I use vsphere4, can you help?

I do not understand, on 'option --filename, what should I put.

I tried

perl vdiskcreate.pl --server 133.22.11.211 --username root --password passw0rd --vmname Test_IVAN --filename vml.02000000006006016055351f00506decc0459cde11524149442035 --backingtype rdm

Error; Incompatible device backing specified for device.

perl vdiskcreate.pl --server 172.23.42.211 --username root --password passw0rd --vmname Test_IVAN --filename /vmfs/devices/disks/vml.02000100006006016055351f00516decc0459cde11524149442035 --backingtype rdm

Error; Incompatible device backing specified for device.

I do not know what to do, help!

0 Kudos