Sign inSign up

glorpen/packer

By glorpen

•Updated about 8 years ago

Based on official image, Packer container with qemu support. Allows running as non-root user.

Image
0

125

glorpen/packer repository overview

⁠Packer

Based on official image, Packer container with qemu support.

Allows running as non-root user.

⁠KVM

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)

⁠Usage

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

Tag summary

Content type

Image

Digest

Size

66.8 MB

Last updated

about 8 years ago

docker pull glorpen/packer:qemu-latest