From 0e9ba7eabdfee07943c2da8112627956138a2623 Mon Sep 17 00:00:00 2001 From: Oxore Date: Wed, 10 Jan 2024 21:51:30 +0300 Subject: Describe QEMU samba for Windows guest and /etc/fstab --- source/qemu.rst | 22 ++++++++++++---------- source/windows-guest-explorer-exe-qemu-samba.png | Bin 0 -> 17001 bytes 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 source/windows-guest-explorer-exe-qemu-samba.png diff --git a/source/qemu.rst b/source/qemu.rst index 099ee52..e7257ef 100644 --- a/source/qemu.rst +++ b/source/qemu.rst @@ -13,23 +13,25 @@ invocation command:: The shared directory can be mounted by a guest Linux machine like this:: - mount -t cifs //10.0.2.4/qemu /mnt/samba -o user=,pass= + mount -t cifs //10.0.2.4/qemu -o user=,pass= -The ```` and the ```` must be real user on the host machine. I -am not sure whether it is the user owning the shared directory or the one -started the QEMU process, but in my case it always the same user and I put it's -credentials and it works. +The ```` and the ```` can be almost *anything* existing or not, +even nothing, you even can provide just ``-o user=,pass=``. The ``-t cifs`` part might be optional if ``mount`` supports inferring file system type. -.. admonition:: TODO +To mount it via ``/etc/fstab`` add the following line to the file:: - Describe how to mount the shared directory by creating an entry in - ``/etc/fstab``. + //10.0.2.4/qemu cifs user=,pass= 0 0 -.. admonition:: TODO +On Windows you can just enter the following address into explorer's address +bar, no authentication required:: - Describe how to mount the shared folder from a Windows guest + \\10.2.0.4\qemu + +Overall it looks like this: + +.. image:: windows-guest-explorer-exe-qemu-samba.png .. [#shared-folder] `Shared folder between QEMU Windows guest and Linux host / stackexchange.com `_ diff --git a/source/windows-guest-explorer-exe-qemu-samba.png b/source/windows-guest-explorer-exe-qemu-samba.png new file mode 100644 index 0000000..252dd12 Binary files /dev/null and b/source/windows-guest-explorer-exe-qemu-samba.png differ -- cgit v1.2.3