How to fix auto IP setup with Ubuntu 20.0, Ubuntu 18.04 and CentOS 8? Print

  • 1

As we found that there is an issue with the net plan. When VM is created at that time these operating systems (Ubuntu 20.0, Ubuntu 18.04, and CentOS 8) are creating two network interface files. So, two files are conflicting with each other.  You need to remove the old network interface file from the existing VM template.
 
To remove the existing network interface file, follow the given below steps:
 
1. Convert your VM template to VM and power on it
2. Open a console in the browser
3. Remove existing network interface file
4. Power off the VM
5. Convert back to the template
 
For Ubuntu 18.04 you need to disable the cloud-init. Because OS by default enabled cloud-init. Which is causing issues with auto IP setup.
 
To disable cloud-init follow the given below instructions.

1. Convert your VM template to VM and power on it

2. Open a console in the browser

3. Run given below commands.

  • sudo touch /etc/cloud/cloud-init.disabled. 
  • dpkg-reconfigure cloud-init
  • sudo dpkg-reconfigure cloud-init
  • sudo apt-get purge cloud-init
  • sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
  • sudo reboot

4. Power off the VM

5. Convert back to the template


Was this answer helpful?

« Back