Packer project building Hyper-V VM with:
- Ubuntu Server 24.04
- Docker Engine
Based on:
- https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html
- https://github.com/vmware-samples/packer-examples-for-vsphere/tree/develop/builds/linux/ubuntu/24-04-lts
- Hyper-V
- 4 CPUs and 8GB memory
- Packer 1.11.0+
- Download ubuntu-24.04.1-live-server-amd64.iso from https://ubuntu.com/download/server and place it at the same directory where this README is located
Requires local administrator permissions (Hyper-V requirement).
packer init ubuntu-docker.pkr.hcl && packer build ubuntu-docker.pkr.hcl
The built VM is exported (removed from Hyper-V VM manager) and saved at output/ubuntu-docker.tar.gz.
Import VM from unpacked output/ubuntu-docker.tar.gz.
SSH access:
- Address: ubuntu-docker.mshome.net
- Username: user
- Password: user
Remote access to Docker daemon:
docker -H 'tcp://ubuntu-docker.mshome.net:2375' version