Proxmox 1.9 Ubuntu guests keep loosing network config

marotori

Member
Jun 17, 2009
161
1
16
Hello,

I have an odd issue with proxmox 1.9

I have started to migrate my machines to it - and now find the guest machines loosing their network config.

All my OPENVZ Guests have an eth0 interface mapped to them. This is necessary as each interface. e.g. VMBR7 is on its own vlan. So.. we map the interfaces to vlans in this fashion.

Long and short of it is my machines have a config file in them:

e.g.

Code:
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.


# The loopback network interface
auto lo
iface lo inet loopback


auto venet0
iface venet0 inet static
        address 127.0.0.1
        netmask 255.255.255.255
        broadcast 0.0.0.0
        up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0


auto eth0
iface eth0 inet static
        address 192.59.77.67
        gateway 192.59.77.65
        netmask 255.255.255.248
        network 192.59.77.64
        broadcast 192.59.77.71
        up route add default gw gateway 192.59.77.65
        pre-up iptables-restore </etc/iptables.rules

Issue I have is that after migrating the /etc/network/intefaces file gets overwritten!!

The content of the new file says to use interfaces.head & interfaces.tail.

Ok.. I use that. But it never works!


Anyone know what is going on here?

Rob
 

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!