Hello,
I have Proxmox in the latest version with numerous VMs and LXC containers. Recently, I set up another LXC container (Debian 12 Bookworm, static IP) running a small web server with NGINX (latest version) hosting a static website (only accessible in the home network). Now, I'm facing an issue where the website is reachable, but it goes offline after several hours. Additionally, in the router (Fritzbox), I only find the MAC address of the web server displayed as "offline".
I can't seem to figure out what the problem is. Sometimes the website appears online again (after LXC reboots), but then it disappears again. Where could the problem lie?
Additionally, another question has arisen. Static IP. How can I set the hostname? Apparently, the LXC name in Proxmox is also used as the hostname. However, I don't want that. I want the web server to have a different name on the network. I have unsuccessfully tried editing /etc/hostname and /etc/hosts. The entries either get overwritten by Proxmox or the name doesn't show up in the Fritzbox. I have also unsuccessfully tried the command "hostnamectl set-hostname xyz". Can I persuade Proxmox not to overwrite this data?
Thank you for any assistance.
I have Proxmox in the latest version with numerous VMs and LXC containers. Recently, I set up another LXC container (Debian 12 Bookworm, static IP) running a small web server with NGINX (latest version) hosting a static website (only accessible in the home network). Now, I'm facing an issue where the website is reachable, but it goes offline after several hours. Additionally, in the router (Fritzbox), I only find the MAC address of the web server displayed as "offline".
I can't seem to figure out what the problem is. Sometimes the website appears online again (after LXC reboots), but then it disappears again. Where could the problem lie?
Additionally, another question has arisen. Static IP. How can I set the hostname? Apparently, the LXC name in Proxmox is also used as the hostname. However, I don't want that. I want the web server to have a different name on the network. I have unsuccessfully tried editing /etc/hostname and /etc/hosts. The entries either get overwritten by Proxmox or the name doesn't show up in the Fritzbox. I have also unsuccessfully tried the command "hostnamectl set-hostname xyz". Can I persuade Proxmox not to overwrite this data?
Thank you for any assistance.