Author Topic: Override zentyal Network Configuration in a VM?  (Read 5359 times)

Alan Lord

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
    • The Open Learning Centre
Override zentyal Network Configuration in a VM?
« on: December 08, 2010, 04:31:02 pm »
For our Virtual Machine configuration we need to have pointopoint set.

The following configuration in the /etc/network/interfaces works perfectly for standard installs of any debian/Ubuntu based server systems.

Code: [Select]
iface eth0 inet static
        address 4X.4.1X5.X3
        netmask 255.255.255.255
        gateway 2XX.1XX.9X.2X8
        pointopoint 2XX.1XX.9X.2X8

However, I have just installed Zentyal to act as our mail server configuration system and it keeps trying to override my network configuration by removing the pointopoint line and adding a broadcast. This renders the network interface on the VM inaccessible.

Can I override the automatic network save? If I edit the file manually and restart networking from the CLI I can access Zentyal just fine. But every time I save something it breaks the networking configuration :-(

TIA

Alan
--
The Open Learning Centre

zephyrnet

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +1/-2
    • View Profile
Re: Override zentyal Network Configuration in a VM?
« Reply #1 on: March 09, 2011, 12:22:44 pm »
Hi,

Did you get a response to this?

I have the same issue.

as soon as zentyal installed on top of ubuntu it rewrites all networking config.

It must generate another config file somewhere else - but where ?

It means that zentyal is useless as a base system to host virtual machines :-(


Alan Lord

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
    • The Open Learning Centre
Re: Override zentyal Network Configuration in a VM?
« Reply #3 on: March 10, 2011, 10:12:01 am »
Did you get a response to this?

I have the same issue.

as soon as zentyal installed on top of ubuntu it rewrites all networking config.

Hi, yes I think I found out about the hooks idea.

In /etc/ebox/hooks I have a file called network.postsetconf

which contains the following.

Code: [Select]
#!/bin/sh

if grep "/sbin/ifenslave" /etc/network/interfaces >/dev/null; then
        exit 0
fi
cp /etc/network/interfaces.vm /etc/network/interfaces

exit 0

The file interfaces.vm contains what I need the server to have and gets copied over the Zentyal file as and when needed.

I think this is how I fixed it... It was quite a while ago now but that looks about right.

Cheers

Alan
--
The Open Learning Centre