https://github.com/reegnz/packer_macos_qemu
Building an Ubuntu image with Packer on MacOS with QEMUI and hypervisor-framework
https://github.com/reegnz/packer_macos_qemu
cloud-init hypervisor-framework macos packer qemu qemu-hvf ubuntu
Last synced: 6 months ago
JSON representation
Building an Ubuntu image with Packer on MacOS with QEMUI and hypervisor-framework
- Host: GitHub
- URL: https://github.com/reegnz/packer_macos_qemu
- Owner: reegnz
- License: mit
- Created: 2022-11-21T15:28:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T15:29:00.000Z (over 3 years ago)
- Last Synced: 2025-01-11T15:33:15.226Z (over 1 year ago)
- Topics: cloud-init, hypervisor-framework, macos, packer, qemu, qemu-hvf, ubuntu
- Language: HCL
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Building an Ubuntu image with Packer on MacOS with QEMU and hypervisor-framework
Fetching ubuntu cloud image from https://cloud-images.ubuntu.com/.
Then using the QEMU backend of Packer to customize the image and build a new
image out of it:
- https://packer.io
- https://developer.hashicorp.com/packer/plugins/builders/qemu
QEMU is capable of using the MacOS hypervisor-framework to run vm-s with the MacOS-native
hypervisor:
- https://developer.apple.com/documentation/hypervisor
- https://wiki.qemu.org/Features/HVF
The build mounts the cloud image of ubuntu, as a system disk, then an initial cloud-init
config is run from a cdrom mount to set up a provisioning user so packer can log into
the instance and do it's thing:
- https://cloudinit.readthedocs.io/en/0.7.8/topics/datasources.html#no-cloud