Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 773 Bytes

linux.md

File metadata and controls

42 lines (28 loc) · 773 Bytes

Linux Setup

Linux is the recommended local build environment because QEMU/KVM is mature and fast.

Ubuntu or Debian Host

Install required tools:

sudo apt-get update
sudo apt-get install -y make qemu-system-x86 qemu-utils cloud-image-utils openssh-client

Install Packer from HashiCorp's official packages or binary releases, then run:

make doctor
make init
make validate
make build
make test

KVM Access

For faster builds, make sure /dev/kvm is available and your user can access it:

ls -l /dev/kvm
groups

On Ubuntu/Debian, users commonly need membership in the kvm group. Log out and back in after changing group membership.

Output

The build produces:

artifacts/ubuntu-24.04-base/ubuntu-24.04-base.qcow2