When teams share host directories with VMs over virtiofs on Proxmox VE
Use virtiofs when a VM must read or write a host directory quickly and copying the data over the network would add delay and an extra service to run. On Proxmox VE, the host path is exposed through a directory mapping, and the VM attaches it as a virtiofs device, so the guest works on files where they already sit. This suits large working sets that change often, such as build caches, media libraries, or data staged on the host by another service. Before you plan around it, confirm in the documentation for your installed version which guest operating systems are supported and which driver packages the guest needs, because the share will not mount without the correct driver.
Fit is weaker where many writers need consistent access to the same data, or where the VM must move freely across the cluster. A mapping ties the guest to a path on a specific node, so confirm how the mapping behaves when the VM migrates to a node that lacks that path. Check the documented limits for live migration, snapshots that include RAM, and hibernation with virtiofs devices attached, since these restrictions can change between releases. Also remember that the host directory is not covered by the VM backup unless you back it up separately.
Before you build, record the host path, its owner and permissions, the guest operating system, and which operations must survive a migration. Then test on a non-production VM: mount the share, run read and write tests against a copy of the data, migrate the VM, confirm the mount is still present, and take snapshots with and without RAM. Note every step that fails or needs a workaround. This test will show whether the design holds for your version and workload far more reliably than a general summary of the feature.
Virtiofs configuration options and when each fits
This table compares the configuration choices that change how a virtiofs share behaves: where the directory comes from, whether the guest can write to it, which guest driver is in place, and which VM lifecycle features the team needs to keep. Read each row as a question to answer before the share goes into production, then check the Proxmox VE documentation for the installed version, since limits on live migration, snapshots with RAM and hibernation change between releases.
| Choice | Option and when it fits | Trade-off | What to confirm |
|---|---|---|---|
| Mapping scope | Cluster-wide directory mapping fits VMs that may run on any node and need the same share path everywhere. | Every node that hosts the VM must provide the mapped directory, so node setup and storage consistency become part of the design. | Mapping names, node membership and how the mapping is referenced in the VM configuration for your version. |
| Mapping scope | A plain host path fits a VM pinned to one node where the directory is local to that host. | The VM is tied to that node, and moving it requires the same path to exist on the target or the share to be removed first. | Whether the path must exist on every node and how the VM behaves when it is moved. |
| Read-only exposure | Read-only sharing fits reference data, software installers or content a guest should consume but never change. | The guest cannot write results back, so workflows that expect output in the share need a separate writable location. | That the read-only flag is applied in the VM configuration and enforced by the guest mount options. |
| Read-write exposure | Read-write sharing fits build caches, shared working files or data a guest must update in place. | Any compromise of the guest can alter host-side files, so permissions on the host directory and ownership mapping need review. | File ownership and permission mapping between host and guest, plus the audit trail you need for changes. |
| Guest OS and driver | Linux guests with a virtiofs-capable kernel fit the most direct setup and mounting path. | Older kernels or distributions may lack support, and mount options differ from network file systems. | Kernel version in the guest and the mount command or fstab entry your distribution expects. |
| Guest OS and driver | Windows guests need the virtiofs driver from the VirtIO driver package before the share appears. | The driver must be installed and updated with the guest tools, and a missing driver looks like a missing share rather than an error. | Driver source, version and installation order in the Windows build your team uses. |
| Live migration | A VM that must move between nodes while running needs a share that the platform supports during migration. | Limits on live migration with virtiofs differ from ordinary disks, so a migration plan can fail late if untested. | Current live migration support for virtiofs in the installed Proxmox VE release, tested on your hardware. |
| Snapshots with RAM and hibernation | Teams that snapshot running VMs with memory or hibernate guests should confirm support before relying on those features. | If the feature is unsupported, the snapshot or hibernation may be refused or the guest may lose the share state on resume. | Current limits for snapshots including RAM and hibernation with virtiofs in your version, verified with a restore test. |
How to set up a virtiofs share on a Proxmox VE VM
This sequence gives one VM a shared host directory over virtiofs, with the mapping, permissions, device attachment, guest driver and mount each confirmed before the next step starts. The result is a guest that reads and writes the same files as the host.
Create the directory mapping on each eligible node
Using the Proxmox VE web interface or the API, a cluster administrator creates a directory mapping that points to the host path to be shared, once for every node that may host the VM. Mappings are defined per node, so a VM that moves to a node without a matching mapping cannot start its share there. Confirm the mapping name is identical on every node, because the VM configuration refers to that name rather than to a path. Done when each node lists the mapping and shows the same name and a valid path. Exact menu locations depend on the installed release, so confirm them against the release you run.
Confirm host path and permissions
On each node, the administrator checks that the shared directory exists, that the owner and group are the ones the guest workloads expect, and that the path is on a filesystem the host can reach at all times. Pay attention to mount points: if the directory lives on a separate disk, confirm that the disk mounts before the VM starts. Test the host side by creating and deleting a test file as the account the guest will use. Done when the test file appears in the directory listing on the host and the host shows no permission errors. Confirm any ownership mapping rules against the Proxmox VE documentation for your release.
Attach the virtiofs device to the VM
With the VM powered off, the administrator adds a virtiofs device to its hardware list and selects the directory mapping created earlier. Choose a stable device tag, since the guest will use it to find the share. Check that the VM is set to a machine type and configuration that supports the device, and confirm the required options in the release documentation. Done when the VM configuration file lists the virtiofs entry with the expected mapping and tag, and the VM starts without error on the node that holds the mapping.
Install the virtiofs driver in the guest
Inside the guest, the administrator installs the virtiofs driver package that matches the guest operating system. Linux guests usually include the driver in the kernel, so the task is confirming the module loads. Windows guests need the VirtIO driver set, which includes the virtiofs component, installed from the VirtIO driver media provided with Proxmox VE. Confirm the exact driver package and version with the guest vendor and the Proxmox VE release notes. Done when the guest reports the virtiofs driver as loaded or installed and shows no unknown device for the share.
Mount the share inside the guest
On Linux, the administrator creates a mount point and mounts the share using the filesystem type virtiofs and the device tag from step three, adding an entry to the fstab file only after the manual mount works. On Windows, the administrator maps the share through the virtiofs service or the VirtIO tools, following the release documentation. Mount the share manually first so any error is visible. Done when the mount command returns without error and the share appears under the chosen mount point or drive letter with the expected contents.
Verify read and write from both sides
The administrator creates a file inside the guest, confirms it appears on the host path, then creates a file on the host and reads it from the guest. Repeat with an edit and a delete on each side, and check the owner and permissions on the new files. Record the results in the change ticket with the node name, VM ID, mapping name and guest OS version. Done when every operation succeeds in both directions and the ownership matches what the workload expects. Re-run this check after any host, driver or Proxmox VE upgrade, and before relying on the share for production data.
Guest driver needs by operating system
A virtiofs share is only usable when the guest has a driver that can mount it, and that driver differs between Linux and Windows guests. The cards below cover what each guest needs and what to retest after an OS upgrade or driver change, so a working share does not silently break during routine maintenance.
Linux guest kernel support
Most mainstream Linux distributions ship the virtiofs filesystem driver in their kernels, so the guest usually needs no extra package. Check that the guest kernel includes the virtiofs module, then mount the share by its tag with a mount -t virtiofs command. Confirm the kernel version and module availability for your distribution, since older or custom kernels may lack the driver.
Windows guest driver package
Windows guests need a virtiofs driver and a service that exposes the share as a drive letter or path. This comes from the VirtIO driver package used for other paravirtual devices, and it must match the Windows build. Confirm the current driver package and the Windows versions it supports with the Proxmox VE documentation and the VirtIO driver source before you install it.
Mount tag and configuration match
The guest mounts a share by the tag defined in the directory mapping, not by the host path. If the tag changes or the mapping is removed, the guest mount fails even though the VM still starts. Record the tag next to the mount definition in /etc/fstab or the Windows service configuration, and check both after any change on the host.
Permissions and user mapping
The guest sees files with owners and permissions that come from the host directory and the guest's user IDs. Mismatched UIDs or GIDs between host and guest can make shared files unreadable or writable by the wrong account. Agree on a user mapping for each share and test read and write access as the service accounts that will use it.
Retest after OS and driver changes
Kernel upgrades, major Windows feature updates and VirtIO driver replacements can change how a share mounts or performs. After each change, confirm the mount survives a reboot, read and write a test file from each consumer, and check that the share still appears after a VM stop and start. Keep a short written test script so the checks are repeatable.
How a guest request reaches a host directory through virtiofs
The path starts in a guest application that opens a file on a shared mount. The guest virtiofs driver turns that call into requests and passes them to the VM virtiofs device, which sits on the host side of the VM boundary. The device serves only the directory that the host directory mapping names. Before any read or write reaches the host filesystem, the host permission check applies the host's own ownership and access rules, so the guest cannot reach beyond the mapped path. Check that the guest driver is installed, that the mapping points to the intended directory only, and that the host check is the one you have reviewed.
Guest file calls cross the VM boundary and face the host permission check before reaching host storage.
How virtiofs affects live migration, snapshots with RAM and hibernation
Live migration, memory snapshots and hibernation all capture or move guest state, and a virtiofs share adds host-side state that these features may not handle. The limits in this area change between releases, so the cards below describe what to check, not settled behavior.
Live migration with active shares
A running VM with a virtiofs share holds open file handles and cache state on the source host, and that state does not move with the memory copy. Confirm in the release notes for your Proxmox VE version whether live migration is allowed for VMs with directory mappings attached. If it is blocked, plan maintenance windows that stop the guest, and confirm that HA recovery still restarts the guest correctly after a node failure.
Snapshots that include RAM
A snapshot with RAM saves the running guest's memory so it can resume later. Whether that snapshot also covers the state of a shared directory, and whether the share keeps working after a rollback, depends on the version in use. Ask for the documented behavior in writing, then test a rollback on a copy of the VM: open a file through the share, restore, and confirm the guest sees the contents it expects.
Hibernation and resume
Hibernating a guest writes its memory to disk and stops it, and the guest expects the same file system view when it resumes. If the host directory changed while the VM was off, open files, locks and cached writes may no longer match what the guest remembers. Confirm whether hibernation is supported with virtiofs shares, and make sure workloads have flushed unsaved writes before the guest is suspended.
Behavior during unsupported operations
When an operation is not supported with a share, you need to know whether Proxmox VE refuses it up front or lets it run and leaves the guest partly consistent. Test both paths. Check the task log and the guest's kernel messages after a failed migration or snapshot, and confirm the guest recovers without losing files it wrote before the operation started.
Backups alongside these limits
Backups rely on snapshot-style operations, so a limit on snapshots can change how backups of a VM with shares run. Confirm whether backup jobs for these VMs use the same mode as other VMs, whether the guest agent freezes the file system during the job, and whether the share's contents are included in the backup at all. Treat the share as separate from the VM disk until those answers are documented.
Confirm before design approval
Limits in this area change between Proxmox VE releases, so a design approved on one version may fail after an upgrade. Record the exact version, the release notes and the test results in the design document. Repeat the migration, snapshot and hibernation tests after each upgrade, and tie the approval to that version. Release announcements are a useful starting point for what changed.
Proxmox release announcementsQuestions teams ask before sharing host directories with VMs
Can our own team configure virtiofs without outside help?
Often yes, if your administrators already run Proxmox VE and Linux hosts and can test changes before production. The basic setup is a directory mapping on each host and a driver and mount inside the guest. The harder work is deciding which directories to share, with what permissions, and whether each guest operating system supports the driver you need. Teams new to Proxmox VE usually benefit from a short design review, because a wrong mapping can expose host data to a VM. Have your administrators read the Proxmox VE administration guide and confirm the virtiofs steps for your installed release in a lab before changing production.
What drives the effort and duration of a virtiofs project?
The main drivers are the number of nodes that must see the same directories, the mix of guest operating systems, the migration and backup behavior you need to keep, the depth of the security review, and how much test coverage your team wants before rollout. Each one adds design decisions and test cases. No duration figure is given here because it depends on those inputs. Ask any provider for a written breakdown by phase (design, host configuration, guest configuration, testing and handover), so you can see which driver is adding time and decide where to reduce scope.
How does the number of nodes change the work?
Node count changes the design more than the setup steps. A VM can only use a shared directory on a node where that mapping exists, so every node that might run the guest needs a consistent configuration. The cluster layout also affects recovery. Proxmox VE high availability needs at least three cluster nodes for reliable quorum, shared storage for guests, redundant hardware and watchdog-based fencing. The scope should name the nodes that will carry each mapping, and state whether high availability guests depend on those mappings and how a failed node is expected to recover them.
How do guest operating system mix and driver needs affect the project?
Each guest operating system needs its own driver installation and testing, and support can differ by OS version. Linux guests and Windows guests follow different installation paths, and older versions may need extra steps or may not be covered at all. Before work starts, list every guest OS and version that will mount a shared directory, then confirm driver support for each one against the current Proxmox VE documentation and the guest vendor's documentation. Guests that will not get a supported driver should be excluded from scope rather than discovered during rollout.
How do migration, snapshot and backup requirements affect the scope?
These requirements are often the largest source of surprise. Live migration, snapshots that include RAM, hibernation and backups can each behave differently when a VM has shared directories attached. Confirm the current limits for your Proxmox VE release in the vendor documentation and release notes before you commit to a design. The Proxmox VE built-in backup tool creates consistent snapshots of running VMs and containers, but shared directory behavior should be tested with your own backup target and restore procedure. Write the required behaviors into the scope so they are tested, not assumed.
Does a security review need to be part of the engagement?
A shared directory gives a guest direct access to host files, so the review should cover which host paths are exposed, file ownership and permissions, who holds administrative rights inside the guest, and whether access is logged. It should also cover the Proxmox VE management plane, including administrator accounts and two-factor sign-in, because a user who can change mappings can change what a VM sees. DeployOpen can include a security review in a fixed-scope engagement and can also test the result independently. Decide early whether the review is a design check, a test or both, because that choice changes the scope and the cost.
What does our team need to provide for the work?
A fixed-scope engagement needs access and time from your side. Typically that means administrative access to the Proxmox VE nodes and cluster, administrative rights inside the guests that will mount shared directories, a lab or staging cluster for testing, sample or test workloads that resemble production, and a named contact who can approve design choices. You also need a change window for production steps and a list of the directories, guest operating systems and recovery expectations in scope. Ask the provider to list these inputs in the written scope so gaps show up before work begins, not during it.
How is the cost of a fixed-scope engagement set?
DeployOpen does not publish a price list. Most engagements are fixed-scope, and the scope, deliverables and timelines are agreed in writing before work starts. The quote follows from that written scope, so the scope drives the cost: node count, guest mix, backup and migration requirements, security review depth and the handover documents you want. Costs are generally one-time for design, build, testing and handover. Ongoing support, upgrades and continuous testing are separate retainers. When you request a quote, ask for line items for each phase, what is one-time and what recurs, and what changes the price if the scope grows.
How DeployOpen scopes and delivers virtiofs shares on Proxmox VE
DeployOpen, a Chainscore Labs company, starts a virtiofs project by writing the scope down before anyone touches a host. The written scope lists each host directory to be shared, the VMs that will mount it, the guest operating systems involved, whether the shares must survive live migration, and whether snapshots with RAM or hibernation are expected. Those answers decide the design, because the current limits on live migration, snapshots with RAM and hibernation apply to VMs that use directory mappings, and a share that must move with a guest during maintenance can rule out a design that otherwise looks simple. DeployOpen also records who administers the mappings, which Proxmox VE roles can create them, and how the directories are owned and permissioned on the host, so access control is agreed before the first mapping exists.
Delivery follows a test-first sequence. DeployOpen builds a lab or staging node that matches the production hypervisor version, creates the directory mappings, installs the guest driver in each target guest and confirms that reads, writes, ownership and file locking behave as the application expects. Every guest image the client uses is tested, including any Windows template, because a share that mounts in one image may not mount in another until its driver is present. The test plan also covers what happens on a node that cannot see the directory, and what the guest sees after a restart. Each test result is recorded against the scope, and the limits that still apply after testing are written into a short operations document the client keeps with the runbooks. The client should confirm current driver support and limits against the Proxmox VE documentation for the version it runs. Clients who want continuing help can add a DeployOpen retainer covering driver updates, Proxmox VE upgrades and retesting after changes to the host or guest images.

