diff options
-rw-r--r-- | source/qemu.rst | 22 | ||||
-rw-r--r-- | source/windows-guest-explorer-exe-qemu-samba.png | bin | 0 -> 17001 bytes |
2 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>`_ diff --git a/source/windows-guest-explorer-exe-qemu-samba.png b/source/windows-guest-explorer-exe-qemu-samba.png Binary files differnew file mode 100644 index 0000000..252dd12 --- /dev/null +++ b/source/windows-guest-explorer-exe-qemu-samba.png |