Based on official image, Packer container with qemu support. Allows running as non-root user.
125
Based on official image, Packer container with qemu support.
Allows running as non-root user.
To allow access to KVM for non-root user, it has to be added to kvm group.
When using docker run you can use following option:
--group-add $(getent group kvm | cut -d: -f3)
Run as current user, with KVM:
docker run -u $(id -u):$(id -g) --group-add $(getent group kvm | cut -d: -f3)
-v "$(pwd)":/srv --device /dev/kvm
--rm -it glorpen/packer:qemu-latest --help
And without KVM:
docker run -u $(id -u):$(id -g)
-v "$(pwd)":/srv --device /dev/kvm
--rm -it glorpen/packer:qemu-latest --help
Content type
Image
Digest
Size
66.8 MB
Last updated
about 8 years ago
docker pull glorpen/packer:qemu-latest