spice有个功能,可以把client os 的一个目录共享给client os ,https://www.spice-space.org/spice-user-manual.html
1. 配置虚机的XML文件,给虚机添加一个"org.spice-space.webdav.0"的virtio设备
<devices>
......
<channel type='spiceport'>
<source channel='org.spice-space.webdav.0'/>
<target type='virtio' name='org.spice-space.webdav.0'/>
</channel>
......
</devices>
2. 在虚机里面安装phodav
从gitlab上直接git 下来或直接下载压缩文件,https://gitlab.gnome.org/GNOME/phodav
cd phodav-master
./autogen.sh
make
make install
要解决configure过程中的依赖问题,配源安装相应的dev包
安装成功后,执行phodav服务命令