Proxmox VE tries to detect the Linux distribution in the container, and modifies some files. Here is a short list of things done at container startup:
Changes made by Proxmox VE are enclosed by comment markers:
# --- BEGIN PVE --- <data> # --- END PVE ---
Those markers will be inserted at a reasonable location in the file. If such a section already exists, it will be updated in place and will not be moved.
Modification of a file can be prevented by adding a .pve-ignore.
file for it.
For instance, if the file /etc/.pve-ignore.hosts
exists then the /etc/hosts
file will not be touched. This can be a simple empty file created via:
# touch /etc/.pve-ignore.hosts
Most modifications are OS dependent, so they differ between different
distributions and versions. You can completely disable modifications by
manually setting the ostype
to unmanaged
.
OS type detection is done by testing for certain files inside the
container. Proxmox VE first checks the /etc/os-release
file
[46].
If that file is not present, or it does not contain a clearly recognizable
distribution identifier the following distribution specific release files are
checked.
DISTRIB_ID=Ubuntu
)
Container start fails if the configured ostype
differs from the auto
detected type.
[46] /etc/os-release replaces the multitude of per-distribution release files https://manpages.debian.org/stable/systemd/os-release.5.en.html