VMware {code} Community
virtualbob1
Contributor
Contributor

Add existing vmdk to VM using VI Perl toolkit

HI,

Is there a way to use the toolkit to add an existing hard disk file to an existing virtual machine? I see functions for adding new disks, but nothing that is already created.

Thanks

Reply
0 Kudos
4 Replies
tos2k
Expert
Expert

Hi!

Have a look on http://communities.vmware.com/message/840108

Here you can see how the datastore and the filename for an existing vmdk file is set.

Tos2k

Reply
0 Kudos
rub1
Contributor
Contributor

Hallo

I am trying now to do the same implementation , adding existing vmdk to existing virtual

machine using perl cli .

did you succeed to make a working code to do this job ??

thanks in advanced

Rubens, Germany

Reply
0 Kudos
lamw
Community Manager
Community Manager

Take a look at this script:

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

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

VMware Developer Comuunity

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

Reply
0 Kudos
mshamma
Contributor
Contributor

What script? (No links no attachments)

Reply
0 Kudos