You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a container with the Turnkey Core LXC template, the LXC obtained the IP address via DHCP. But the DNS name is not set as the hostname configured in PVE. Instead, it's just the hostname derived from the MAC address. I used to workaround it by creating a IP reservation (MAC to IP and hostname mapping).
But recently I found the following:
debian-12-turnkey-core: create a container with this template. Set the hostname in PVE. Start the container, login LXC, it obtained the IP address. But if you look at the dnsmasq hostname, it's not the hostname specified but the MAC address. You can modify the hostname of the container in PVE and then reboot. It has no effect. It's still the mac address is associated with the IP.
debian-12-turnkey-wordpress_18.x has the same problem, as it's based on the same turnkey core LXC template.
debian-12-standard_12.*, debian-11-standard_11.x do not suffer from this bug. You can see the dns name for the container obtained is the host name set in the PVE. You can also change the hostname in PVE, reboot the container and the new hostname will be associated with the IP address.
Based on the experiments of various container templates, I believe the issue is in the turnkey core LXC.
I currently work around this problem by doing the following: I added the following in crontab:
I believe this issue has existed for a long time.
PVE 8.1, 8.2.4
DHCP server: fresh tomato's dnsmasq
When I create a container with the Turnkey Core LXC template, the LXC obtained the IP address via DHCP. But the DNS name is not set as the hostname configured in PVE. Instead, it's just the hostname derived from the MAC address. I used to workaround it by creating a IP reservation (MAC to IP and hostname mapping).
But recently I found the following:
Based on the experiments of various container templates, I believe the issue is in the turnkey core LXC.
I currently work around this problem by doing the following: I added the following in crontab:
The text was updated successfully, but these errors were encountered: