Skip to content

Instantly share code, notes, and snippets.

@cardboardcode
Last active May 20, 2026 14:47
Show Gist options
  • Select an option

  • Save cardboardcode/5064454ddab1d90d1f9823ab32602b4c to your computer and use it in GitHub Desktop.

Select an option

Save cardboardcode/5064454ddab1d90d1f9823ab32602b4c to your computer and use it in GitHub Desktop.
For People In A Hurry: How To Set up Shared Folder in QEMU Virt-Manager

Note

This is a guide to quickly set up a shared folder between Ubuntu Virtual Machine and Ubuntu Host Machine.

Instructions 📘

  1. Set Enable shared memory to true for the instance. See screenshot below:
image
  1. Add New Virtual Hardware. See screenshot below:
image
  1. Install the following dependencies in Virtual Machine:
sudo apt update -y && sudo apt install -y spice-vdagent qemu-guest-agent

Add the following line to the end of etc/fstab:

sudo nano /etc/fstab
shared_folder /mnt/host virtiofs defaults,nofail 0 0

Verify ✔️

Run the command below and you should see no errors:

sudo mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment