Upload image with the correct homepage of this cpi, Check if network id is specified, save the agentId in the vm metadata