Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old March 31st, 2009   #1
chrismyers
A Carafe of Ubuntu
 
chrismyers's Avatar
 
Join Date: Apr 2006
Location: Leeds, England
Beans: 133
Ubuntu Karmic Koala (testing)
Creating a PXE boot for Jaunty Live.

Requires:
Ubuntu server for PXE environment (tested on Jaunty 9.04 server).
Wired network.
PXE boot capable network card on target machine.
On the Ubuntu server:

Login as root or sudo su -

Create the following directory structure:
/pxe

/pxe/images

/pxe/images/ubuntu

/pxe/pxelinux.cfg
Download syslinux-xxx.zip from here:

http://www.kernel.org/pub/linux/utils/boot/syslinux/

Extract the files.

Find menu.c32 & pxelinux.0 & copy them to the /pxe directory.

The other syslinux files & zip are no longer needed and can be deleted.

create a file /pxe/pxelinux.cfg/default & paste in the following:
DEFAULT menu.c32
PROMPT 0
NOESCAPE 0
ALLOWOPTIONS 0
TIMEOUT 600

MENU TITLE PXE Boot Menu

LABEL Ubuntu Jaunty Live Desktop
kernel images/ubuntu/casper/vmlinuz
append boot=casper netboot=nfs nfsroot=192.168.1.101:/pxe/images/ubuntu initrd=images/ubuntu/casper/initrd.gz -- splash

LABEL Ubuntu Jaunty Live Install
kernel images/ubuntu/casper/vmlinuz
append boot=casper netboot=nfs nfsroot=192.168.1.101:/pxe/images/ubuntu initrd=images/ubuntu/casper/initrd.gz -- splash only-ubiquity
Copy the contents of the Ubuntu live CD into /pxe/images/ubuntu

Now install dnsmasq & nfs-kernel-server
apt-get install dnsmasq nfs-kernel-server
edit /etc/dnsmasq.conf & replace all text with:
no-hosts
server=/localnet/192.168.1.1
dhcp-range=192.168.1.40,192.168.1.50,2h
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/pxe
resolv-file=/etc/nameservers
dhcp-option=3,192.168.1.1
Make sure you replace the ip addresses, netmasks etc with ones suitable for your network.

edit /etc/exports & replace all text with:
/pxe/images *(ro,sync,subtree_check)

Add your DNS nameservers by creating the new file (this example is for opendns):

nano /etc/nameservers
nameserver 208.67.222.222
nameserver 208.67.220.220
Reboot your server (or restart dnsmasq & nfs-kernel-server).


You should now be able to boot your target client machine to Ubuntu if it has a pxeboot enabled network card (usually accessed by pressing F12 at boot).

This worked for me. I hope this helps.
__________________
The Ubuntu Counter Project - User number # 6435

Last edited by chrismyers; July 28th, 2009 at 03:59 PM.. Reason: Missing DNS entry.
chrismyers is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:12 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry