Box is a P-4 HP e-PC that will not boot from CR-ROM and it doesn't have a floppy drive. Basically, a P4 laptop in a tiny desktop case. I tried all the stuff with loaders, smb this, and all that. Nope. Tried the USB boot that I *have* had work on some Dells we have. Nope. Ended up bricking it with "No OS" like above.
But I banged on the enter key and it gave me a clue:
Code:
Client MAC ADDR: 00 04 23 14 0C 7E GUID: AC388561-F52C-11D5-AD37-44DEC94FC43E
PXE-E53 : No boot filename received
PXE-M05 : Exiting Intel PXE ROM
Turns out, it's ethernet card supports PXE. I had zero experience before this...
New to install ubuntu box is mentioned above. The "PXE host" from which all commands below I just coped is a Dell C521 AMD Athlon on the same simple "home network" running kubuntu gutsy amd64. Network is hanging off of one of the high speed 4 port wireless routers (with DHCP running on it!). My net is 192.168.2.x, with netmask 255.255.255.0. I formerly made the wireless router assign DHCP from 192.168.2.100 to 192.168.2.120. And I have some static IP's hanging out in the 192.168.2.40~192.168.2.59 range, so you see I set the DHCP range away from potential conflicts. Router is on 192.168.2.1
# http://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install
# Awesome reference, I didn't need much of it. but it did tell me about:
Code:
/etc/default/tftpd-hpa: RUN_DAEMON="yes"
#
# The 2 refs that really got me solved:
# http://mywheel.net/blog/index.php/ub...twork-install/
# http://www.linuxhomenetworking.com/w...he_TFTP_Server
#
#
# actual commands that worked copied from my terminal with explanations behind # and output shown too:
# -------------------------------------------------------
$ wget http://mirror.anl.gov/pub/ubuntu-iso...rnate-i386.iso
~# apt-get install tftpd-hpa dhcp3-server
Setting up dhcp3-server (3.0.5-3ubuntu4) ...
Generating /etc/default/dhcp3-server...
* Starting DHCP server dhcpd3 [fail]
invoke-rc.d: initscript dhcp3-server, action "start" failed.
~# cd /var/lib/tftpboot
/var/lib/tftpboot# mkdir ubuntu
/var/lib/tftpboot# cp /home/chris/xubuntu-7.10-alternate-i386.iso .
/var/lib/tftpboot# mount -o loop /var/lib/tftpboot/xubuntu-7.10-alternate-i386.iso /var/lib/tftpboot/ubuntu
/var/lib/tftpboot# cd /var/www
/var/www# ln -s /var/lib/tftpboot/ubuntu/
/var/www# ls
apache2-default ubuntu
/var/www# vi /etc/dhcp3/dhcpd.conf
# edited to make only the lines shown below uncommented...
/etc# cat dhcp3/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
# from http://mywheel.net/blog/index.php/ub...twork-install/
ping-check = 1;
filename = "ubuntu/install/netboot/pxelinux.0";
subnet 192.168.2.0
netmask 255.255.255.0 {
range 192.168.2.20 192.168.2.24;
}
/var/www# /etc/init.d/dhcp3-server restart
* Stopping DHCP server dhcpd3 [fail]
* Starting DHCP server dhcpd3 [ OK ]
# tried starting the computer and it dhcp'd but did a PXE-E32: TFTP open timeout.
/var/www# cd ../log
/var/log# tail syslog
Nov 20 21:34:13 cu1 dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Nov 20 21:34:13 cu1 dhcpd: Internet Systems Consortium DHCP Server V3.0.5
Nov 20 21:34:13 cu1 dhcpd: Copyright 2004-2006 Internet Systems Consortium.
Nov 20 21:34:13 cu1 dhcpd: All rights reserved.
Nov 20 21:34:13 cu1 dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Nov 20 21:34:13 cu1 dhcpd: Wrote 0 leases to leases file.
Nov 20 21:35:33 cu1 dhcpd: DHCPDISCOVER from 00:04:23:14:0c:7e via eth0
Nov 20 21:35:34 cu1 dhcpd: DHCPOFFER on 192.168.2.24 to 00:04:23:14:0c:7e via eth0
Nov 20 21:35:35 cu1 dhcpd: DHCPREQUEST for 192.168.2.24 (192.168.2.50) from 00:04:23:14:0c:7e via eth0
Nov 20 21:35:35 cu1 dhcpd: DHCPACK on 192.168.2.24 to 00:04:23:14:0c:7e via eth0
# OK- so dhcp is working ... maybe there is a conf for tftp...?
/var/log# apt-get install tftp-hpa
/var/log# cd /etc/
/etc# find . -name "*tftp*"
./rc4.d/S20tftpd-hpa
./default/tftpd-hpa
./rc1.d/K20tftpd-hpa
./rc3.d/S20tftpd-hpa
./init.d/tftpd-hpa
./rc2.d/S20tftpd-hpa
./rc5.d/S20tftpd-hpa
/etc# cd default/
/etc/default# vi tftpd-hpa
/etc# cat default/tftpd-hpa
#... changed "no" to "yes"
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"
/etc#
/etc/default# cd /var/lib/tftpboot/
/var/lib/tftpboot# ls
ubuntu xubuntu-7.10-alternate-i386.iso
/etc/default# /etc/init.d/tftpd-hpa start
Starting HPA's tftpd: in.tftpd.
/etc/default# netstat -a | grep tftp
udp 0 0 *:tftp *:*
# Did reboot and it immediately started into the installer!! But then
# it tried to configure network off of my temporary dhcp server, so I
# had to select <Go Back> a bunch of times until I go the retry Auto Network
# configure option...
/etc/default# /etc/init.d/dhcp3-server stop
* Stopping DHCP server dhcpd3 [ OK ]
# and now the installer configured via normal dhcp server and all started
# well.
#
# if you get the freeze after the task select stage of the install, go away
# and come back in an hour. Seems that's what it might take.
# https://bugs.launchpad.net/ubuntu/+s...onf/+bug/62986
#
# Now to make it so this "server" doesn't start serving dhcp and tftp
# at reboot by removing the init.d start up scripts. I didn't apt-get remove
# because I assumed it wouldn't work and I'd need to do it again...
/etc# find . -name "*S*dhcp*"
./rc4.d/S40dhcp3-server
./rc3.d/S40dhcp3-server
./rc2.d/S40dhcp3-server
./rc5.d/S40dhcp3-server
# Find is a powerful command TEST it in a safe place as
# a plain user before experimenting!! Notice I checked the
# output above before executing the xargs rm below!
/etc# find . -name "*S*dhcp*" -print0 | xargs -0 rm
/etc# find . -name "*S*dhcp*"
# double check what is left...
/etc# find . -name "*dhcp*"
./dhcp3
./dhcp3/dhcpd.conf
./default/dhcp3-server
./rc1.d/K40dhcp3-server
./init.d/dhcp3-server
./acpi/suspend.d/65-dhcpd-stop.sh
./acpi/resume.d/69-dhcpd-start.sh
# missed one... let's remove it now.
/etc# rm acpi/resume.d/69-dhcpd-start.sh
/etc#
# repeat for tftp, as I do not need that service...
/etc# find . -name "*tftp*"
./rc4.d/S20tftpd-hpa
./default/tftpd-hpa
./rc1.d/K20tftpd-hpa
./rc3.d/S20tftpd-hpa
./init.d/tftpd-hpa
./rc2.d/S20tftpd-hpa
./rc5.d/S20tftpd-hpa
/etc# find . -name "*S*tftp*" -print0 | xargs -0 rm
/etc# find . -name "*S*tftp*"
# verify:
/etc# find . -name "*tftp*"
./default/tftpd-hpa
./rc1.d/K20tftpd-hpa
./init.d/tftpd-hpa
/etc#
# Now that it worked and my little box is finally booting and installing:
# Find the ISO mounted and unmount it
/etc# mount
. (other mounts omitted)
.
/var/lib/tftpboot/xubuntu-7.10-alternate-i386.iso on /var/lib/tftpboot/ubuntu type iso9660 (rw,loop=/dev/loop0)
/etc# umount /var/lib/tftpboot/ubuntu
# so now if I need to do this again, I just start up dhcpd and tftpd and then mount the ISO
# again.
Bookmarks