Ubuntu 22.04 container /etc/resolv.conf symlink wiped out after every reboot.

EOC_Jason

New Member
Apr 16, 2022
4
0
1
I'm trying to transition from older Debian 10 container to a newer Ubuntu 22.04 container. After installing resolvconf everything worked as expected until I rebooted, then I noticed the symlink /etc/resolv.conf -> ../run/resolvconf/resolv.conf was gone. I spent hours going over and comparing configs between the debian and ubuntu installs and couldn't find anything causing the problem.

Finally I searched here and found a post mentioning to create a /etc/.pve-ignore.resolv.conf file, which solved my problem!

However, I'm puzzled why the symlink is getting obliterated in Ubuntu, but not in Debian? The Debian install does NOT have the ignore file.

Both containers are using DHCP, and the net0 line in the lxc configs are identical (except for the mac addr of course). In the Proxmox config everything under DNS says "use host settings".

Is there some other config somewhere in proxmox or in the container that tells it to check / overwrite the /etc/resolv.conf file on boot???
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!