Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallels: minikube mount: attempted to get host ip address for unsupported driver #4862

Closed
dcecile opened this issue Jul 24, 2019 · 11 comments · Fixed by #8259
Closed

parallels: minikube mount: attempted to get host ip address for unsupported driver #4862

dcecile opened this issue Jul 24, 2019 · 11 comments · Fixed by #8259
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@dcecile
Copy link

dcecile commented Jul 24, 2019

Running minikube mount with the parallels driver gives this error message:

💣  Error getting the host IP address to use from within the VM: Error, attempted to get host ip address for unsupported driver

According to the docs, this is preferred over relying on driver-specific mounting.

It's an issue for me right now because I can't figure out how to get share folders enabled through the Parallels UI to show up on the Minikube VM.

@afbjorklund
Copy link
Collaborator

How to get the host IP is unfortunately not covered by libmachine API at the moment...
That is: how to get the address of the host running minikube, as seen from inside the VM.

There is a workaround in minikube, but it needs driver-specific code in order to do it:

pkg/minikube/cluster/cluster.go#GetVMHostIP

So it needs an entry for parallels, how to find it ?

If you know the command, then please add it here.

@afbjorklund afbjorklund added kind/feature Categorizes issue or PR as related to a new feature. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jul 25, 2019
@dcecile
Copy link
Author

dcecile commented Jul 29, 2019

@afbjorklund It seems like the command might not work properly, and that the reliable way to do it is to install Parallels Tools inside the VM first then remotely execute ip address show dev eth1 | grep .... Equivalently, we could use minikube ssh to do remote execution of ip address. (I tested that minikube ssh works with Parallels.)

Actually it seems like the libmachine API might support getting the host IP now: Driver.GetIP

Do you think that it would work to use Driver.GetIP?

@afbjorklund
Copy link
Collaborator

afbjorklund commented Jul 29, 2019

As long as you get the host IP and not just the machine IP, it should be fine.
The only driver using GetIP is VMware, and then replaces the last digit with "1".

For instance, for the default VirtualBox the machine IP starts at 192.168.99.100
And the vboxnet0 interface (hostonlyadapter2) normally gets adress 192.168.99.1

https://www.virtualbox.org/manual/ch06.html#networkingmodes

When host-only networking is used, Oracle VM VirtualBox creates a new software interface on the host which then appears next to your existing network interfaces. In other words, whereas with bridged networking an existing physical interface is used to attach virtual machines to, with host-only networking a new loopback interface is created on the host. And whereas with internal networking, the traffic between the virtual machines cannot be seen, the traffic on the loopback interface on the host can be intercepted.

@tstromberg
Copy link
Contributor

This sounds reasonable. PR's welcome!

@tstromberg tstromberg changed the title minikube mount support for Parallels parallels: minikube mount: attempted to get host ip address for unsupported driver Aug 1, 2019
@tstromberg tstromberg added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Aug 1, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 30, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 29, 2019
@tstromberg
Copy link
Contributor

This would require adding parallels support to pkg/minikube/cluster/cluster.go#GetVMHostIP - probably a 1-line fix at most. Help wanted!

@tstromberg tstromberg removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Dec 16, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 16, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 15, 2020
@sharifelgamal
Copy link
Collaborator

Help still wanted!

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Apr 22, 2020
@legal90
Copy link
Contributor

legal90 commented May 23, 2020

Hi all,
Here is the fix for this issue: #8259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants