{"id":67351,"date":"2024-12-13T19:46:47","date_gmt":"2024-12-13T18:46:47","guid":{"rendered":"https:\/\/ekiwi-blog.de\/67351\/qemu-data-exchange-windows-linux-share-folders\/"},"modified":"2025-01-05T15:27:54","modified_gmt":"2025-01-05T14:27:54","slug":"qemu-data-exchange-windows-linux-share-folders","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/","title":{"rendered":"Qemu: Data exchange Windows &#8211; Linux, share folders"},"content":{"rendered":"<p>Shared folders in Qemu.<\/p>\n<p><!--more--><\/p>\n<p>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.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/#Video\" >Video<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/#Enable_shared_memory\" >Enable shared memory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/#Add_file_system\" >Add file system<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/#Error_%E2%80%9CError_starting_domain_operation_failed_Unable_to_find_a_satisfying_virtiofsd%E2%80%9D\" >Error: &#8220;Error starting domain: operation failed: Unable to find a satisfying virtiofsd&#8221;<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/#Install_Winfsp_in_Windows\" >Install Winfsp in Windows<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/#install_virtio-win\" >install virtio-win<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ekiwi-blog.de\/en\/67351\/qemu-data-exchange-windows-linux-share-folders\/#Check_whether_the_service_is_running\" >Check whether the service is running<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Video\"><\/span>Video<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/0hZU3vltZVM?si=ixMXO-tYhBpmWqtF\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Enable_shared_memory\"><\/span>Enable shared memory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_1.png\" alt=\"\" width=\"605\" height=\"360\" class=\"aligncenter size-full wp-image-67323\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_1.png 605w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_1-300x179.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Add_file_system\"><\/span>Add file system<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We then add new hardware.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_2.png\" alt=\"\" width=\"370\" height=\"181\" class=\"aligncenter size-full wp-image-67327\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_2.png 370w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_2-300x147.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/p>\n<p>In our case a &#8220;Filesystem&#8221;, driver &#8220;virtiofs&#8221;. In the &#8220;Source path&#8221; we now set the folder that we want to make available. This can also be read-only.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3.png\" alt=\"\" width=\"674\" height=\"583\" class=\"aligncenter size-full wp-image-67331\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3.png 674w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3-300x259.png 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Error_%E2%80%9CError_starting_domain_operation_failed_Unable_to_find_a_satisfying_virtiofsd%E2%80%9D\"><\/span>Error: &#8220;Error starting domain: operation failed: Unable to find a satisfying virtiofsd&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The VM then no longer wanted to start. &#8220;virtiofsd&#8221; must then be installed here:<\/p>\n<pre>\r\nsudo apt install virtiofsd\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install_Winfsp_in_Windows\"><\/span>Install Winfsp in Windows<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Windows, you now need to install &#8220;<a href=\"https:\/\/winfsp.dev\/\" target=\"_blank\" rel=\"noopener noreferrer\">Winfsp<\/a>&#8220;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4.webp\" alt=\"\" width=\"499\" height=\"438\" class=\"aligncenter size-full wp-image-67335\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4.webp 499w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4-300x263.webp 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"install_virtio-win\"><\/span>install virtio-win<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If the guest extensions are not yet installed, we still need to do this. These can be downloaded <a href=\"https:\/\/github.com\/virtio-win\/virtio-win-pkg-scripts\/blob\/master\/README.md\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>. Optionally as ISO or as .exe file.<\/p>\n<p>The driver is installed automatically.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_5.webp\" alt=\"\" width=\"903\" height=\"673\" class=\"aligncenter size-full wp-image-67339\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_5.webp 903w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_5-300x224.webp 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_5-768x572.webp 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Check_whether_the_service_is_running\"><\/span>Check whether the service is running<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>We should then check whether the service is running and is also started automatically. The service is called &#8220;VirtIO-FS Service&#8221;. It is best to set the start type to automatic.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6.png\" alt=\"\" width=\"562\" height=\"412\" class=\"aligncenter size-full wp-image-67343\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6.png 562w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6-300x220.png 300w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><\/p>\n<h2>Now everything should be there!<\/p>\n<p>If everything worked, our folder should now appear as a drive in Explorer the next time you restart.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_7.png\" alt=\"\" width=\"596\" height=\"314\" class=\"aligncenter size-full wp-image-67347\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_7.png 596w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_7-300x158.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Shared folders in Qemu.<\/p>\n","protected":false},"author":1,"featured_media":67355,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1539],"tags":[1682,3779],"class_list":["post-67351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-linux-en","tag-qemu-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/67351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=67351"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/67351\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/67355"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=67351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=67351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=67351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}