The Gandi Community

New version of gandi-hosting-vm2 available for Xen and HVM

We have released a new version of our server management scripts and invite all Gandi Server users to update the `gandi-hosting-vm2` package. Version 2.5-1 contains several improvements for both Xen and HVM platforms.

You’ll find more details in the Changelog (below). In a nutshell, these are some the improvements you might notice:

  • Fixed a bug that created oddly named files at the system’s root (see swap and untar in the changelog)
  • Improved boot speed (related to the bug fix)
  • Better network interface configuration
  • Better handling of configuration variables

You can follow these steps to update the package on your distribution:

On Debian / Ubuntu 

sudo apt-get update

sudo apt-get install gandi-hosting-vm2

On Fedora / RedHat / CentOS

sudo yum update gandi-hosting-vm2

On Mandriva / Mageia

sudo urpmi gandi-hosting-vm2

You should then copy the new configuration files or merge the new contents with your existing files, by comparing the old and the new versions.

You can use the following command to get the new file list:

On Debian / Ubuntu

find /etc -type f -iname “*.dpkg-dist”

On distributions that use ”rpm”

find /etc -type f -iname “*.rpmnew”

With this new version of the package, the main network interface (eth0) is no longer configured via DHCP by default. If you still want to use DHCP, you just have to remove the name of the main network interface (eth0) from the CONFIG_NODHCP‘ variable setting in the config file located at “/etc/default/gandi” (or /etc/sysconfig/gandi depending on your distribution).

You should get:

# /etc/default/gandi or /etc/sysconfig/gandi

CONFIG_NODHCP=”eth0″ # to disable DHCP on the listed interfaces

Or:

# /etc/default/gandi or /etc/sysconfig/gandi

CONFIG_NODHCP=”” # to enable DHCP on all interfaces, including eth0

If you have any trouble, please contact our support team (http://www.gandi.net/support/contact/mail) or join our staff and other customers on #gandi, on the Freenode IRC network.

CHANGELOG

  • Resize: fixing device name when resizing main disk on hvm
  • Use CONFIG_* we need to source the default file in gandi-mount initscript.
  • If device is swap, do not try to untar configuration from it. This speeds up boot in some cases.
  • Do not show error on link up if iface is not ready.
  • Link up the net iface in all cases.
  • Route IPv4 using the first net iface available.
  • Fix default route configuration.
  • Use detected version of ip command everywhere.
  • dhclient does not rewrite the resolv.conf file when attaching a dhcp-enabled interface, CONFIG_NAMESERVER is checked.
  • SSH management key has been removed from images and from the package.
  • Re-add action for variable CONFIG_SYSCTL