VirtioFS: Difference between revisions

Bachp (talk | contribs)
Created page with "[https://virtio-fs.gitlab.io/ VirtioFS] is a filesystem that allows mounting host path inside a VM with minimal performance overhead. == Mounting == VirtioFS directories can be mounted directly in NixOS viar the standard fileSystems option. Assuming you setup a VirtioFS called VMShare in your VM manager, like libvirt, you can mount it by adding the following inside your VM. fileSystems."/mnt/VMShare" = { device = "VMShare"; fsType = "virtiofs";..."
 
Klinger (talk | contribs)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://virtio-fs.gitlab.io/ VirtioFS] is a filesystem that allows mounting host path inside a VM with minimal performance overhead.
[https://virtio-fs.gitlab.io/ VirtioFS] is a filesystem that allows mounting host path inside a VM with minimal performance overhead.


== Mounting ==
== Host Setup ==
VirtioFS directories can be mounted directly in NixOS viar the standard fileSystems option.
In order to use VirtioFS NixOS needs virtiofsd package:
virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ];
 
== VM Setup ==
VirtioFS directories can be mounted directly in NixOS via the standard fileSystems option.


Assuming you setup a VirtioFS called VMShare in your VM manager, like [[libvirt]], you can mount it by adding the following inside your VM.
Assuming you setup a VirtioFS called VMShare in your VM manager, like [[libvirt]], you can mount it by adding the following inside your VM.
Line 14: Line 18:
       ];
       ];
     };
     };
[[Category:Filesystem]]