Re: Debian 12, setting hostname does not persist

2023-06-27 Thread David Mehler
"You said you were on an OpenVZ hosted VPS, right?  That means you're using the host's kernel, which is generally not going to be the same as what you would have on a non-virtual Debian 12 system." So, is that my problem? Thanks. Dave. On 6/27/23, Greg Wooledge wrote: > On Tue, Jun 27, 2023 at

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread Greg Wooledge
On Tue, Jun 27, 2023 at 08:33:21PM -0400, David Mehler wrote: > The question is this, what kernel version (I believe it is 6.x?) comes > with Debian 12? The reason I ask is because of this: > > > #uname -a > Linux hostname.example.com 4.19.0 #1 SMP Thu Dec 15 20:31:06 MSK 2022 > x86_64 GNU/Linux

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread David Mehler
Hello, Thanks for your reply. Auditd is giving me a weird error that google has shown is more common than it should be. If the answer to this next question is what I'm thinking it is, that very likely means a kernel issue. The question is this, what kernel version (I believe it is 6.x?) comes wi

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread Reco
Hi. On Tue, Jun 27, 2023 at 10:54:32AM -0400, David Mehler wrote: > used because the interface(s) are all getting there IP addresses > statically assigned. New plan then. apt install auditd echo '-a always,exit -F arch=b64 -S sethostname' \ > /etc/audit/rules.d/hostname.rules ech

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread David Mehler
Hello, Thanks for the suggestion, I tried them both and didn't work. Then I decided to do what I probably should have checked a few hours ago before the frustration really hit, and that is /etc/network/interfaces and /etc/dhcp/dhclient.conf is from what I can tell not even being used because the i

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread gene heskett
On 6/27/23 06:49, David Mehler wrote: Hello, I've got a VPS through a2hosting it was running Debian 11 specifically 11.7. Long story short I just had to reinstall it after a hard week of work so instead of doing it all over again on 11.7 I decided to upgrade to 12.0. I used this: https://www.ma

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread Reco
Hi. On Tue, Jun 27, 2023 at 08:06:17AM -0400, David Mehler wrote: > You might be on to something though here's what is in > /etc/dhcp/dhclient.conf I'm just not sure what options to comment out? That's even easier. Instead of send host-name = gethostname(); request subnet-mask, broadcas

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread David Mehler
Hello, Thank you for your reply. To your first option I do not have the cloud-init package installed. I don't know if this matters but hostnamectl reports that the virtualization is openvz. To your second option I don't have a dhcpcd.conf file, though I did look for anything dhcp on the system, he

Re: Debian 12, setting hostname does not persist

2023-06-27 Thread Reco
Hi. On Tue, Jun 27, 2023 at 06:48:52AM -0400, David Mehler wrote: > the upgrade itself went just fine. I set my time zone that stuck and > is persisting then went for the hostname, I am doing this via ssh, in > setting the hostname it won't persist through a reboot. One of the possible re

Debian 12, setting hostname does not persist

2023-06-27 Thread David Mehler
Hello, I've got a VPS through a2hosting it was running Debian 11 specifically 11.7. Long story short I just had to reinstall it after a hard week of work so instead of doing it all over again on 11.7 I decided to upgrade to 12.0. I used this: https://www.makeuseof.com/upgrade-to-debian-12-bookwor