Closed candlerb closed 3 years ago
It looks like the CI is running with a very old version of packer, and that's why it's failing:
1.38s$ curl -L -o packer.zip https://releases.hashicorp.com/packer/1.2.2/packer_1.2.2_linux_amd64.zip && unzip -d bin packer.zip
1.79s$ PATH=$(pwd)/bin:$PATH bundle exec rake
Validating centos-7.6-x86_64.json...
Template validated successfully.
Validating ubuntu-20.04-amd64.json...
Template validation failed. Errors are shown below.
Errors validating build 'virtualbox-iso'. 1 error(s) occurred:
* unknown configuration key: "boot_keygroup_interval"
This must have been broken, i didn't add that key. However I'll look into a fix.
This patch enables cloud-init in the VM.
Without it, the VM has hard-coded networking (dhcp on interface
enp3s0
). This is problematic in environments where the network interface is called something else - e.g.ens3
, which is what qemu provides. Cloud-init also permits users to provide a cloud-init data source to configure networking and/or change user/pass details at startup.However, when there is no cloud-init data source, cloud-init will just configure the external interface with dhcp4 anyway: e.g.
(for ease of testing, I based this on top of #26. I can rebase onto master if you prefer)Now rebased, and fixed reset of cloud-init state