IPv4 not available in newly created VM

stsinc

Member
Apr 15, 2021
66
0
11
Hi,
  • I am installing Flatcar in a Proxmox VM. I have already several VMs working under the `vmbr0` bridge.
  • I disabled the Firewall while defining the VM in Proxmox.
  • Everything goes fine during the install from the Flatcar Production ISO image.
  • But when I `ip a` , only IPV6 is available under the `eth0` interface, not IPV4, which I need to connect to my local network and upload the Ignition file.
'20230619_131421'.jpg

What am I doing wrong?
Thanks.
S.
 
Last edited:
I also double-checked using the Flatcar ISO image I had used previously to create another Flatcar CT. The IPv4 is also not available.
So I guess there is something in my Proxmox deployment which is wrong.
 
This happened on my Flatcar linux as well, and I solved it by adding a bit more to the `/etc/systemd/network/static.network` unit... specifically:

```
[Match]
Name=eth0

[Network]
LinkLocalAddressing=ipv6
Address=10.0.0.12
DNS=10.0.0.11
Domains=local

[Route]
Destination=0.0.0.0/0
Gateway=10.0.0.1
GatewayOnLink=true
```

I think the `GatewayOnLink` is the crucial component.