diff --git a/pkg/minikube/cluster/ip.go b/pkg/minikube/cluster/ip.go index aa14e4cf7180..1b42cce14198 100644 --- a/pkg/minikube/cluster/ip.go +++ b/pkg/minikube/cluster/ip.go @@ -72,6 +72,25 @@ func HostIP(host *host.Host) (net.IP, error) { re = regexp.MustCompile(`(?s)Name:\s*` + iface + `.+IPAddress:\s*(\S+)`) ip := re.FindStringSubmatch(string(ipList))[1] return net.ParseIP(ip), nil + case driver.Parallels: + bin := "prlsrvctl" + var binPath string + if fullPath, err := exec.LookPath(bin); err != nil { + binPath = fullPath + } else { + binPath = bin + } + out, err := exec.Command(binPath, "net", "info", "Shared").Output() + if err != nil { + return []byte{}, errors.Wrap(err, "Error reading the info of Parallels Shared network interface") + } + re := regexp.MustCompile(`IPv4 address: (.*)`) + ipMatch := re.FindStringSubmatch(string(out)) + if len(ipMatch) < 2 { + return []byte{}, errors.Wrap(err, "Error getting the IP address of Parallels Shared network interface") + } + ip := ipMatch[1] + return net.ParseIP(ip), nil case driver.HyperKit: return net.ParseIP("192.168.64.1"), nil case driver.VMware: diff --git a/pkg/minikube/driver/driver_linux.go b/pkg/minikube/driver/driver_linux.go index dea2a80e18a8..16e7b5e706de 100644 --- a/pkg/minikube/driver/driver_linux.go +++ b/pkg/minikube/driver/driver_linux.go @@ -23,7 +23,6 @@ import ( // supportedDrivers is a list of supported drivers on Linux. var supportedDrivers = []string{ VirtualBox, - Parallels, VMwareFusion, KVM2, VMware,