cloud-init interfaces down during first boot

mambodee

New Member
Oct 21, 2021
1
0
1
45
Forgive me if I am missing something simple.

I am using the snippets to attach the following net config to the machine:

YAML:
cat <<\EOF> /mnt/pve/ha-storage/snippets/test-network.yml
version: 1
config:
  - type: physical
    mac_address: '32:52:38:6d:f0:dd'
    name: int0
    subnets:
      - type: static
        address: '192.168.1.4'
        netmask: '255.255.255.0'
  - type: physical
    mac_address: '32:52:38:6d:f0:de'
    name: ext0
    subnets:
      - type: dhcp
EOF


After booting the machines, the interfaces are indeed named int0 and ext0. The 50-cloud-init contains

Code:
auto int0

iface int0 inet static
  address 192.168.1.4/24

auto ext0
iface ext0 inet dhcp


The issue is that neither interface is online. Expecially ext0, which would have gotten a DHCP address with gateway to provide internet connectivity. All of the APT updates fail due to no connectivity. After the first boot, an additional reboot is required. Then the interfaces are online. However, the Cloud-Init software install sections have failed by this point and cloud-init does nothing else.

I am I don't something wrong here?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!