added os differentiation for opening virtual network interface