<div dir="ltr">Thank you very much.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b style="font-weight:normal"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Best Regards,</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Ahmad Ismail</span></p></b></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 18, 2022 at 5:32 PM Daniel P. Berrangé <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jan 18, 2022 at 01:11:04AM +0600, Ahmad Ismail wrote:<br>
> I run the VM using<br>
> <br>
> qemu-system-x86_64 -accel kvm,thread=multi -cpu host -smp 2 -m 4096<br>
> -drive file=mint20.3.qcow2,if=virtio \<br>
> -machine vmport=off \<br>
> -vga qxl -usb -device usb-tablet \<br>
> -spice port=5900,addr=127.0.0.1,disable-ticketing \<br>
> -device virtio-serial-pci \<br>
> -chardev spicevmc,id=spicechannel0,debug=0,name=vdagent \<br>
> -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \<br>
> -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0<br>
> \<br>
> -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1<br>
> <br>
> The access the VM using remote-viewer spice://<a href="http://127.0.0.1:5900" rel="noreferrer" target="_blank">127.0.0.1:5900</a><br>
> <br>
> Then in the remote viewer I click:<br>
> <br>
> File > Preference > Share folder > Choose a folder from the Host<br>
> <br>
> Then In the host I click: Nemo > Network > Spice client folder<br>
> <br>
> Then the directory is mounted and I can share files between guest and host.<br>
> <br>
> I want to get rid of the clicks.<br>
> <br>
> I think to mount a drive I have to use something like<br>
> <br>
> mount -t davfs <a href="https://cs10.cloud.com:2078" rel="noreferrer" target="_blank">https://cs10.cloud.com:2078</a> /mnt/webdav<br>
> <br>
> But I am not understanding what URL shall i use after mount -t davfs<br>
<br>
This command uses a kernel filesystem driver. I'm not sure how that<br>
works, as SPICE webdav doesn't generally use that. When you're<br>
mounting in a GNOME desktop UI, it uses 'GIO' to mount it.<br>
<br>
If you're logged into your sesssion, you can do that using<br>
<br>
  gio mount dav+sd://Spice%2520folder._webdav._tcp.local/<br>
<br>
<br>
You can use 'gio mount --list' to confirm that URL, after mounting<br>
it from the UI.<br>
<br>
The actual mount appears in /run/user/$UID/gvfs/$URL where $URL<br>
is the same as the URL given to 'gio mount'<br>
<br>
Regards,<br>
Daniel<br>
-- <br>
|: <a href="https://berrange.com" rel="noreferrer" target="_blank">https://berrange.com</a>      -o-    <a href="https://www.flickr.com/photos/dberrange" rel="noreferrer" target="_blank">https://www.flickr.com/photos/dberrange</a> :|<br>
|: <a href="https://libvirt.org" rel="noreferrer" target="_blank">https://libvirt.org</a>         -o-            <a href="https://fstop138.berrange.com" rel="noreferrer" target="_blank">https://fstop138.berrange.com</a> :|<br>
|: <a href="https://entangle-photo.org" rel="noreferrer" target="_blank">https://entangle-photo.org</a>    -o-    <a href="https://www.instagram.com/dberrange" rel="noreferrer" target="_blank">https://www.instagram.com/dberrange</a> :|<br>
<br>
</blockquote></div>