Hacker News new | ask | show | jobs
by rwmj 1023 days ago
virtio-fs (https://virtio-fs.gitlab.io/) is a more modern option for sharing files between host and guest. Also if the VM is offline and you need to pull files on or off, then guestfish (https://libguestfs.org/guestfish.1.html).
1 comments

I didn’t know about Guestfish, thanks for the reference!

Yes, virtio-fs is an option but I should have added that one of my goals was to not lock myself into a platform… I want to have the possibility of running my VMs on Windows as well and Samba seems like the easiest choice there. Just spin up a Samba share inside the VM, mount it on the Windows host and you’re good to go. No need to install any additional dependencies on the host.

I’ve tried the Windows NFS driver for Vagrant a while back and my conclusion is that it’s best not to force a square peg into a round hole… Not to mention that these custom solutions can experience software rot throughout the years.