HowTo: Fix networking not working after installing Ubuntu Desktop from a PXE-booted Live Environment

Scenario: You’ve setup a PXE server. You’ve setup an Ubuntu Live CD to boot over your network via PXE. Everything works well.

You then decide to install a fresh Ubuntu Desktop installation from your PXE-booted environment. All goes well. The install finishes and your system reboots.

When the system comes up, you discover that there’s no network connections. Ethernet doesn’t work, but wifi probably is working OK, or you can’t get wifi working yet because you need to install a closed-source driver for it. You check the Network Manager and find that there is no automatically defined ethernet connection such as “Auto eth0″. What’s the go?

Here’s how to fix it.

When you run a PXE environment, one of the key things that has to be configured before any startup commenced is your IP address. This is performed by your PXE agent and means that when the Ubuntu Live Environment boots up, DHCP is not employed during bootup because it would sever your connection to your NFS server where the Ubuntu Live Environment is booting from.

As a result of this, when you install from the PXE-booted Live Environment, which is effectively a direct copy of the Live Environment, you also end up copying the manually-configured network setup where Network Manager is essentially told not to do anything.

So let’s fix that.

  1. Once your system is installed and rebooted for the first time, open yourself a Terminal window.
  2. Type in the following:
    $ sudo nano /etc/network/interfaces

    …and hit Enter.

  3. You will see an entry for eth0 there looking something like this:
    auto eth0
    iface eth0 inet manual
  4. Since Ubuntu uses Network Manager to manage network connections, any definition listed in this file will automatically override it, so simply delete the “iface” line underneath “auto eth0″, but leave the “auto eth0″ line intact.
  5. Save your changes by pressing CTRL+X, then Y and then Enter.
  6. Restart your PC.
  7. Upon restarting, your system should now show a working ethernet connection as normal with all connectivity restored.
  8. Pat yourself on the back. You are done.



Be the first to like.
Category(s): Tutorials
Tags: , , , , , ,

Leave your comments below!

Loading Facebook Comments ...

2 Responses to HowTo: Fix networking not working after installing Ubuntu Desktop from a PXE-booted Live Environment

  1. Hi.

    I love your tutorials. If we would take this to the more advanced, is there a way to automate this step after installation in stead of doing it manually after reboot?

    Thank you and keep up the good work with your tutorials

  2. Hey,

    This is realy helpful.

    Thankyou so much……..

One Response in another blog/article

  1. […] Para volver a tener red, bastaría con borrar la última linea (iface eth0 inet manual) dejando la otra intacta. Fuente. […]

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This blog is kept spam free by WP-SpamFree.