Hi, I get the following in syslog on first startup with localds config with static network: Sep 14 07:54:11 foo systemd[1]: Starting Raise network interfaces... Sep 14 07:54:11 foo ifup[332]: ifup: waiting for lock on /run/network/ifstate.enp1s0 Sep 14 07:54:11 foo sh[409]: /etc/network/if-pre-up.d/cloud_inet6: 12: IF_TRY_DHCP: parameter not set Sep 14 07:54:11 foo sh[408]: run-parts: /etc/network/if-pre-up.d/cloud_inet6 exited with return code 2 Sep 14 07:54:11 foo systemd[1]: ifup@enp1s0.service: Main process exited, code=exited, status=1/FAILURE Sep 14 07:54:11 foo sh[333]: ifup: failed to bring up enp1s0 Sep 14 07:54:11 foo systemd[1]: ifup@enp1s0.service: Failed with result 'exit-code'. Sep 14 07:54:11 foo ifup[416]: RTNETLINK answers: File exists Sep 14 07:54:11 foo ifup[332]: ifup: failed to bring up enp1s0 Sep 14 07:54:11 foo systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE Sep 14 07:54:11 foo systemd[1]: networking.service: Failed with result 'exit-code'. As a result, IPv6 is not setup correctly. Below is how to reproduce it (VM host is a Debian buster machine -- but that should not matter). root@bull:~# wget -q -O foo.qcow2 https://cloud.debian.org/images/cloud/bullseye/20210814-734/debian-11-genericcloud-amd64-20210814-734.qcow2 root@bull:~# cat> cloud_init.cfg #cloud-config fqdn: foo.sjd.se manage_etc_hosts: true password: r00tme chpasswd: { expire: False } root@bull:~# cat>network_config_static.cfg version: 2 ethernets: enp1s0: dhcp4: false dhcp6: false addresses: [ 178.174.241.109/26, 2001:9b1:8633::109/48 ] gateway4: 178.174.241.65 gateway6: 2001:9b1:8633::1 nameservers: addresses: [ 213.80.98.2, 2001:9b0::53:1, 213.80.101.3, 2001:9b0::53:2 ] root@bull:~# cloud-localds -v --network-config=network_config_static.cfg seed-foo.iso cloud_init.cfg wrote /var/lib/libvirt/images/seed-foo.iso with filesystem=iso9660 and diskformat=raw root@bull:~# virt-install --name foo --import --os-variant debian10 --memory 1024 --disk foo.qcow2 --disk seed-foo.iso,readonly=on --noreboot --noautoconsole Starting install... Domain creation completed. You can restart your domain by running: virsh --connect qemu:///system start foo root@bull:~# virsh start --console foo ... [ OK ] Started ifup for enp1s0. Starting Raise network interfaces... [FAILED] Failed to start Raise network interfaces. See 'systemctl status networking.service' for details. [ OK ] Reached target Network. Starting Initial cloud-ini… (metadata service crawler)... [ 4.535051] cloud-init[438]: Cloud-init v. 20.4.1 running 'init' at Tue, 14 Sep 2021 07:58:04 +0000. Up 4.51 seconds. [ 4.551574] cloud-init[438]: ci-info: ++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++ [ 4.553864] cloud-init[438]: ci-info: +--------+------+---------------------------+-----------------+--------+-------------------+ [ 4.559719] cloud-init[438]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | [ 4.563556] cloud-init[438]: ci-info: +--------+------+---------------------------+-----------------+--------+-------------------+ [ 4.567555] cloud-init[438]: ci-info: | enp1s0 | True | 178.174.241.109 | 255.255.255.192 | global | 52:54:00:78:0e:03 | [ 4.575577] cloud-init[438]: ci-info: | enp1s0 | True | fe80::5054:ff:fe78:e03/64 | . | link | 52:54:00:78:0e:03 | [ 4.577905] cloud-init[438]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | [ 4.583751] cloud-init[438]: ci-info: | lo | True | ::1/128 | . | host | . | [ 4.586024] cloud-init[438]: ci-info: +--------+------+---------------------------+-----------------+--------+-------------------+
Attachment:
signature.asc
Description: PGP signature