summaryrefslogtreecommitdiff
path: root/source/qemu.rst
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-01-10 21:51:30 +0300
committerOxore <oxore@protonmail.com>2024-01-10 21:51:30 +0300
commit0e9ba7eabdfee07943c2da8112627956138a2623 (patch)
treec8e1dce792133c91497ddf7fd92aea03e7f7df08 /source/qemu.rst
parentcfd05efc63288fde33d3dff6b99522d4c4410170 (diff)
Describe QEMU samba for Windows guest and /etc/fstab
Diffstat (limited to 'source/qemu.rst')
-rw-r--r--source/qemu.rst22
1 files changed, 12 insertions, 10 deletions
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=<user>,pass=<password>
+ mount -t cifs //10.0.2.4/qemu <mountpoint> -o user=<user>,pass=<password>
-The ``<user>`` and the ``<password>`` 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 ``<user>`` and the ``<password>`` 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 <mountpoint> cifs user=<user>,pass=<password> 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 <https://unix.stackexchange.com/a/183609>`_