Refactored connection establishment for hypervisor