{"id":37,"date":"2012-06-14T07:46:00","date_gmt":"2012-06-13T21:46:00","guid":{"rendered":"https:\/\/www.serenux.com\/?p=37"},"modified":"2021-01-14T07:47:17","modified_gmt":"2021-01-13T21:47:17","slug":"howto-fix-networking-not-working-after-installing-ubuntu-desktop-from-a-pxe-booted-live-environment","status":"publish","type":"post","link":"https:\/\/www.serenux.com\/index.php\/2012\/06\/14\/howto-fix-networking-not-working-after-installing-ubuntu-desktop-from-a-pxe-booted-live-environment\/","title":{"rendered":"HowTo: Fix networking not working after installing Ubuntu Desktop from a PXE-booted Live Environment"},"content":{"rendered":"\n<p>Scenario: You\u2019ve&nbsp;<a href=\"https:\/\/web.archive.org\/web\/20150312074315\/http:\/\/www.serenux.com\/2010\/05\/howto-setup-your-own-pxe-boot-server-using-ubuntu-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">setup a PXE server<\/a>. You\u2019ve&nbsp;<a href=\"https:\/\/web.archive.org\/web\/20150312074315\/http:\/\/www.serenux.com\/2010\/05\/howto-get-an-ubuntu-live-cd-to-boot-off-a-pxe-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">setup an Ubuntu Live CD to boot over your network via PXE<\/a>. Everything works well.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>When the system comes up, you discover that there\u2019s no network connections. Ethernet doesn\u2019t work, but wifi probably is working OK, or you can\u2019t 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 \u201cAuto eth0\u2033. What\u2019s the go?<\/p>\n\n\n\n<p>Here\u2019s how to fix it.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>So let\u2019s fix that.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Once your system is installed and rebooted for the first time, open yourself a Terminal window.<br><\/li><li>Type in the following:<br><br><code>$ sudo nano \/etc\/network\/interfaces<\/code><br><br>\u2026and hit Enter.<br><\/li><li>You will see an entry for eth0 there looking something like this:<br><br><code>auto eth0<\/code><br><code>iface eth0 inet manual<\/code><br><\/li><li>Since Ubuntu uses Network Manager to manage network connections, any definition listed in this file will automatically override it, so simply delete the \u201ciface\u201d line underneath \u201cauto eth0\u2033, but leave the \u201cauto eth0\u2033 line intact.<br><\/li><li>Save your changes by pressing CTRL+X, then Y and then Enter.<br><\/li><li>Restart your PC.<br><\/li><li>Upon restarting, your system should now show a working ethernet connection as normal with all connectivity restored.<br><\/li><li>Pat yourself on the back. You are done.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Scenario: You\u2019ve&nbsp;setup a PXE server. You\u2019ve&nbsp;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\u2019s no network [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":1,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/37\/revisions\/38"}],"wp:attachment":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}