Implement set_vm_metadata