You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide provides step-by-step instructions for setting up VirtioFS on an Ubuntu virtual machine running on Proxmox. VirtioFS is a shared file system that allows for high-performance file sharing between the host and guest systems.
You have successfully set up VirtioFS shares between your Proxmox host and Ubuntu VM. The shares should now be accessible at the specified mount points and will be automatically mounted at boot.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
VirtioFS Setup Guide for Ubuntu on Proxmox
Introduction
This guide provides step-by-step instructions for setting up VirtioFS on an Ubuntu virtual machine running on Proxmox. VirtioFS is a shared file system that allows for high-performance file sharing between the host and guest systems.
Prerequisites
Step 1: Configure VirtioFS in Proxmox
/etc/pve/qemu-server/VMID.conf
)Step 2: Prepare Ubuntu Guest
Update your system and upgrade the kernel:
After rebooting, verify the new kernel version:
You should see a kernel version 5.15.0-xx-generic or newer.
Install required packages:
Ensure the VirtioFS kernel module is loaded:
To make it persistent across reboots:
Step 3: Create Mount Points
Create directories for your shares:
Set appropriate permissions (replace
youruser
with your actual username):Step 4: Configure Automatic Mounting
Edit the fstab file:
Add the following lines to mount the shares at boot:
Save the file and exit the editor.
Step 5: Mount the Shares
Mount all filesystems defined in fstab:
Verify the mounts are working:
You should see your VirtioFS shares listed in the output.
Step 6: Verify Read/Write Access
Test write access to the shares:
Check if files were created:
Troubleshooting
If mounts fail on boot:
journalctl -xe
lsmod | grep virtio
sudo dmesg | grep -i virtio
If you get permission errors:
If the shares don't appear:
Performance Tuning (Optional)
For better performance, you can add these options to your fstab entries:
direct_io=1
- Bypass the page cache (good for large files)noatime
- Don't update file access timesnodiratime
- Don't update directory access timesExample:
Conclusion
You have successfully set up VirtioFS shares between your Proxmox host and Ubuntu VM. The shares should now be accessible at the specified mount points and will be automatically mounted at boot.
Beta Was this translation helpful? Give feedback.
All reactions