Unraid虚拟机映射9p文件系统

在/etc/fstab中添加

“`

data /data 9p trans=virtio,version=9p2000.L,_netdev,nofail 0 0

“`

_netdev 很关键,如果没有这个参数在网络没有启动完成时加载文件系统会出现报错。

nofail 是告诉系统,如果挂载失败,不要中断启动过程。

参考资料:

https://ubuntuforums.org/showthread.php?t=2487093

https://unix.stackexchange.com/questions/377325/how-to-mount-9p-drive-using-etc-fstab

https://superuser.com/questions/502205/libvirt-9p-kvm-mount-in-fstab-fails-to-mount-at-boot-time

https://github.com/utmapp/UTM/discussions/4458

上一篇
下一篇