VMware {code} Community
dmhaynes
Enthusiast
Enthusiast

How to specify a new disk backing datastore during a configure/reconfigure

I want to add a new disk to an existing VM using the ReconfigureVM_Task.

What is the recommended syntax for the file?

I have tried '\[MSA-LUN4]Test/Test0001_1.vmdk' and 'sanfs://vmfs_uuid:4564c624-325cfd24-d2f9-000e7f244722/Test/Test0001_1.vmdk' but both formats fail in VirtualCenter.

Looking at the vmware.log file, it looks like I should be providing something like:

[]/vmfs/volumes/4564c624-325cfd24-d2f9-000e7f244722/Test/Test0001_1.vmdk

which I could get by chopping the sanfs://vmds_uuid: from the URL. However, it is unclear to me how this would be generalized for VMFS and NFS data stores.

If anyone has managed to get this to work, it would be great if you could share the knowledge.

Reply
0 Kudos
2 Replies
hrobinson
VMware Employee
VMware Employee

Some of this was covered in the following webinar.

http://www.vmware.com/communities/content/developer/webinar.html

Look for the one on Reconfiguration.

Henry

I'm not sure I understand the statement "both formats fail in Virtual Center"? Are you saying that the reconfig succeeds but they can't be seen in VC?

Reply
0 Kudos
dmhaynes
Enthusiast
Enthusiast

When I use the \[MSA-LUN4]Test/Test0003_1.vmdk format, it works for a ReconfigureVM but not for a CloneVM.

When I use sanfs://..., it works for a CloneVM but not for a ReconfigureVM.

In both error cases, I get an 'Invalid datastore format' error.

It looks like I need to specify one format for the clone and the other for the reconfigure...

Reply
0 Kudos