VM cannot reach internet, cloud-init (Ubuntu 18.04+)

Mathiiss

New Member
Aug 18, 2020
8
0
1
28
Hi, I'd like to use cloud-init to deploy a VM automatically, but the internet connection doesn't work with netplan, on Ubuntu 16.04, 14.04 it works. I looked here https://forum.proxmox.com/threads/cloud-init-ubuntu-18-04-bug-mit-default-gw.45286/ and added in netplan routes:
- to: 0.0.0.0.0/0
via: 95.216.XX.XX.XX
on-link: true
metric: 3

it works but I'd like it to do it automatically for my clients... My host is Hetzner.
 
Last edited: