(I also reported this to AWS: awsdocs/amazon-ec2-user-guide#123)
The "Running Amazon Linux 2 as a virtual machine onpremises" page describes a fairly cumbersome way of running Amazon Linux 2 in local virtual machines through using various tools to provision ISO9660 seed.iso
files just to serve the VM instance two small data files.
It would be great it the documentation also pointed out that since the VM provisioning is being done with cloud-init
, and the image has configured a fairly extensive datasource_list: [ NoCloud, AltCloud, ConfigDrive, OVF, None ]
which starts with NoCloud, that NoCloud also allows you to serve these files over HTTP.
There are two easy ways of using network configuration instead of seed.iso
. Either you tell GRUB to add a parameter to the kernel boot configuration, or you tell KVM/VMWare/Virtualbox to set the virtual machine's SMBIOS value to something which cloud-init
's NoCloud
understands.
The documentation page https://cloudinit.readthedocs.