{"id":11030,"date":"2025-08-21T14:01:02","date_gmt":"2025-08-21T14:01:02","guid":{"rendered":"https:\/\/cheapwindowsvps.com\/blog\/seamlessly-share-host-directories-with-vms-in-proxmox-using-virtiofs\/"},"modified":"2025-08-21T14:01:02","modified_gmt":"2025-08-21T14:01:02","slug":"seamlessly-share-host-directories-with-vms-in-proxmox-using-virtiofs","status":"publish","type":"post","link":"https:\/\/cheapwindowsvps.com\/blog\/seamlessly-share-host-directories-with-vms-in-proxmox-using-virtiofs\/","title":{"rendered":"Seamlessly Share Host Directories with VMs in Proxmox Using VirtioFS"},"content":{"rendered":"<p>With the launch of <em>Proxmox VE 8.4<\/em>, users can now create <strong>host-level shared directories<\/strong>, giving virtual machines (VMs) access to files from the Proxmox host without utilizing network protocols like SMB or NFS. This feature utilizes the <strong>VirtIOFS<\/strong> file system, which facilitates direct connections to shared directories, similar to shared folders in VMware Workstation.<\/p>\n<h3>Setting Up a Shared Directory<\/h3>\n<p>To enable shared folders, first, check that your Proxmox version is 8.4 or higher:<\/p>\n<pre><code class=\"language-bash\"># pveversion -v<\/code><\/pre>\n<p>If your version is older, you will need to update Proxmox. Next, verify if <strong>virtiofsd<\/strong> is installed:<\/p>\n<pre><code class=\"language-bash\"># dpkg -l | grep virtiofsd<\/code><\/pre>\n<p>Now you can create a shared directory on your Proxmox host:<\/p>\n<pre><code class=\"language-bash\"># mkdir \/mnt\/VMShare<\/code><\/pre>\n<p>Navigate to the Proxmox web UI, go to <strong>Datacenter<\/strong> \u2192 <strong>Directory Mappings<\/strong>, and create a new directory mapping using the local directory <code>\/mnt\/VMShare<\/code>.<\/p>\n<h3>Configuring the Virtual Machine<\/h3>\n<p>Next, you\u2019ll need to add a shared VirtioFS directory to the VM settings. Open the VM\u2019s settings \u2192 <strong>Hardware<\/strong> \u2192 <strong>Virtiofs<\/strong> and choose the local directory to pass through to the VM.<\/p>\n<p>For Linux VMs, ensure the kernel version is 5.4 or higher, and verify that the VirtIOFS driver is loaded:<\/p>\n<pre><code class=\"language-bash\"># lsmod | grep virtiofs<\/code><\/pre>\n<p>To mount the shared directory temporarily within a Linux guest VM, run:<\/p>\n<pre><code class=\"language-bash\"># mount -t virtiofs VMShare \/mnt\/hostshare<\/code><\/pre>\n<p>For a permanent mount, add an entry to <code>\/etc\/fstab<\/code>:<\/p>\n<pre><code>VMShare \/mnt\/hostshare virtiofs rw,relatime 0 0<\/code><\/pre>\n<h3>Troubleshooting Mount Issues<\/h3>\n<p>If you encounter an error when mounting, such as:<\/p>\n<pre><code>mount: \/mnt\/hostshare: wrong fs type, bad option, bad superblock on vmshare, missing codepage or helper program, or other error.<\/code><\/pre>\n<p>ensure that the VM has been powered off at least once. Simply rebooting the VM is insufficient; powering it off allows the VirtioFS device to show in the hardware configuration.<\/p>\n<h3>Setting Up Windows Guests<\/h3>\n<p>For Windows VMs, install the <strong>VirtioFS Guest Tools<\/strong> to enable access to the shared directory. Mount the latest version of the Virtio ISO (virtio-win-0.1.271.iso or later), run the installer, and ensure the <strong>viofs<\/strong> drivers are installed. After installation, check that the Virtio FS service is running with these commands:<\/p>\n<pre><code class=\"language-powershell\">Get-Service VirtioFsDrvGet-PnpDevice | Where { $_.FriendlyName -like &quot;*VirtioFS*&quot; -or $_.FriendlyName -like &quot;*Virtio FS*&quot; }<\/code><\/pre>\n<p>To mount the VirtioFS directory in Windows, install the <strong>WinFSP<\/strong> tool, which allows user-mode file system mounting akin to FUSE on Linux. Download it from <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/github.com\/winfsp\/winfsp\/releases\">WinFSP Releases<\/a>.<\/p>\n<p>Restart the <strong>VirtIO-FS Service<\/strong> (<code>VirtioFsSvc<\/code>) to mount the shared folder via WinFSP. The shared directory will appear as a separate network drive in the Windows guest VM.<\/p>\n<h3>Important Note<\/h3>\n<p>Keep in mind that live migration between hosts is not supported for virtual machines with a mounted Virtio shared folder. For more detailed instructions on deploying Windows guest virtual machines on Proxmox, refer to <a target=\"_blank\" rel=\"nofollow noopener\" href=\"https:\/\/woshub.com\/create-windows-vm-proxmox\/\">this article<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the launch of Proxmox VE 8.4, users can now create host-level shared directories, giving virtual machines (VMs) access to files from the Proxmox host without utilizing network\u2026<\/p>\n","protected":false},"author":0,"featured_media":11031,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116,93,121],"tags":[],"class_list":["post-11030","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-proxmox","category-windows-server-2025"],"_links":{"self":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts\/11030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/comments?post=11030"}],"version-history":[{"count":0,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts\/11030\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/media\/11031"}],"wp:attachment":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/media?parent=11030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/categories?post=11030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/tags?post=11030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}