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

minikube mount does not work on 6.1.0-20-cloud-amd64 - Detect when OS does not support 9p #18724

Open
mplsgrant opened this issue Apr 22, 2024 · 6 comments
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@mplsgrant
Copy link

mplsgrant commented Apr 22, 2024

What Happened?

Context

uname -a: Linux ... 6.1.0-20-cloud-amd64

Issue

minikube mount /path/on/host:/path/on/vm gives the following error:

* Mounting host path /path/on/host:/path/on/vm into VM as /path/on/vm ...
  - Mount type:   9p
  - User ID:      docker
  - Group ID:     docker
  - Version:      9p2000.L
  - Message Size: 262144
  - Options:      map[]
  - Bind Address: 192.168.49.1:38555
* Userspace file server: ufs starting

X Exiting due to GUEST_MOUNT: mount failed: 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=38555,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=38555,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src": Process exited with status 32
stdout:

stderr:
mount: /mnt/src: unknown filesystem type '9p'.

* 
╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                             │
│    * 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:                             │
│    * - /tmp/minikube_mount_023e88ab625ae663cd8c4db19e48c697f3cfa424_0.log                   │
│                                                                                             │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯

Cause

I believe the debian cloud image does not (and will not) include 9p:

Virtio-fs appears to be the future for this type of use-case, and we do enable this for bullseye cloud kernels. I'd much rather encourage its use instead of the crufty old abuse of a network filesystem that is 9p.

The mount command does work with ubuntu. Here's the view from ubuntu and from debian which shows the different kernels in use.

grant@local:~/$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 23.10"
<snip>
grant@local:~/$ minikube ssh
docker@minikube:~$ lsmod | grep 9p
9pnet_fd               20480  1
9p                     77824  1
9pnet                 106496  2 9p,9pnet_fd
fscache               389120  1 9p
netfs                  61440  2 9p,fscache
docker@minikube:~$ uname -a
Linux minikube 6.5.0-1016-gcp #16-Ubuntu SMP Fri Mar  8 20:37:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
grant@local:~/$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
<snip>
grant@local:~/$ minikube ssh
docker@minikube:~$ lsmod | grep 9p
docker@minikube:~$ 
docker@minikube:~$ uname -a
Linux minikube 6.1.0-20-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 x86_64 x86_64 GNU/Linux

Attach the log file

log file

Log file created at: 2024/04/22 14:36:43
Running on machine: machine-ready-20240420-020624
Binary: Built with gc go1.22.1 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0422 14:36:43.016777 5138 out.go:291] Setting OutFile to fd 1 ...
I0422 14:36:43.016948 5138 out.go:343] isatty.IsTerminal(1) = false
I0422 14:36:43.016954 5138 out.go:304] Setting ErrFile to fd 2...
I0422 14:36:43.016961 5138 out.go:343] isatty.IsTerminal(2) = false
I0422 14:36:43.017277 5138 root.go:338] Updating PATH: /home/USER/.minikube/bin
W0422 14:36:43.017426 5138 root.go:314] Error reading config file at /home/USER/.minikube/config/config.json: open /home/USER/.minikube/config/config.json: no such file or directory
I0422 14:36:43.017621 5138 mustload.go:65] Loading cluster: minikube
I0422 14:36:43.018109 5138 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.30.0
I0422 14:36:43.019037 5138 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0422 14:36:43.042359 5138 host.go:66] Checking if "minikube" exists ...
I0422 14:36:43.042738 5138 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0422 14:36:43.153818 5138 info.go:266] docker info: {ID:7fe2a9e9-e2e1-4517-b90f-5bc4edddc88e Containers:5 ContainersRunning:1 ContainersPaused:0 ContainersStopped:4 Images:7 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus: Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization: Log:[awslogs fluentd gcplogs gelf journald json-file local splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:false CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:32 OomKillDisable:false NGoroutines:51 SystemTime:2024-04-22 14:36:43.13752583 +0000 UTC LoggingDriver:json-file CgroupDriver:systemd NEventsListener:0 KernelVersion:6.1.0-20-cloud-amd64 OperatingSystem:Debian GNU/Linux 12 (bookworm) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:2 MemTotal:4119568384 GenericResources: DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:machine-ready-20240420-020624 Labels:[] ExperimentalBuild:false ServerVersion:26.0.2 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e377cd56a71523140ca6ae87e30244719194a521 Expected:e377cd56a71523140ca6ae87e30244719194a521} RuncCommit:{ID:v1.1.12-0-g51d5e94 Expected:v1.1.12-0-g51d5e94} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=apparmor name=seccomp,profile=builtin name=cgroupns] ProductLicense: Warnings: ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.14.0] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.26.1]] Warnings:}}
I0422 14:36:43.154118 5138 cli_runner.go:164] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0422 14:36:43.197163 5138 out.go:177] * Mounting host path /home/USER/machine into VM as /mnt/src ...
I0422 14:36:43.198521 5138 out.go:177] - Mount type: 9p
I0422 14:36:43.201301 5138 out.go:177] - User ID: docker
I0422 14:36:43.202697 5138 out.go:177] - Group ID: docker
I0422 14:36:43.204026 5138 out.go:177] - Version: 9p2000.L
I0422 14:36:43.205444 5138 out.go:177] - Message Size: 262144
I0422 14:36:43.206658 5138 out.go:177] - Options: map[]
I0422 14:36:43.207836 5138 out.go:177] - Bind Address: 192.168.49.1:39321
I0422 14:36:43.209019 5138 out.go:177] * Userspace file server:
I0422 14:36:43.209627 5138 ssh_runner.go:195] Run: /bin/bash -c "[ "x$(findmnt -T /mnt/src | grep /mnt/src)" != "x" ] && sudo umount -f /mnt/src || echo "
I0422 14:36:43.210449 5138 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0422 14:36:43.241080 5138 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:32772 SSHKeyPath:/home/USER/.minikube/machines/minikube/id_rsa Username:docker}
I0422 14:36:43.346285 5138 mount.go:180] unmount for /mnt/src ran successfully
I0422 14:36:43.346307 5138 ssh_runner.go:195] Run: /bin/bash -c "sudo mkdir -p /mnt/src"
I0422 14:36:43.364350 5138 ssh_runner.go:195] Run: /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=39321,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src"
I0422 14:36:43.402417 5138 out.go:177]
W0422 14:36:43.403719 5138 out.go:239] X Exiting due to GUEST_MOUNT: mount failed: 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=39321,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=39321,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src": Process exited with status 32
stdout:

stderr:
mount: /mnt/src: unknown filesystem type '9p'.

W0422 14:36:43.403789 5138 out.go:239] *
W0422 14:36:43.406302 5138 out.go:239] ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ * 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: │
│ * - /tmp/minikube_mount_023e88ab625ae663cd8c4db19e48c697f3cfa424_0.log │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
I0422 14:36:43.407573 5138 out.go:177]
Log file created at: 2024/04/22 17:14:23
Running on machine: machine-ready-20240420-020624
Binary: Built with gc go1.22.1 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0422 17:14:23.345699 59128 out.go:291] Setting OutFile to fd 1 ...
I0422 17:14:23.347153 59128 out.go:343] isatty.IsTerminal(1) = true
I0422 17:14:23.347162 59128 out.go:304] Setting ErrFile to fd 2...
I0422 17:14:23.347167 59128 out.go:343] isatty.IsTerminal(2) = true
I0422 17:14:23.347381 59128 root.go:338] Updating PATH: /home/USER/.minikube/bin
W0422 17:14:23.347520 59128 root.go:314] Error reading config file at /home/USER/.minikube/config/config.json: open /home/USER/.minikube/config/config.json: no such file or directory
I0422 17:14:23.347706 59128 mustload.go:65] Loading cluster: minikube
I0422 17:14:23.348113 59128 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.30.0
I0422 17:14:23.348597 59128 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0422 17:14:23.368540 59128 host.go:66] Checking if "minikube" exists ...
I0422 17:14:23.368906 59128 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0422 17:14:23.452990 59128 info.go:266] docker info: {ID:7fe2a9e9-e2e1-4517-b90f-5bc4edddc88e Containers:9 ContainersRunning:3 ContainersPaused:0 ContainersStopped:6 Images:9 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus: Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization: Log:[awslogs fluentd gcplogs gelf journald json-file local splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:false CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:50 OomKillDisable:false NGoroutines:77 SystemTime:2024-04-22 17:14:23.439094946 +0000 UTC LoggingDriver:json-file CgroupDriver:systemd NEventsListener:0 KernelVersion:6.1.0-20-cloud-amd64 OperatingSystem:Debian GNU/Linux 12 (bookworm) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:2 MemTotal:4119568384 GenericResources: DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:machine-ready-20240420-020624 Labels:[] ExperimentalBuild:false ServerVersion:26.0.2 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e377cd56a71523140ca6ae87e30244719194a521 Expected:e377cd56a71523140ca6ae87e30244719194a521} RuncCommit:{ID:v1.1.12-0-g51d5e94 Expected:v1.1.12-0-g51d5e94} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=apparmor name=seccomp,profile=builtin name=cgroupns] ProductLicense: Warnings: ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.14.0] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.26.1]] Warnings:}}
I0422 17:14:23.453210 59128 cli_runner.go:164] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0422 17:14:23.472944 59128 out.go:177] 📁 Mounting host path /home/USER/machine into VM as /mnt/src ...
I0422 17:14:23.474383 59128 out.go:177] ▪ Mount type: 9p
I0422 17:14:23.475735 59128 out.go:177] ▪ User ID: docker
I0422 17:14:23.477248 59128 out.go:177] ▪ Group ID: docker
I0422 17:14:23.478846 59128 out.go:177] ▪ Version: 9p2000.L
I0422 17:14:23.480276 59128 out.go:177] ▪ Message Size: 262144
I0422 17:14:23.481615 59128 out.go:177] ▪ Options: map[]
I0422 17:14:23.482990 59128 out.go:177] ▪ Bind Address: 192.168.49.1:34701
I0422 17:14:23.484196 59128 out.go:177] 🚀 Userspace file server:
I0422 17:14:23.484343 59128 ssh_runner.go:195] Run: /bin/bash -c "[ "x$(findmnt -T /mnt/src | grep /mnt/src)" != "x" ] && sudo umount -f /mnt/src || echo "
I0422 17:14:23.485658 59128 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0422 17:14:23.505889 59128 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:32772 SSHKeyPath:/home/USER/.minikube/machines/minikube/id_rsa Username:docker}
I0422 17:14:23.605450 59128 mount.go:180] unmount for /mnt/src ran successfully
I0422 17:14:23.605474 59128 ssh_runner.go:195] Run: /bin/bash -c "sudo mkdir -p /mnt/src"
I0422 17:14:23.619539 59128 ssh_runner.go:195] Run: /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=34701,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src"
I0422 17:14:23.649113 59128 out.go:177]
W0422 17:14:23.650560 59128 out.go:239] ❌ Exiting due to GUEST_MOUNT: mount failed: 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=34701,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=34701,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src": Process exited with status 32
stdout:

stderr:
mount: /mnt/src: unknown filesystem type '9p'.

W0422 17:14:23.650590 59128 out.go:239]
W0422 17:14:23.652609 59128 out.go:239] ╭───────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ 😿 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: │
│ - /tmp/minikube_mount_023e88ab625ae663cd8c4db19e48c697f3cfa424_0.log │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
I0422 17:14:23.654039 59128 out.go:177]
Log file created at: 2024/04/22 17:20:59
Running on machine: machine-ready-20240420-020624
Binary: Built with gc go1.22.1 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0422 17:20:59.453061 61791 out.go:291] Setting OutFile to fd 1 ...
I0422 17:20:59.453254 61791 out.go:343] isatty.IsTerminal(1) = false
I0422 17:20:59.453260 61791 out.go:304] Setting ErrFile to fd 2...
I0422 17:20:59.453268 61791 out.go:343] isatty.IsTerminal(2) = false
I0422 17:20:59.453572 61791 root.go:338] Updating PATH: /home/USER/.minikube/bin
W0422 17:20:59.453770 61791 root.go:314] Error reading config file at /home/USER/.minikube/config/config.json: open /home/USER/.minikube/config/config.json: no such file or directory
I0422 17:20:59.453983 61791 mustload.go:65] Loading cluster: minikube
I0422 17:20:59.454469 61791 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.30.0
I0422 17:20:59.455233 61791 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0422 17:20:59.490699 61791 host.go:66] Checking if "minikube" exists ...
I0422 17:20:59.491063 61791 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0422 17:20:59.620835 61791 info.go:266] docker info: {ID:7fe2a9e9-e2e1-4517-b90f-5bc4edddc88e Containers:9 ContainersRunning:3 ContainersPaused:0 ContainersStopped:6 Images:9 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus: Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization: Log:[awslogs fluentd gcplogs gelf journald json-file local splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:false CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:50 OomKillDisable:false NGoroutines:77 SystemTime:2024-04-22 17:20:59.602541928 +0000 UTC LoggingDriver:json-file CgroupDriver:systemd NEventsListener:0 KernelVersion:6.1.0-20-cloud-amd64 OperatingSystem:Debian GNU/Linux 12 (bookworm) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:2 MemTotal:4119568384 GenericResources: DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:machine-ready-20240420-020624 Labels:[] ExperimentalBuild:false ServerVersion:26.0.2 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e377cd56a71523140ca6ae87e30244719194a521 Expected:e377cd56a71523140ca6ae87e30244719194a521} RuncCommit:{ID:v1.1.12-0-g51d5e94 Expected:v1.1.12-0-g51d5e94} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=apparmor name=seccomp,profile=builtin name=cgroupns] ProductLicense: Warnings: ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.14.0] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.26.1]] Warnings:}}
I0422 17:20:59.621025 61791 cli_runner.go:164] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0422 17:20:59.650241 61791 out.go:177] * Mounting host path /home/USER/machine into VM as /mnt/src ...
I0422 17:20:59.651875 61791 out.go:177] - Mount type: 9p
I0422 17:20:59.653290 61791 out.go:177] - User ID: docker
I0422 17:20:59.654687 61791 out.go:177] - Group ID: docker
I0422 17:20:59.656016 61791 out.go:177] - Version: 9p2000.L
I0422 17:20:59.657476 61791 out.go:177] - Message Size: 262144
I0422 17:20:59.658912 61791 out.go:177] - Options: map[]
I0422 17:20:59.660370 61791 out.go:177] - Bind Address: 192.168.49.1:38219
I0422 17:20:59.661804 61791 out.go:177] * Userspace file server:
I0422 17:20:59.661860 61791 ssh_runner.go:195] Run: /bin/bash -c "[ "x$(findmnt -T /mnt/src | grep /mnt/src)" != "x" ] && sudo umount -f /mnt/src || echo "
I0422 17:20:59.663165 61791 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0422 17:20:59.704656 61791 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:32772 SSHKeyPath:/home/USER/.minikube/machines/minikube/id_rsa Username:docker}
I0422 17:20:59.818239 61791 mount.go:180] unmount for /mnt/src ran successfully
I0422 17:20:59.818261 61791 ssh_runner.go:195] Run: /bin/bash -c "sudo mkdir -p /mnt/src"
I0422 17:20:59.836794 61791 ssh_runner.go:195] Run: /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=38219,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src"
I0422 17:20:59.867551 61791 out.go:177]
W0422 17:20:59.868943 61791 out.go:239] X Exiting due to GUEST_MOUNT: mount failed: 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=38219,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=38219,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src": Process exited with status 32
stdout:

stderr:
mount: /mnt/src: unknown filesystem type '9p'.

W0422 17:20:59.868967 61791 out.go:239] *
W0422 17:20:59.871733 61791 out.go:239] ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ * 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: │
│ * - /tmp/minikube_mount_023e88ab625ae663cd8c4db19e48c697f3cfa424_0.log │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
I0422 17:20:59.873167 61791 out.go:177]
Log file created at: 2024/04/22 18:19:26
Running on machine: machine-ready-20240420-020624
Binary: Built with gc go1.22.1 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0422 18:19:26.603848 83054 out.go:291] Setting OutFile to fd 1 ...
I0422 18:19:26.605268 83054 out.go:343] isatty.IsTerminal(1) = false
I0422 18:19:26.605278 83054 out.go:304] Setting ErrFile to fd 2...
I0422 18:19:26.605287 83054 out.go:343] isatty.IsTerminal(2) = false
I0422 18:19:26.605616 83054 root.go:338] Updating PATH: /home/USER/.minikube/bin
I0422 18:19:26.605653 83054 oci.go:576] shell is pointing to dockerd inside minikube. will unset to use host
W0422 18:19:26.605822 83054 root.go:314] Error reading config file at /home/USER/.minikube/config/config.json: open /home/USER/.minikube/config/config.json: no such file or directory
I0422 18:19:26.606034 83054 mustload.go:65] Loading cluster: minikube
I0422 18:19:26.606595 83054 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.30.0
I0422 18:19:26.607272 83054 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0422 18:19:26.636014 83054 host.go:66] Checking if "minikube" exists ...
I0422 18:19:26.636372 83054 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0422 18:19:26.769543 83054 info.go:266] docker info: {ID:7fe2a9e9-e2e1-4517-b90f-5bc4edddc88e Containers:9 ContainersRunning:3 ContainersPaused:0 ContainersStopped:6 Images:9 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus: Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization: Log:[awslogs fluentd gcplogs gelf journald json-file local splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:false CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:50 OomKillDisable:false NGoroutines:77 SystemTime:2024-04-22 18:19:26.748089628 +0000 UTC LoggingDriver:json-file CgroupDriver:systemd NEventsListener:0 KernelVersion:6.1.0-20-cloud-amd64 OperatingSystem:Debian GNU/Linux 12 (bookworm) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:2 MemTotal:4119568384 GenericResources: DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:machine-ready-20240420-020624 Labels:[] ExperimentalBuild:false ServerVersion:26.0.2 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e377cd56a71523140ca6ae87e30244719194a521 Expected:e377cd56a71523140ca6ae87e30244719194a521} RuncCommit:{ID:v1.1.12-0-g51d5e94 Expected:v1.1.12-0-g51d5e94} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=apparmor name=seccomp,profile=builtin name=cgroupns] ProductLicense: Warnings: ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.14.0] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.26.1]] Warnings:}}
I0422 18:19:26.769726 83054 cli_runner.go:164] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0422 18:19:26.823134 83054 out.go:177] * Mounting host path /home/USER/machine into VM as /mnt/src ...
I0422 18:19:26.824989 83054 out.go:177] - Mount type: 9p
I0422 18:19:26.826479 83054 out.go:177] - User ID: docker
I0422 18:19:26.827927 83054 out.go:177] - Group ID: docker
I0422 18:19:26.829374 83054 out.go:177] - Version: 9p2000.L
I0422 18:19:26.830915 83054 out.go:177] - Message Size: 262144
I0422 18:19:26.832321 83054 out.go:177] - Options: map[]
I0422 18:19:26.833955 83054 out.go:177] - Bind Address: 192.168.49.1:41417
I0422 18:19:26.835578 83054 out.go:177] * Userspace file server:
I0422 18:19:26.835686 83054 ssh_runner.go:195] Run: /bin/bash -c "[ "x$(findmnt -T /mnt/src | grep /mnt/src)" != "x" ] && sudo umount -f /mnt/src || echo "
I0422 18:19:26.836977 83054 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0422 18:19:26.871709 83054 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:32772 SSHKeyPath:/home/USER/.minikube/machines/minikube/id_rsa Username:docker}
I0422 18:19:26.990332 83054 mount.go:180] unmount for /mnt/src ran successfully
I0422 18:19:26.990356 83054 ssh_runner.go:195] Run: /bin/bash -c "sudo mkdir -p /mnt/src"
I0422 18:19:27.009869 83054 ssh_runner.go:195] Run: /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=41417,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src"
I0422 18:19:27.043454 83054 out.go:177]
W0422 18:19:27.045112 83054 out.go:239] X Exiting due to GUEST_MOUNT: mount failed: 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=41417,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=41417,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src": Process exited with status 32
stdout:

stderr:
mount: /mnt/src: unknown filesystem type '9p'.

W0422 18:19:27.045139 83054 out.go:239] *
W0422 18:19:27.047962 83054 out.go:239] ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ * 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: │
│ * - /tmp/minikube_mount_023e88ab625ae663cd8c4db19e48c697f3cfa424_0.log │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
I0422 18:19:27.049678 83054 out.go:177]
Log file created at: 2024/04/22 21:47:24
Running on machine: machine-ready-20240420-020624
Binary: Built with gc go1.22.1 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0422 21:47:24.318821 132171 out.go:291] Setting OutFile to fd 1 ...
I0422 21:47:24.319045 132171 out.go:343] isatty.IsTerminal(1) = false
I0422 21:47:24.319052 132171 out.go:304] Setting ErrFile to fd 2...
I0422 21:47:24.319061 132171 out.go:343] isatty.IsTerminal(2) = false
I0422 21:47:24.319379 132171 root.go:338] Updating PATH: /home/USER/.minikube/bin
W0422 21:47:24.319568 132171 root.go:314] Error reading config file at /home/USER/.minikube/config/config.json: open /home/USER/.minikube/config/config.json: no such file or directory
I0422 21:47:24.319790 132171 mustload.go:65] Loading cluster: minikube
I0422 21:47:24.320383 132171 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.30.0
I0422 21:47:24.320997 132171 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0422 21:47:24.350232 132171 host.go:66] Checking if "minikube" exists ...
I0422 21:47:24.350731 132171 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0422 21:47:24.488373 132171 info.go:266] docker info: {ID:7fe2a9e9-e2e1-4517-b90f-5bc4edddc88e Containers:9 ContainersRunning:3 ContainersPaused:0 ContainersStopped:6 Images:9 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus: Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization: Log:[awslogs fluentd gcplogs gelf journald json-file local splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:false CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:50 OomKillDisable:false NGoroutines:77 SystemTime:2024-04-22 21:47:24.473552973 +0000 UTC LoggingDriver:json-file CgroupDriver:systemd NEventsListener:0 KernelVersion:6.1.0-20-cloud-amd64 OperatingSystem:Debian GNU/Linux 12 (bookworm) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:2 MemTotal:4119568384 GenericResources: DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:machine-ready-20240420-020624 Labels:[] ExperimentalBuild:false ServerVersion:26.0.2 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e377cd56a71523140ca6ae87e30244719194a521 Expected:e377cd56a71523140ca6ae87e30244719194a521} RuncCommit:{ID:v1.1.12-0-g51d5e94 Expected:v1.1.12-0-g51d5e94} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=apparmor name=seccomp,profile=builtin name=cgroupns] ProductLicense: Warnings: ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.14.0] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.26.1]] Warnings:}}
I0422 21:47:24.488555 132171 cli_runner.go:164] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0422 21:47:24.516095 132171 out.go:177] * Mounting host path /home/USER/machine into VM as /mnt/src ...
I0422 21:47:24.517710 132171 out.go:177] - Mount type: 9p
I0422 21:47:24.519212 132171 out.go:177] - User ID: docker
I0422 21:47:24.520674 132171 out.go:177] - Group ID: docker
I0422 21:47:24.522074 132171 out.go:177] - Version: 9p2000.L
I0422 21:47:24.523544 132171 out.go:177] - Message Size: 262144
I0422 21:47:24.524836 132171 out.go:177] - Options: map[]
I0422 21:47:24.526213 132171 out.go:177] - Bind Address: 192.168.49.1:43111
I0422 21:47:24.527640 132171 out.go:177] * Userspace file server:
I0422 21:47:24.528636 132171 ssh_runner.go:195] Run: /bin/bash -c "[ "x$(findmnt -T /mnt/src | grep /mnt/src)" != "x" ] && sudo umount -f /mnt/src || echo "
I0422 21:47:24.529284 132171 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0422 21:47:24.571056 132171 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:32772 SSHKeyPath:/home/USER/.minikube/machines/minikube/id_rsa Username:docker}
I0422 21:47:24.742671 132171 mount.go:180] unmount for /mnt/src ran successfully
I0422 21:47:24.742696 132171 ssh_runner.go:195] Run: /bin/bash -c "sudo mkdir -p /mnt/src"
I0422 21:47:24.762347 132171 ssh_runner.go:195] Run: /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=43111,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src"
I0422 21:47:24.796402 132171 out.go:177]
W0422 21:47:24.797912 132171 out.go:239] X Exiting due to GUEST_MOUNT: mount failed: 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=43111,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=43111,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src": Process exited with status 32
stdout:

stderr:
mount: /mnt/src: unknown filesystem type '9p'.

W0422 21:47:24.797959 132171 out.go:239] *
W0422 21:47:24.800431 132171 out.go:239] ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ * 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: │
│ * - /tmp/minikube_mount.log │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
I0422 21:47:24.801829 132171 out.go:177]
Log file created at: 2024/04/22 21:47:42
Running on machine: machine-ready-20240420-020624
Binary: Built with gc go1.22.1 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0422 21:47:42.356203 132342 out.go:291] Setting OutFile to fd 1 ...
I0422 21:47:42.363146 132342 out.go:343] isatty.IsTerminal(1) = false
I0422 21:47:42.363174 132342 out.go:304] Setting ErrFile to fd 2...
I0422 21:47:42.363184 132342 out.go:343] isatty.IsTerminal(2) = false
I0422 21:47:42.363789 132342 root.go:338] Updating PATH: /home/USER/.minikube/bin
W0422 21:47:42.364008 132342 root.go:314] Error reading config file at /home/USER/.minikube/config/config.json: open /home/USER/.minikube/config/config.json: no such file or directory
I0422 21:47:42.364244 132342 mustload.go:65] Loading cluster: minikube
I0422 21:47:42.365824 132342 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.30.0
I0422 21:47:42.367415 132342 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0422 21:47:42.404050 132342 host.go:66] Checking if "minikube" exists ...
I0422 21:47:42.404441 132342 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0422 21:47:42.502919 132342 info.go:266] docker info: {ID:7fe2a9e9-e2e1-4517-b90f-5bc4edddc88e Containers:9 ContainersRunning:3 ContainersPaused:0 ContainersStopped:6 Images:9 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus: Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization: Log:[awslogs fluentd gcplogs gelf journald json-file local splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:false CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:false NFd:50 OomKillDisable:false NGoroutines:77 SystemTime:2024-04-22 21:47:42.485600569 +0000 UTC LoggingDriver:json-file CgroupDriver:systemd NEventsListener:0 KernelVersion:6.1.0-20-cloud-amd64 OperatingSystem:Debian GNU/Linux 12 (bookworm) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[] Secure:true Official:true}} Mirrors:[]} NCPU:2 MemTotal:4119568384 GenericResources: DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:machine-ready-20240420-020624 Labels:[] ExperimentalBuild:false ServerVersion:26.0.2 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:e377cd56a71523140ca6ae87e30244719194a521 Expected:e377cd56a71523140ca6ae87e30244719194a521} RuncCommit:{ID:v1.1.12-0-g51d5e94 Expected:v1.1.12-0-g51d5e94} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=apparmor name=seccomp,profile=builtin name=cgroupns] ProductLicense: Warnings: ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.14.0] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.26.1]] Warnings:}}
I0422 21:47:42.503109 132342 cli_runner.go:164] Run: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}"
I0422 21:47:42.528655 132342 out.go:177] * Mounting host path /home/USER/machine into VM as /mnt/src ...
I0422 21:47:42.530323 132342 out.go:177] - Mount type: 9p
I0422 21:47:42.531556 132342 out.go:177] - User ID: docker
I0422 21:47:42.532714 132342 out.go:177] - Group ID: docker
I0422 21:47:42.533830 132342 out.go:177] - Version: 9p2000.L
I0422 21:47:42.534907 132342 out.go:177] - Message Size: 262144
I0422 21:47:42.536030 132342 out.go:177] - Options: map[]
I0422 21:47:42.537095 132342 out.go:177] - Bind Address: 192.168.49.1:38555
I0422 21:47:42.538374 132342 out.go:177] * Userspace file server:
I0422 21:47:42.538627 132342 ssh_runner.go:195] Run: /bin/bash -c "[ "x$(findmnt -T /mnt/src | grep /mnt/src)" != "x" ] && sudo umount -f /mnt/src || echo "
I0422 21:47:42.539838 132342 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0422 21:47:42.566914 132342 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:32772 SSHKeyPath:/home/USER/.minikube/machines/minikube/id_rsa Username:docker}
I0422 21:47:42.677490 132342 mount.go:180] unmount for /mnt/src ran successfully
I0422 21:47:42.677514 132342 ssh_runner.go:195] Run: /bin/bash -c "sudo mkdir -p /mnt/src"
I0422 21:47:42.698269 132342 ssh_runner.go:195] Run: /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=38555,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src"
I0422 21:47:42.731469 132342 out.go:177]
W0422 21:47:42.733082 132342 out.go:239] X Exiting due to GUEST_MOUNT: mount failed: 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=38555,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=38555,trans=tcp,version=9p2000.L 192.168.49.1 /mnt/src": Process exited with status 32
stdout:

stderr:
mount: /mnt/src: unknown filesystem type '9p'.

W0422 21:47:42.733111 132342 out.go:239] *
W0422 21:47:42.736741 132342 out.go:239] ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ * 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: │
│ * - /tmp/minikube_mount_023e88ab625ae663cd8c4db19e48c697f3cfa424_0.log │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
I0422 21:47:42.738168 132342 out.go:177]

Operating System

Other

Driver

Docker

@medyagh
Copy link
Member

medyagh commented Apr 22, 2024

@mplsgrant thank you for creating this bug, you are right if the OS does NOT support 9p it will not work, which I dont know what we could do about it, btw do you mind sharing which cloud did you try the debian 6 on ? and what is the Exact version that they stopped including 9p ?

but the lease we could do is Detect that the OS does NOT support 9p and Exit Nicely with a more user friendly way

@mplsgrant would you be interested to make a PR for this?

@medyagh medyagh added kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Apr 22, 2024
@medyagh medyagh changed the title minikube mount does not work on 6.1.0-20-cloud-amd64 minikube mount does not work on 6.1.0-20-cloud-amd64 - Detect when OS does not support 9p Apr 22, 2024
@mplsgrant
Copy link
Author

do you mind sharing which cloud did you try the debian 6 on ?

I used cloud.google.com. Here's more info from uname -a:

Linux ... 6.1.0-20-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux

and what is the Exact version that they stopped including 9p

I'm not sure, but this bug report gives me the impression that 9p has not existed in the debian cloud kernel since at least the year 2020.

would you be interested to make a PR for this?

While I am very tempted to contribute in this way, I do not have code to share that would help solve this issue. Also, I do not have the bandwidth at the moment to investigate and write the code.

@afbjorklund
Copy link
Collaborator

Redhat also hates 9p, which lead to docker-machine to not support the mount feature in the "kvm" driver:

At the time they were hoping for vsock, which never happened. And now it is virtiofs, being rewritten in Rust...

I think that reverse-sshfs (as in sshocker) is the most compatible mount solution.

@xcarolan
Copy link

I can try and take a stab at this (graceful exit) - assuming there is no rush.
/assign

@medyagh
Copy link
Member

medyagh commented Apr 25, 2024

@xcarolan first come first serve :) go ahead

@xcarolan
Copy link

xcarolan commented May 6, 2024

So i've added a very minor change to this, (first change) basically exiting gracefully..
image

I'm not exactly thrilled with the outcome, I would have liked to check the host system first for support of 9p so I could provide a more specific error (but I didn't see a way of doing this). Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

4 participants