[Spice-devel] How to mount webdav inside QEMU

Ahmad Ismail ismail783 at gmail.com
Mon Jan 17 19:11:04 UTC 2022


I run the VM using

qemu-system-x86_64 -accel kvm,thread=multi -cpu host -smp 2 -m 4096
-drive file=mint20.3.qcow2,if=virtio \
-machine vmport=off \
-vga qxl -usb -device usb-tablet \
-spice port=5900,addr=127.0.0.1,disable-ticketing \
-device virtio-serial-pci \
-chardev spicevmc,id=spicechannel0,debug=0,name=vdagent \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0
\
-chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1

The access the VM using remote-viewer spice://127.0.0.1:5900

Then in the remote viewer I click:

File > Preference > Share folder > Choose a folder from the Host

Then In the host I click: Nemo > Network > Spice client folder

Then the directory is mounted and I can share files between guest and host.

I want to get rid of the clicks.

I think to mount a drive I have to use something like

mount -t davfs https://cs10.cloud.com:2078 /mnt/webdav

But I am not understanding what URL shall i use after mount -t davfs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20220118/160c5ae4/attachment.htm>


More information about the Spice-devel mailing list