Ubuntu 12.04 & 12.10 Live PXE Network Installation Tutorial (updated, easy)

pxe_connection_ubuntu

My previous tutorial is still available here but this one is a lot easier thanks to the new features introduced in Serva 2.1.

Prerequisites:

  • Router: you can connect your computers directly if you have an Ethernet crossover cable, but you have to configure your server differently.
  • Computer with Windows installed: you can use any computer-OS combination as a PXE Server as long as it has a TFTP software (even your smartphone can be a server :)). In this tutorial I’m going to use  a Windows 7  PC with Serva because I think this configuration would suit the S205 owners the best. There is an alternative TFTP software for Windows called TFTPD which is more popular than Serva but in my opinion also harder to set up.
  • Ubuntu CD/DVD: download the latest desktop version of Ubuntu from the official website.

(!) You should temporarily disable your firewall to avoid potential conflicts.

Steps:

  1. Download and extract Serva to a folder (e.g. C:\Serva_Non-Supporter_64_v2.1.0). Choose the appropriate Serva version based on the Ubuntu edition you are about to install (x64 – 64 bit,  x86 – 32 bit). I recommend installing the  x64 edition of Ubuntu, see a comparison here) . Use the selected architecture consistently throughout this tutorial.
  2. Create a root folder for Serva (e.g. C:\SERVA_ROOT).
  3. Run Serva and click on the Settings button at the bottom.
  4. On TFTP tab tick TFTP server and select the TFTP Server root directory you have created in the previous step (in my case C:\SERVA_ROOT).Serva #1
  5. Click on the DHCP tab, set proxyDHCP and make sure that the BINL box is checked.Serva #2
  6. Save your settings and restart Serva.
  7. In your root directory you should see some files that Serva has created. Right click on the NWA_PXE folder and select properties. On the Sharing tab select Advanced sharing. Tick Share folder and set the Share name to NWA_PXE_SHARE.share
  8. Create a subfolder under NWA_PXE. You can name it freely (e.g. UBUNTU_12_10_X64_LIVE). Copy the contents of the downloaded Ubuntu iso into this folder and create a ServaAsset.inf file (you can use Notepad) with the following content:

    ;-Serva v2.1 Non-Windows Asset Information File
    ;-Boot/Install:
    ;  Ubuntu 12.10 Live
    ;-Tested on:
    ;  ubuntu-12.10-desktop-i386.iso
    ;-Require:
    ;  \NWA_PXE\ offered as MS share NWA_PXE_SHARE user=serva password=avres
    ;-Notes:
    ;  When installed on a real PC there are not passwords asked
    ;  When installed on VMWare a password is first asked (text mode); just hit enter
    ;  The GUI asks for user=ubuntu with empty password.
    [PXESERVA_MENU_ENTRY]
    asset    = Ubuntu 12.10 Live
    platform = x64
    kernel   = NWA_PXE/$HEAD_DIR$/casper/vmlinuz
    append   = showmounts toram root=/dev/cifs initrd=NWA_PXE/$HEAD_DIR$/casper/initrd.lz boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=YOUR USER NAME,pass=YOUR PASSWORD,ro ip=dhcp ro

    The non-static fields are asset (you can name it freely), platform (x86/x64), user and pass (your Windows account is needed to access the shared folder) and the intitial ram disk file (Ubuntu 12.10 – initrd.lz, Ubuntu 12.04 – INITRD_N02.GZ which you have to download into the appropriate folder). Your file should look similar to this: servaasset

  9. Restart Serva for the last time.
  10. Start your s205 and press Fn+F11 to enter the Boot Menu. Select the PCI LAN: Realtek PXE option. If your settings are correct, after a few seconds you should see Serva’s Install Menu with the Ubuntu option. Press Enter to continue. Ubuntu will be loaded into the memory (it takes a few minutes).
  11. Ubuntu Live will start with the nice Unity look and a dedicated Ubuntu installer icon. cool That’s it. If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.Ubuntu Desktop

Source: vercot

Ubuntu 12.04 LTS PXE Network Installation Tutorial (with Ubuntu Live Graphical Installer)

pxe_connection_ubuntuCheck out my new, simpler tutorial.

 

If you’ve previously done my tutorial on Windows 7 PXE Network Installation you can skip to Step #5.
If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.

If you’ve bought a Lenovo S205 without pre-installed OS – FreeDOS doesn’t count 🙂 – you must’ve wandered how you could install an OS on this device without an internal optical drive. I have good news: you can install it in three different ways.

  • via External (USB) DVD drive
  • via Pendrive
  • and via Network (PXE)

Prerequisites:

  • Router: you can connect your computers directly if you have an Ethernet crossover cable, but you have to configure your server differently.
  • Computer with Windows installed: you can use any computer-OS combination as a PXE Server as long as it has a TFTP software (even your smartphone can be a server :)). In this tutorial I’m going to use  a Windows 7  PC with Serva because I think this configuration would suit the S205 owners the best. There is an alternative TFTP software for Windows called TFTPD which is more popular than Serva but in my opinion also harder to set up.
  • Ubuntu CD/DVD: download the latest desktop version of Ubuntu from the official website.

(!) You should temporarily disable your firewall to avoid potential conflicts.

Steps:

  1. Download and extract Serva to a folder (e.g. C:\Serva_Non-Supporter_64_v2.0.0). Choose the appropriate Serva version based on the Ubuntu edition you are about to install (x64 – 64 bit,  x86 – 32 bit). I recommend installing the  x64 edition of Ubuntu, see a comparison here) . Use the selected architecture consistently throughout this tutorial.
  2. Create a root folder for Serva (e.g. C:\SERVA_ROOT).
  3. Run Serva and click on the Settings button at the bottom.
  4. On TFTP tab tick TFTP server and select the TFTP Server root directory you have created in the previous step (in my case C:\SERVA_ROOT).Serva #1
  5. Click on the DHCP tab, set proxyDHCP, make sure that the BINL box is unticked and set pxelinux.0 as Boot File.Serva #2
  6. Save your settings and close Serva.
  7. Open your favorite FTP software and add a new connection (Host name: archive.ubuntu.com, User name: anonymous, Password: [leave it blank], Remote dir: /ubuntu/dists).FTP #1
  8. After a successfull connection you should see some Ubuntu distribution folders. Now you have to look up the code name of your Ubuntu version here (12.04 LTS is called Precise Pangolin). Navigate to the /ubuntu/dists/[YOUR_UBUNTU’S_CODE_NAME]/main/installer-[YOUR UBUNTU’S ARCHITECTURE:  32 bit – i386 / 64 bit – amd64]/current/images/netboot folder. Download ubuntu-installer, pxelinux.0 and pxelinux.cfg  (∑ ~12 MB) to the Serva root folder that you’ve created.FTP #2
  9. Create a new folder in your Serva root directory called ubuntu-desktop. Insert / mount your Ubuntu CD  and copy vmlinuz and  initrd.lz from the casper folder to the ubuntu-desktop folder.
  10. Edit your pxelinux.cfg/default file with notepad. Add

    LABEL live
    kernel ubuntu-desktop/vmlinuz
    append root=/dev/nfs boot=casper netboot=nfs nfsroot=[YOUR.IP.ADRESS]:/[YOUR DVD DRIVE LETTER] initrd=ubuntu-desktop/initrd.lz quiet splash —

    to the end of your file. You can get your IP-adress by entering ipconfig in Command Prompt (we need the IPv4-adress). After editing, your file should look similar to this: default

    Save the file and close Notepad.

  11. Download and install haneWin NFS Server (30-day trial or google is your friend 🙂 OR you can try to get NFS working using FreeNFS).  Open haneWin NFS Server as administrator. Go to Server tab and make sure below both check boxes are ticked. NFS #1Switch to the Exports tab click the Edit exports file button. Delete / comment out the sample lines and add the following line:

    [YOUR DVD DRIVE LETTER]:\ -public

    NFS #2 Save it and click on Restart Server.

  12. Run Serva.
  13. Start your s205 and press Fn+F11 to enter the Boot Menu. Select the PCI LAN: Realtek PXE option. If your settings are correct, after a few seconds you should see Ubuntu’s Installer Boot Menu. Select the extra live option and press Enter to continue.PXE
  14. Ubuntu Live will start with the nice Unity look and a dedicated Ubuntu installer icon. cool That’s it. If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.Ubuntu Desktop

Source: vercot, Jelada (using Linux as server!)

Windows 7 PXE Network Installation Tutorial

pxe_connection_win7

If you’ve bought a Lenovo S205 without pre-installed OS – FreeDOS doesn’t count 🙂 – you must’ve wandered how you could install Windows on this device without an internal optical drive. I have good news: you can install it in three different ways.

  • via External (USB) DVD drive
  • via Pendrive
  • and via Network (PXE)

Prerequisites:

  • Router: you can connect your computers directly if you have an Ethernet crossover cable, but you have to configure your server differently.
  • Computer with Windows installed: you can use any computer-OS combination as a PXE Server as long as it has a TFTP software (even your smartphone can be a server :)). In this tutorial I’m going to use  a Windows 7  PC with Serva because I think this configuration would suit the S205 owners the best. There is an alternative TFTP software for Windows called TFTPD which is more popular than Serva but in my opinion also harder to set up.
  • Windows DVD: you can install other OS’s as well using different settings. You don’t neccessary need a physical disk, you can also  use a downloaded ISO. A Ubuntu 12.04 LTS network installation tutorial is coming soon is already out. 😛

(!) You should temporarily disable your firewall to avoid potential conflicts.

Steps:

  1. Download and extract Serva to a folder (e.g. C:\Serva_Non-Supporter_64_v2.0.0). Choose the appropriate Serva version based on the Windows edition you are about to install (x64 – 64 bit,  x86 – 32 bit). I recommend installing Windows 7 64-bit edition (you can upgrade memory to 4GB+ and S205 drivers are provided as well, see a comparison here) . Use the selected architecture consistently throughout this tutorial.
  2. Create a root folder for Serva (e.g. C:\SERVA_ROOT).
  3. Run Serva and click on the Settings button at the bottom.
  4. On TFTP tab tick TFTP server and select the TFTP Server root directory you have created in the previous step (in my case C:\SERVA_ROOT).Serva #1
  5. Click on the DHCP tab, set proxyDHCP and tick the BINL box.Serva #2
  6. Save your settings and restart Serva.
  7. In your root directory you should see some files that Serva has created. Right click on the WIA_WDS folder and select properties. On the Sharing tab select Advanced sharing. Tick Share folder, set the Share name to WIA_WDS_SHARE and make sure that the access is set for Everyone.Serva #3
  8. Create a new folder inside the WIA_WDS directory and copy the contents of your Windows 7 DVD to it (i.e. C:\SERVA_ROOT\WIA_WDS\Win7_64_SP1).
  9. We are almost finished. 🙂  In order for Windows install to work you have to add the S205 ethernet driver to the install package. First create the following directory structure inside your WIA_WDS’s Windows folder: $OEM$\$1\Drivers\NIC\ (i.e.  C:\SERVA_ROOT\WIA_WDS\Win7_x64\$OEM$\$1\Drivers\NIC). Now you have two options to get the required drivers to their place:
    1. Insert your Lenovo Driver CD to your drive and navigate to the LAN driver folder: Win7\4.LAN\WIN7\YOUR_WINDOWS_DISK’S_ARCHITECTURE (in my case it’s F:\Win7\4.LAN\WIN7\64) and copy all files except note.txt to the created NIC folder.
    2. Download the latest ethernet drivers from Lenovo‘s website and extract the contents of the \\WIN7\64 or \\WIN7\32 folder inside the .exe file to the NIC directory using WinRAR or 7-ZIP.

    Serva #4

  10. Quit and re-run Serva again.
  11. Start your s205 and press Fn+F11 to go to the Boot Menu. Select the PCI LAN: Realtek PXE option. If your settings are correct, after a few seconds you should see Serva’s Install Menu (similar to the one below but with only one Windows 7 entry). Select it and press Enter to continue.Serva Multi-OS PXE Install Menu
  12. ServaPENet will start with the familiar Windows look. cool  After it automatically installed the LAN drivers you will be prompted to provide the username and password of your server computer (the one with Serva running on). Enter them (or, in case you don’t have, leave the fields blank) and press Connect.WDS OS requiring WIA_WDS_SHARE user and password
  13. After a few seconds Windows Installer should start. That’s it. If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.

Source: vercot, rmprepusb

%d bloggers like this: