I have multiple Ubuntu 18.04 and Ubuntu 20.04 servers (some upgrades, some fresh installs) running on Hyper-V, Raspberry Pis, and the cloud. I have noticed that for configuring netplan, directory /etc/netplan sometimes contains 00-installer-config.yaml file, and other times 50-cloud-init.yaml file. The content and syntax on both is usually the same so why is the file name different?
1 Answer
I am in an Advanced Linux class, and found myself asking the same thing. The 00-installer-config.yaml file is supposed to be for v20, the 50-cloud-init.yaml for v18, however my VM must think otherwise. I myself found the 00-installer-config.yaml file in my /etc/netplan folder instead. I then rebuilt the 50-cloud-ini.yaml file and removed the 00-installer-config.yaml file. After that, I went to /etc/cloud/cloud.cfg.d and looked through these few file and noticed a "subiquity....." file. This file had one line in it that appeared to act as the "network: {config: disabled}" from 99-disable-network-config.cfg file that disables netplan....so I hashed this out. I then issued netplan generate then netplan apply and rebooted. All is well here now. However, I too need to know for my own development why this may happen.
I hope there is enough information I have provided to further your solution.
4