I am trying to add a new disk using "vdiskcreate.pl" to my VM created without any initial disks.
Command is :
"/usr/lib/vmware-vcli/apps/vm/vdiskcreate.pl --server testserver --username testuser --password testpwd --filename testvm --backingtype thin --disksize 40960"
I get the following error:
"Can't call method "key" on an undefined value at /usr/lib/vmware-vcli/apps/vm/vdiskcreate.pl line 82."
But if I add the first disk manually using vCenter and then run the above command to add other disks, it works fine.
Can someone help me?
I basically want to clean the disks after every installation. If not done, the vmdk file size keeps growing.