virtio-fs
- virtio-fs - A Shared File System for Virtual Machines
- File System as a Service
- Boot guest from directory on host
- Linux FUSE as Protocol
- VIRTIO as Transport
- shared memory resources
- 9p
- https://www.linux-kvm.org/page/9p_virtio
- https://wiki.qemu.org/Documentation/9psetup
- https://kernel.taobao.org/2019/11/virtio-fs-intro-and-perf-optimize/
- 使用 host 上 overlayfs,能充分利用 host pagecache;部署简单,不需要额外的组件
<!-- libvirtd -->
<filesystem type='mount' accessmode='passthrough'>
<driver type='virtiofs'/>
<source dir='/var/www'/>
<target dir='website'/> <!-- not treated as a path -->
</filesystem>
mount -t virtiofs website /var/www