Why does my custom Debian VM lose its network when resuming from suspend?

The default /etc/network/interfaces file for Debian 5 (Lenny) installs does not include the statement "auto eth0" and instead relies on "allow-hotplug" to start the interface instead.  This works fine in most cases, except when issuing "/etc/init.d/networking restart", which is exactly what VMware Tools does when resuming from suspend.  We have corrected this issue in all our Debian templates, however if you have installed your own copy of Debian from scratch you will need to add "auto eth0" (and any other interfaces you may have) to the /etc/network/interfaces file yourself, e.g,

# The primary network interface
auto eth0
iface eth0 inet dhcp
Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk