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

Fix mounting on QEMU with socket_vmnet #15108

Merged
merged 4 commits into from
Oct 11, 2022

Conversation

spowelljr
Copy link
Member

@spowelljr spowelljr commented Oct 11, 2022

Closes #15107

Before:

$ minikube mount ./thing:/mount123
๐Ÿ“  Mounting host path ./thing into VM as /mount123 ...
    โ–ช Mount type:   
    โ–ช User ID:      docker
    โ–ช Group ID:     docker
    โ–ช Version:      9p2000.L
    โ–ช Message Size: 262144
    โ–ช Options:      map[]
    โ–ช Bind Address: 192.168.105.6:58140
๐Ÿš€  Userspace file server: ufs starting
๐Ÿ›‘  Userspace file server is shutdown

โŒ  Exiting due to GUEST_MOUNT: mount with cmd /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=58140,trans=tcp,version=9p2000.L 192.168.105.6 /mount123" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=58140,trans=tcp,version=9p2000.L 192.168.105.6 /mount123": Process exited with status 32
stdout:

stderr:
mount: /mount123: mount(2) system call failed: Connection refused.


โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                                                        โ”‚
โ”‚    ๐Ÿ˜ฟ  If the above advice does not help, please let us know:                                                          โ”‚
โ”‚    ๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new/choose                                                        โ”‚
โ”‚                                                                                                                        โ”‚
โ”‚    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.                                 โ”‚
โ”‚    Please also attach the following file to the GitHub issue:                                                          โ”‚
โ”‚    - /var/folders/9l/6wpxv6wd1b901m1146r579wc00rqw3/T/minikube_mount_6b51cf7e154ef7ec9dd71a511f021b37ee49a5f9_0.log    โ”‚
โ”‚                                                                                                                        โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

After:

$ minikube mount ./thing:/mount123
๐Ÿ“  Mounting host path ./thing into VM as /mount123 ...
    โ–ช Mount type:   
    โ–ช User ID:      docker
    โ–ช Group ID:     docker
    โ–ช Version:      9p2000.L
    โ–ช Message Size: 262144
    โ–ช Options:      map[]
    โ–ช Bind Address: 192.168.105.1:59680
๐Ÿš€  Userspace file server: ufs starting
โœ…  Successfully mounted ./thing to /mount123

๐Ÿ“Œ  NOTE: This process must stay alive for the mount to be accessible ...

Trying to mount on user network:

$ minikube mount ./thing:/mount123

โŒ  Exiting due to MK_UNIMPLEMENTED: minikube mount is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 11, 2022
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 11, 2022
pkg/minikube/cluster/ip.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 11, 2022
pkg/minikube/cluster/ip.go Outdated Show resolved Hide resolved
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh, spowelljr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get minikube mount working with QEMU and socket_vmnet
3 participants