Qemu: Data exchange Windows – Linux, share folders

Shared folders in Qemu.

I have set up a Windows in Linux in case I need something in Windows. Here I wanted Windows to be able to access the files on the Linux system. In principle, this is quite simple, but the devil is in the details.

Video

Enable shared memory

Add file system

We then add new hardware.

In our case a “Filesystem”, driver “virtiofs”. In the “Source path” we now set the folder that we want to make available. This can also be read-only.

Error: “Error starting domain: operation failed: Unable to find a satisfying virtiofsd”

The VM then no longer wanted to start. “virtiofsd” must then be installed here:

sudo apt install virtiofsd

Install Winfsp in Windows

In Windows, you now need to install “Winfsp“.

install virtio-win

If the guest extensions are not yet installed, we still need to do this. These can be downloaded here. Optionally as ISO or as .exe file.

The driver is installed automatically.

Check whether the service is running

We should then check whether the service is running and is also started automatically. The service is called “VirtIO-FS Service”. It is best to set the start type to automatic.

Now everything should be there!

If everything worked, our folder should now appear as a drive in Explorer the next time you restart.

Leave a Reply

Your email address will not be published. Required fields are marked *