Shared Directory not visible in a bare Debian 11 VM? #3755
Replies: 7 comments 12 replies
-
You need spice-webdavd and once it is running you should be able to access a webdav server on localhost. Check documentation for spice-webdavd for more details. |
Beta Was this translation helpful? Give feedback.
-
Here's what worked for me. Install the needed tools (make sure to enable unprivileged access when prompted): sudo apt install spice-vdagent spice-webdavd davfs2 (not sure if restarting is needed) Shared directory should now be accessible via HTTP, you can check via: $ curl http://127.0.0.1:9843/ It should list the contents of your share. To mount it to a directory: $ sudo mkdir /mnt/shared
# empty user and pass here
$ sudo mount -t davfs -o noexec http://127.0.0.1:9843/ /mnt/shared/ Store the credentials so it doesn't prompt you next time: # "anyuser" and "anypass" can really be anything,
# but seems to be required when specifying in the file.
$ sudo cat >> /etc/davfs2/secrets << EOF
# mounted UTM directory
/mnt/shared anyuser anypass
EOF To have it mounted automatically on boot (make sure that creds are stored as above): # add to fstab
$ sudo cat >> /etc/fstab << EOF
# mounted UTM directory
http://127.0.0.1:9843/ /mnt/shared davfs _netdev,user 0 0
EOF Reboot the VM with |
Beta Was this translation helpful? Give feedback.
-
None of these suggestions worked for me. I finally found joy following these steps. Host: MacOS Ventura 13.0 on MacBook Air M2 hope it helps! |
Beta Was this translation helpful? Give feedback.
-
After installing the Spice tools ( Settings -> Sharing -> Directory Share Mode -> SPICE WebDAV |
Beta Was this translation helpful? Give feedback.
-
for fstab try adding to /etc/initramfs-tools/modules hope this helps |
Beta Was this translation helpful? Give feedback.
-
Is there no Android UTM?
…---- Replied Message ----
| From | ***@***.***> |
| Date | 12/31/2023 12:43 |
| To | ***@***.***> |
| Cc | ***@***.***> |
| Subject | Re: [utmapp/UTM] Shared Directory not visible in a bare Debian 11 VM? (Discussion #3755) |
This worked for me, but note that there is bug which will prevent some files with URI special characters (ex. [test]) from displaying. The files will display in the output of curl http://127.0.0.1:9843/ and in the gui file browser (e..g. Thunar), but will not be displayed in any command-line interaction (ls, 'find, etc.). The likely cause is described here: iterate-ch/cyberduck#13864 (comment)
But I'm not sure where to report this.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I managed to make it work for Ubuntu VM like this: On OSX 15: The other workaround (as per @samiraguiar answer): sudo apt install spice-vdagent spice-webdavd davfs2
sudo tee -a /etc/fstab <<<"http://127.0.0.1:9843/ /mnt/shared davfs defaults,_netdev,nofail,auto,user,uid=USER,gid=USER 0 0"
sudo tee -a /etc/davfs2/secrets <<<"/mnt/shared USER PASSWORD" Note: Uppercase strings should be replaced with actual data. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the issue
I installed Debian 11 (no desktop environment) and the Spice Guest Tools per this link. I then added a shared directory and restarted the VM. After looking all over the disk in the VM, I cannot locate where this shared directory is on the disk and it appears as if it has no awareness of this setting. Is this not compatible with a headless Debian VM?
Configuration
Crash log
No crash
Debug log
Attached
Beta Was this translation helpful? Give feedback.
All reactions