Containerfile for building a virt-manager image.
This image is based on top of vanillaos/pico
and offers a virt
installation.
- Vib
- Podman or Docker
vib build recipe.yml
podman image build -t vanillaos/virt .
- Podman or Docker
- Distrobox
The container needs to be rootfull.
distrobox create --root --init --unshare-groups --unshare-ipc --unshare-netns --unshare-process -i ghcr.io/vanilla-os/virt:main -n virt # replace with your local image if you built it
distrobox enter --root virt
Then start virt-manager:
virt-manager
This should not happen, the image has a dedicated Polkit policy for this. If you encounter this issue, please open an issue.
Please, refer to this from the Distrobox documentation.
If the default network is unreachable, try to start it manually:
sudo virsh net-start default
virsh net-autostart default
if the above command fails due to missing network, try loading it from the XML:
sudo virsh net-define /usr/share/libvirt/networks/default.xml
sudo virsh net-start default
virsh net-autostart default