** Description changed: Refactor Netplan's generate binary to be a proper systemd-generator, according to https://www.freedesktop.org/software/systemd/man/latest/systemd.generator.html and "FO165 – Netplan generator architecture". Upstream changes: https://github.com/canonical/netplan/pull/552 + + As released in https://github.com/canonical/netplan/releases/tag/1.2 [Test plan] $ cat > meta.yaml <<EOF instance-id: ubuntu01 local-hostname: testimg EOF $ cat > user.yaml <<EOF #cloud-config ssh_pwauth: true password: test chpasswd: expire: false EOF $ cat > netplan.yaml <<EOF network: version: 2 ethernets: id0: match: macaddress: "ca:fe:ca:fe:00:aa" dhcp4: true dhcp6: true set-name: "en1" id1: match: macaddress: "f0:0d:ca:fe:00:bb" addresses: ["1.2.3.4/24"] dhcp6: true set-name: "en2" #optional: true EOF $ cloud-localds --network-config=netplan.yaml seed.img user.yaml meta.yaml $ wget https://cloud-images.ubuntu.com/resolute/current/resolute-server-cloudimg-amd64.img $ qemu-system-x86_64 \ -machine accel=kvm,type=q35 \ -cpu host \ -m 2G \ -device virtio-net-pci,netdev=net0,mac=ca:fe:ca:fe:00:aa \ -netdev user,id=net0,hostfwd=tcp::2222-:22 \ -nic user,model=virtio-net-pci,mac=f0:0d:ca:fe:00:bb \ -drive if=virtio,format=qcow2,file=resolute-server-cloudimg-amd64.img \ -drive if=virtio,format=raw,file=seed.img #-snapshot # avoid "-snapshot" to preserve changes to the disk-image # login: ubuntu / test $ ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" -p 2222 ubuntu@localhost # install new Netplan generator, e.g. from ppa:slyon/sd-1997-generator-split $ sudo apt install netplan-generator # Play around with /etc/netplan/50-cloud-init.yaml modifications # calling "netplan apply" and/or doing reboots, potentially staring # over with a fresh cloud-init $ sudo netplan apply $ sudo cloud-init clean --logs $ sudo reboot => Make sure settings are correctly applied at runtime ("netplan apply"), boot ("sudo reboot") and first-boot ("sudo cloud-init clean --logs && sudo reboot").
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2133724 Title: Update to Netplan v1.2, to enable the split generator To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2133724/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
