Skip to content

Instantly share code, notes, and snippets.

@mirkobrombin
Last active December 14, 2025 11:02
Show Gist options
  • Select an option

  • Save mirkobrombin/5c2745b54dd16b603d54dc72c341aa4b to your computer and use it in GitHub Desktop.

Select an option

Save mirkobrombin/5c2745b54dd16b603d54dc72c341aa4b to your computer and use it in GitHub Desktop.
Running virt-manager on Vanilla OS via Distrobox
DBX_SUDO_PROGRAM=pkexec /usr/share/apx/distrobox/distrobox create \
--pull \
--root \
--init \
--unshare-all \
--image ghcr.io/vanilla-os/pico:main \
--name libvirtd \
--additional-flags "-p 2222:22" \
--init-hooks "apt update && apt install -y openssh-server libvirt-daemon-system libvirt-clients qemu-system qemu-utils virt-manager && systemctl enable ssh.service && systemctl enable libvirtd && usermod -aG libvirt $USER"
DBX_SUDO_PROGRAM=pkexec /usr/share/apx/distrobox/distrobox-enter --root libvirtd -- distrobox-export --app virt-manager
@mirkobrombin
Copy link
Author

Makes sense.

@lux70
Copy link

lux70 commented Dec 14, 2025

@mirkobrombin

Ciao Marco

I have a question. I'm on Kalpa Desktop. To have USB passthrough, does Libvirtd need to be running on the host system as well as in the distrobox container? And with the appropriate udev rules?

and... What if I want to use spice with virt-manager?

Ciao e grazie

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