Re: How to mount webdav inside QEMU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, Jan 18, 2022 at 01:11:04AM +0600, Ahmad Ismail wrote:
> 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=,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://
> 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 /mnt/webdav
> But I am not understanding what URL shall i use after mount -t davfs

This command uses a kernel filesystem driver. I'm not sure how that
works, as SPICE webdav doesn't generally use that. When you're
mounting in a GNOME desktop UI, it uses 'GIO' to mount it.

If you're logged into your sesssion, you can do that using

  gio mount dav+sd://Spice%2520folder._webdav._tcp.local/

You can use 'gio mount --list' to confirm that URL, after mounting
it from the UI.

The actual mount appears in /run/user/$UID/gvfs/$URL where $URL
is the same as the URL given to 'gio mount'

|:      -o- :|
|:         -o-   :|
|:    -o- :|

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]