Add metadata and set hostname of generated VMs.