Issue: Some Linux-based custom templates may encounter deployment issues related to network interfaces and IP addresses.

Solution: This problem arises from the presence of the file "70-persistent-net.rules" in the custom template. This file can lead to conflicts with assigned MAC addresses, especially when deploying new cloud servers, as it retains the MAC address of the original cloud server.

To avoid such conflicts and ensure smooth deployment for future cloud servers, it's recommended to take the following steps before creating a backup and template:

  1. Delete the File: Execute the following command on your server to remove the problematic file:

    bash
    rm /etc/udev/rules.d/70-persistent-net.rules

    This action eliminates the conflicts associated with the "70-persistent-net.rules" file.

  2. Automatic Regeneration: It's important to note that this file is automatically regenerated after a reboot. Therefore, removing it does not pose any risk to your server, and the file will be recreated as needed.

By creating templates without the "70-persistent-net.rules" file, you ensure that future cloud servers based on these templates will have IP information correctly assigned during the provisioning process. This solution addresses the deployment issues related to network interfaces and facilitates a smoother experience for your Linux-based custom templates.