我可以使用9p将一个驱动器挂载到我的libvirt来宾上,使用以下命令.
mount -t 9p trans=virtio,version=9p2000.L,rw share /machine/host
...but无法计算出在启动时添加到/etc/ add中的内容。
我试过..。
share /machine/host 9p trans=virtio,version=9p2000.L,rw 0 0
...but客户未能启动(我被带到紧急模式)。
发布于 2017-11-20 00:30:32
发布于 2017-11-20 00:19:39
如果您使用的是systemd,这可能也是系统试图提前挂载的问题。在我的例子中,按照Arch Wiki对NFS的说明解决了这个问题:
https://wiki.archlinux.org/index.php/NFS#Mount_使用_.2Fetc.2Ffstab_使用_系统d
这对我有帮助:
/blacknas/show-archive /mnt/blacknas/show-archive 9p noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,x-systemd.idle-timeout=0,trans=virtio,version=9p2000.L,rw 0 0
发布于 2019-10-16 18:05:26
在这里,我提供了一个最小的、自动运行的QEMU示例,它在启动时挂载9p目录,如:https://github.com/cirosantilli/linux-kernel-module-cheat/tree/5b7094fb68e36c2c4af73e8a209a979ebbf32eae#9p所述
fstab文件存在于:https://github.com/cirosantilli/linux-kernel-module-cheat/blob/5b7094fb68e36c2c4af73e8a209a979ebbf32eae/rootfs_覆盖/etc/fstab,并包含表单的条目:
# <file system> <mount pt> <type> <options> <dump> <pass>
host_data /mnt/9p/data 9p trans=virtio,version=9p2000.L 0 0
host_out /mnt/9p/out 9p trans=virtio,version=9p2000.L 0 0
host_rootfs_overlay /mnt/9p/rootfs_overlay 9p trans=virtio,version=9p2000.L 0 0
host_out_rootfs_overlay /mnt/9p/out_rootfs_overlay 9p trans=virtio,version=9p2000.L 0 0
https://unix.stackexchange.com/questions/377325
复制相似问题