Extract common code for finding guest network config for machine