<p>Trying to mount a local drive to my minikube host (seems to be a dupe of this <a href="https://stackoverflow.com/questions/57012731/minikube-mount-crashes-mount-system-call-fails">thread</a> but no solution was provided...)</p>

<p>Using:</p>

<p>OSX 10.14.3 and minikube (using HyperVisor)</p>

<pre class="lang-sh prettyprint-override"><code>$ minikube mount --ip 192.168.64.5 --v=7 ~/Documents/projects/docker_storage/tf:/mnt/vda1/data/tf
Found binary path at /usr/local/bin/docker-machine-driver-hyperkit
Launching plugin server for driver hyperkit
Plugin server listening at address 127.0.0.1:58272
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minikube) Calling .DriverName
📁  Mounting host path /Users/XXXXXX/Documents/projects/docker_storage/tf into VM as /mnt/vda1/data/tf ...
💾  Mount options:
    ▪ Type:     9p
    ▪ UID:      docker
    ▪ GID:      docker
    ▪ Version:  9p2000.L
    ▪ MSize:    262144
    ▪ Mode:     755 (-rwxr-xr-x)
    ▪ Options:  map[]
(minikube) Calling .GetSSHHostname
(minikube) Calling .GetSSHPort
(minikube) Calling .GetSSHKeyPath
🚀  Userspace file server: (minikube) Calling .GetSSHUsername
ufs starting
🛑  Userspace file server is shutdown

💣  mount failed: mount: /mnt/vda1/data/tf: mount(2) system call failed: Connection refused.
: Process exited with status 32

😿  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉  https://github.com/kubernetes/minikube/issues/new

</code></pre>

<p>Expected the mount to map the from local:host however the connection is refused. Might be some firewall or proxy issues?</p>

Nicholas Cilfone
<p>I'll just leave this here since I had a similar issue on Fedora 32:</p>

<pre><code>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=38811,trans=tcp,version=9p2000.L 192.168.39.1 /data/pvtheme" : /bin/bash -c "sudo mount -t 9p -o dfltgid=$(grep ^docker: /etc/group | cut -d: -f3),dfltuid=$(id -u docker),msize=262144,port=38811,trans=tcp,version=9p2000.L 192.168.39.1 /data/pvtheme": Process exited with status 32
stdout:

stderr:
mount: /data/pvtheme: mount(2) system call failed: Connection refused.
</code></pre>

<p>I solved thanks to this comment: <a href="https://github.com/kubernetes/minikube/issues/4726#issuecomment-510217223" rel="nofollow noreferrer">https://github.com/kubernetes/minikube/issues/4726#issuecomment-510217223</a></p>

<p>It was a <code>firewalld</code> issue:</p>

<pre><code>$ sudo firewall-cmd --permanent --zone=libvirt --add-rich-rule='rule family="ipv4" source address="192.168.39.0/24" accept'

$ sudo firewall-cmd --reload
</code></pre>

<p>After the changes, here's my <code>firewalld</code> configuration:</p>

<pre><code>firewall-cmd --zone=libvirt --list-all
libvirt (active)
  target: ACCEPT
  icmp-block-inversion: no
  interfaces: crc virbr0 virbr1
  sources: 
  services: dhcp dhcpv6 dns ssh tftp
  ports: 
  protocols: icmp ipv6-icmp
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
    rule family="ipv4" source address="192.168.39.0/24" accept
    rule priority="32767" reject
</code></pre>
