New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Network/Interfaces overwritten on every restart
I have Serves from some providers where I am installed a fresh OS from ISO File.
After every restart from the control panel
The /etc/network/interfaces is overwritten from the control panel.
That’s really annoying especially when I have custom settings in that config.
Why ? And how can I disable it ?

Comments
Is VPs or dedicate server?
Try with this
sudo touch /etc/cloud/cloud-init.disabled
sudo systemctl disable cloud-init
Which panel? (I have seen Virtualizor do that)
chattr +i /etc/network/interfacesmight helpWhat? A fresh OS from ISO but your provider still change your interface file? Something here does not make sense
Your OS may have cloud-init support. In some cases, it overrides the network configuration.
What panel are they using?
It’s virtualizor.
I’ve uninstalled cloud-init
But the issue is still there
The Debian 12 is a fresh install from the ISO file.
After installation ive changed the /etc/network/interfaces and restarted the server.
after restart the config file is still overwritten from something from the control panel or something
That's a Virtualizor problem I'm having for years when using my own Debian ISO installation. My default email text to the support is:
Would you mind to deactivate the automatic network configuration for my VPS (it overwrites my interfaces file after a restart using the control panel).
https://www.virtualizor.com/docs/admin/creating-a-vps/#network-settings => the option "Disable network configuration" should do the magic.
In most cases the support changes the settings and everything is fine.
Oh perfect.
Thank you so much.
I will try that
I've experienced the same problem from some provider too.
Network interfaces remains the same if i restart it from ssh.
But it will reset to to default if restarted from vps panel (solus/virtualizor)
If you contact your provider they can disable network file writing in Virtulizor for you
Thank you so much
Can the "disable network configuration" setting be made available to the customer side to avoid those tickets? Another way to circumvent it is to use netplan which gets not overwritten by Virtualizor.
Also does anybody have experience with Virtualizor uefi version? Since they don't seem to support q35, does it still work well, also compared to Proxmox?
I do the custom settings in

/etc/network/interfaces.d/50-extraIt can be done as a node level for all VPS on that node and plan but I do not believe there is a way to allow customers to enable/disable this feature yet
Install with your own ISO, purge and prevent apt from installing qemu-guest-agent and cloud-init (with a simple apt preference file). Should do the job (or at least seems to, in my case)
Some panels like ISPSystem are very aggressive and will just modify the disk raw and install. There's not really much you can do against that, besides LUKS.
Virtfuuuuuuusiooooooooon

also sometimes it applies with netplan and not interfaces file
just chattr +i
Are the you person that is emailing providers about moving to Virtfusion currently ?
I'm not that insane