Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Virtualization / Proxmox / Proxmox: Share a Host Directory with VMs via VirtioFS

August 21, 2025

Proxmox: Share a Host Directory with VMs via VirtioFS

With the release of Proxmox VE 8.4, users gained the ability to create host-level shared directories, allowing direct access host files from virtual machines (similar to shared folders in VMware Workstation). VMs can access shared directories (files) on the Proxmox host directly, without going through the network, using the VirtIOFS file system. This article explains how to create a shared directory on a Proxmox host and mount it in virtual machines running Linux or Windows.

 With shared folders, you can quickly access files on the local Proxmox host from a VM without using network protocols such as SMB or NFS. A shared directory on a host can contain, for example, system tools, images, configuration files, updates, etc. These items can be accessed without having to copy them to each VM.

The Proxmox host uses the built-in virtiofsd daemon (appeared in Proxmox 8.4) to pass through local directories to the VM.

Check the Proxmox version on a host:

# pveversion -v

pveversion - check proxmox version

Update Proxmox if the version is less than 8.4.

Check if virtiofsd is installed on the host.

# dpkg -l | grep virtiofsd

Create a shared directory on the Proxmox host that you want to share with the VMs.

# mkdir /mnt/VMShare

Open Proxmox web UI and navigate to Datacenter -> Directory Mappings. Create a new directory mapping for the resource that references the local directory /mnt/VMShare.

Create directory mapping on a Proxmox host

Next, add a shared VirtioFS directory to the virtual machine settings. Open VM settings -> Hardware -> Virtiofs.

Add Virtiofs hardware in VM settings

Choose a local directory that you want to pass through to the VM.

Add virtiofs filesystem passthrough device

Virtiofsd supports the passthrough of ACLs and XAttrs from shared directory objects to guest VMs. This allows you to manage object access permissions, of course, if the guest file system supports them (only makes sense for Linux file systems).

Virtual machines with the Linux kernel version 5.4 or higher support VirtIOFS by default. Verify that this driver is loaded:

# lsmod | grep virtiofs

To temporarily mount a directory from a Proxmox host in a VM with a Linux guest using the VirtioFS driver, run the following command in the guest VM:

# mount -t virtiofs VMShare /mnt/hostshare

mount shared directory from a Proxmox in Linux guest VM

You can also add an entry to fstab to have a shared directory mounted permanently.

VMShare /mnt/hostshare virtiofs rw,relatime 0 0
When running the virtiofs mount command, you may receive an error.

mount: /mnt/hostshare: wrong fs type, bad option, bad superblock on vmshare, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call.

mount virtiofs - wrong fs type, bad option, bad superblock

This is because the VM must be powered off at least once for the VirtioFS virtual device to appear in the VM’s hardware configuration (simply rebooting the VM is not enough).

After turning on the VM, check the VM configuration to ensure that the Virtio FS device has appeared.

# qm config 154 --current

virtiofs0: VMShare

check virtiofs device in proxmox vm config

To use VirtioFS in a guest VM running Windows, you need to install VirtioFS Guest Tools, which includes a driver for accessing the device. Mount the latest version of the Virtio ISO image into the VM (virtio-win-0.1.271.iso or newer). Run the virtio-win-gt-x64.msi installer and install the viofs (Virtio File System) drivers. For more details, see the article on deploying Windows guest virtual machines on Proxmox. Install viofs (Virtio File System)

Let’s check that the service driver is installed and the Virtio FS device is accessible from the guest Windows:

Get-Service VirtioFsDrv
Get-PnpDevice | Where { $_.FriendlyName -like "*VirtioFS*" -or $_.FriendlyName -like "*Virtio FS*" }

check VirtioFs driver and service running

To mount the VirtioFS directory in Windows, use the WinFSP tool. WinFSP (Windows File System Proxy) enables the mounting of file systems in user mode, similar to FUSE on Linux.

Download and install WinFSP https://github.com/winfsp/winfsp/releases

For more details about using the WinFSP, see the post about mapping network drives via SSH (SSHFS) in Windows.

Restart the VirtIO-FS Service (VirtioFsSvc) to mount the VirtIO-FS shared folder via Winfsp.

mount shared directory from a Proxmox host to Windows VM

In the Windows guest virtual machine, the Proxmox host’s shared directory will appear as a separate network drive.

Live migration between hosts is not supported for virtual machines with a mounted Virtio shared folder.
0 comment
0
Facebook Twitter Google + Pinterest
LinuxProxmoxWindows Server 2025
previous post
Windows Has Reached End of Service but Won’t Update

Related Reading

How to Migrate (Import) VMs from VMware ESXi...

July 24, 2024

Create a Windows Server VM on Proxmox (Step-by-Step)

July 15, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Proxmox: Share a Host Directory with VMs via VirtioFS

    August 18, 2025
  • How to Find AD Users with Blank Passwords (Password-Not-Required)

    July 24, 2025
  • Run Elevated Commands with Sudo on Windows 11

    July 16, 2025
  • Find a Process Causing High Disk Usage on Windows

    July 15, 2025
  • Fix: Microsoft Defender Not Updating Automatically in Windows

    July 8, 2025
  • Create a Windows Server VM on Proxmox (Step-by-Step)

    July 7, 2025
  • How to Detect Which User Installed or Removed a Program on Windows

    June 23, 2025
  • Encrypt Any Client-Server App Traffic on Windows with Stunnel

    June 12, 2025
  • Failed to Open the Group Policy Object on a Computer

    June 2, 2025
  • Remote Desktop Printing with RD Easy Print Redirection

    June 2, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Install Any OS from ISO Image over Network with iVentoy
  • Get Started with Docker on Windows (WSL2) without Docker Desktop
  • Printing from Linux to a Windows Shared Printer
  • How to Enable Wake-on-LAN (WOL) in Linux
  • Find a Linux Process Listening on a Specific Port
  • Steps to Mount an ISO Image File on Linux
  • Graylog: Centralized Log Collection and Analysis
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top