diff --git a/ubuntu/scripts/cleanup.sh b/ubuntu/scripts/cleanup.sh index e1c876a..5ea903f 100644 --- a/ubuntu/scripts/cleanup.sh +++ b/ubuntu/scripts/cleanup.sh @@ -30,6 +30,22 @@ if [[ ${UBUNTU_VERSION} == 16.04 ]] || [[ ${UBUNTU_VERSION} == 16.10 ]]; then # provisioner. sed -i "s/ens3/ens5/g" /etc/network/interfaces fi +if [[ ${UBUNTU_VERSION} == 17.10 ]]; then + # by default, ubuntu 17.10 uses netplan (from the nplan package), however + # that has one fixed config after install - which points to the wrong + # devicename after reboot, so install a small stub networkctl config to + # manage all ethernet devices + + cat >/etc/systemd/network/95-defaulteth.network <> /etc/network/interfaces diff --git a/ubuntu/ubuntu1710.json b/ubuntu/ubuntu1710.json new file mode 100644 index 0000000..69758f5 --- /dev/null +++ b/ubuntu/ubuntu1710.json @@ -0,0 +1,12 @@ +{ + "_comment": "Build with `packer build -var-file=ubuntu1710.json ubuntu.json`", + "vm_name": "ubuntu1710", + "cpus": "1", + "disk_size": "65536", + "iso_checksum": "8ff73f1b622276758475c3bd5190b382774626de5a82c50930519381f6c3a3f8", + "iso_checksum_type": "sha256", + "iso_url": "http://releases.ubuntu.com/artful/ubuntu-17.10.1-server-amd64.iso", + "memory": "512", + "preseed" : "preseed.cfg", + "version" : "1" +}