so it looks like VirtualGuestPackage setAssociatedInstance will do this.
so you'd need to load the associated server instance and store it as an object (Utility storeTargetObject psi), then load the VGP and update it:
blcli_execute VirtualGuestPackage findByDBKey <key>
blcli_execute Utility storeTargetObject vgp
blcli_execute VirtualGuestPackage setAssociatedInstance NAMED_OBJECT=psi
blcli_execute VirtualGuestPackage update NAMED_OBJECT=vgp
should work... i don't have my vcenter env up to test though.
have you been able to resolve this ?
Bill's suggestion isn't that clear to me as we have no associated Server instance at that time.
This is for VGJ that should create brand-new server objects.
Why would you want to update an existing VGJ anyway?