Setting up a shared folder between virtual machine and host
Some quick notes on setting up a shared folder between a host computer
and a virtual machine Manager (and VM dependencies)
- Install virtiofsd to allow shared folders between host and guest. This may just be a path: Some reasonably meaningful string; I chose host-share
- Finish setup and installation
- In the VM, allow mounting the share.
- Pick a mountpoint (it doesn't need to already exist). I chose /home/USER/vmshare.
Create a folder somewhere for sharing. I chose /home/USER/vmshare.
Create a virtual machine, using Debian 13 for both host and
guest. This
is great if you're working with untrusted files and want a safe place
to work with them. (Another option is something like magic-wormhole,
if network access is permitted.)
The only really unintuitive thing is the virtiofs "target". I thought this was supposed to be a VMM UI bug.
On host:
-
Install
virt-managerfor the actual Virtual Machine: -
Use Debian 13 live/installer ISO
- Configure:
- Memory: Enable shared memory
- Add Hardware: Filesystem
- Driver: virtiofs
- Source path:
/home/USER/vmshare.
Create a virtual machine:
- Use Debian 13 live/installer ISO
- Configure:
- Memory: Enable shared memory
- Add Hardware: Filesystem
- Driver: virtiofs
- Source path:
/home/USER/vmshare.
Create a folder somewhere for sharing. I chose host-share virtiofs defaults 0 0 to /etc/fstab.
- I think that's all
No comments yet.
Self-service commenting is not yet reimplemented after the Wordpress migration, sorry! For now, you can respond by email; please indicate whether you're OK with having your response posted publicly (and if so, under what name).