minikube: 9p2000.L mount breaks symbolic link creation: Operation not permitted
Minikube version: v1.2.0
Environment:
OS : MacOS v10.15.5 VM Driver: hyperkit Docker version (e.g. docker -v): 18.09.2, build 6247962 Install tools: brew What happened: I received an error “ln: failed to create symbolic link ‘/test/bar’: Operation not permitted”
What you expected to happen: Create a successful symbolic link
How to reproduce it (as minimally and precisely as possible):
cd $HOME
touch foo
minikube start --vm-driver hyperkit --mount --mount-string $HOME:/test
minikube ssh -- ln -s /test/foo /test/bar
Anything else do we need to know: This is important to me because I try and do things like npm install inside the container (for local development), and I’ll get errors about it not being able to make symbolic links.
This reopens issue #890
This is happening with the Hyperkit driver but I suspect may happen with other drivers as well.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 9
- Comments: 20 (6 by maintainers)
Yeah I would love to see an alternative. Unfortunately the work around above doesn’t really help very much because the 9p2000.u version has issues with permissions, so it introduces a host of other problems.
Very interesting find seems to relate to: https://github.com/kubernetes/minikube/pull/3796
The following works:
This means that there was some defect introduced with the switch to version L that prevents symbolic links from functioning.
Im getting the same issue with minikube v1.16.0 on Darwin(macOS) 11.1 using the hyperkit driver
/remove-lifecycle stale
still a problem AFAIK
Still an issue in v1.4.
Use a directory on the VM, that is not mounted from remote (host). For instance, by copying the directory to a different location.
Sorry for the delay, so from the test I just ran today:
Status
kvm2andvirtualbox, issue is still there:none, not tested because of:Context
@hadrien-toma were you able to upgrade and test this out?
@hadrien-toma do you mind trying with our latest release > 1.7.3 ?
I can confirm this on kvm2 & Linux. The current mount interface is driver agnostic.
Thanks for discovering a workaround! I’ll add this to the long list of bugs related to go9p. We really need an alternative approach for mounting files.