[debug] vagrant報錯mount.nfs: Connection timed out

城裡的野山參發表於2022-12-14

環境

win11使用homestead搭建laravel開發環境
Vagrant 2.3.3
virtualbox 6.1

問題

folders:
    ...
    - map: D:\lovan\codeSrc\mexico
      to: /home/vagrant/code/mexico
      type: "nfs"
    - map: D:\lovan\codeSrc\mexico-new
      to: /home/vagrant/code/mexico-new
      type: "nfs"

homestead中使用這種的同步配置,會報錯

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3,udp,vers=3,udp,nolock 192.168.56.1:/D/lovan/codeSrc/mexico-new /home/vagrant/code/mexico-new

Stdout from the command:

Stderr from the command:

mount.nfs: Connection timed out

解決方案

mexico 註釋掉即可,mexicomexico-new 在解析的時候存在問題,具體原因暫未找到。

本作品採用《CC 協議》,轉載必須註明作者和本文連結
城裡的野山參

相關文章