How to block network settings in Cloud-Init at start VM?

To disable the network configuration in Cloud-Init, you need to create a file /etc/cloud/cloud.cfg.d/99-custom-networking.cfg and add the contents of network: {config: disabled}

To do this, you can execute the command

$ sudo echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-custom-networking.cfg

Need a server for this guide? INET.WS runs Linux and FreeBSD VPS in 14 cities: VPS in the USA, VPS in Canada and in Europe. Data centers, disk types and test IPs of every location: All VPS locations.

Rating: (32 votes, avg. 4.81)