When building the VirtualMachineRelocateSpec the datastore property is a ManagedObjectReference to a Datastore. We were setting the value to a simple String rather than a VimString with the proper xsiType/vimType.
This would have broken when we moved from having VimString in ems_ref as a serialized yaml column and added ems_ref_obj.
When building the
VirtualMachineRelocateSpec
thedatastore
property is aManagedObjectReference
to aDatastore
. We were setting the value to a simpleString
rather than aVimString
with the properxsiType
/vimType
.This would have broken when we moved from having VimString in ems_ref as a serialized yaml column and added ems_ref_obj.
This causes the clone to fail when using a vcsim (https://github.com/vmware/govmomi/tree/main/vcsim)
Depends on: