-
Bootable USB PXE Server
Greetings all. I've searched a lot on have to turn a USB drive into a PXE server and come across a PXE stuff and a lot of USB stuff, but nothing that I need. My apologies for the long message! ![Wink](images/smilies/icon_wink.gif)
First, the short version.
I want:
A bootable USB memory that, with the click of script or automatic start-up, will configure and start the machine it's attached to as a PXE server with a minimum of fuss.
My problem:
I haven't succeeded yet and have started hitting my head against the wall.
My request:
How can I achieve what I want?
The long version.
At work we often boot a Knoppix CD from a USB-CDROM drive on any old system laying around, manually input the Knoppix Terminal Server settings, start it, test our client machine(s), then shut down and pack away the USB-CDROM. We don't want a dedicated PXE server taking up space in our lab.
I want to forgo the USB-CDROM and constant setup by running a bootable USB memory that can turn pretty much any system into a PXE server. I once installed Ubuntu to USB with persistency but, upon connecting and booting it on a different machine, the network settings became corrupt. I can't remember the specifics, but a new network card was detected and assigned, and the PXE settings that were attached to the previous system's network card were lost.
By installing Knoppix on USB through Pen Drive Linux's "Universal USB Installer"
(http://www.pendrivelinux.com/univers...easy-as-1-2-3/ ) I get a read only Knoppix system which won't confuse the last server machine's settings with the current machine's. This is awesome; I don't want any persistency that might corrupt things later down the line.
However, that still leaves having to manually configure and start the Knoppix Terminal Server (and most workers in my company either don't know how or forget how to do it). I can save anything in the same USB memory without effecting the Knoppix boot, so I'm thinking to store pre-configured files and a scrip there that the co-workers can click and forget about.
But what files need to be modified?
To attempt to find which files are modified I booted the system, waited a few minutes, then setup and started the Knoppix Terminal Server. From there I was able to search for the most recently modified files (in the hopes of finding and backing up the files which were automatically configured by the Knoppix Terminal Server). Later I can copy these configured files back into their respective places on a fresh boot. For interest's sake, I ran:
# find / -mmin -1
that showed all the changed files within the past minute).
Here is my script labeled pxe.sh
#!/bin/bash
# Copy setup files
sudo mkdir /tmp/tftpboot
sudo cp -p -r /mnt-system/pxe/etc/network/* /UNIONFS/etc/network
sudo cp -p -r /mnt-system/pxe/etc/dhcp3/* /UNIONFS/etc/dhcp3
sudo cp -p -r /mnt-system/pxe/etc/sysconfig/* /UNIONFS/etc/sysconfig
sudo cp -p -r /mnt-system/pxe/etc/default/* /UNIONFS/etc/default
sudo cp -p /mnt-system/pxe/tftpboot/pxelinux.cfg/* /tmp/tftpboot
sudo cp -p -r /mnt-system/pxe/var/run/* /var/run
# Starting PXE server...
sudo /etc/init.d/knoppix-terminalserver start
As you can see, I've retained the file and folder structure in my copy source (/mnt-system/pxe ) and can copy back to the files' respective places.
The problem with this is that there were far too many files modified or created by setting and starting the Knoppix Terminal Server for me to sort through to find every file I needed to back up (the above script is a work-in-progress). I guess I didn't back them all up because, after rebooting and executing the script, the Knoppix Terminal Server appeared and it had to be configured; there was no IP address or Gate Way or any other settings preserved.
Apologies for the essay; I hate to make you read so much. I really want to show I'm not asking for someone to do all the work for me; I have been at this for while now, but with limited success. Any help (a solution to my technique, a better method, a recommendation for something other than
Knoppix) to get a PXE-ready USB bootable memory would be a-w-e-s-o-m-e.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch picture](/store/img/-yUAAOSw-JVlyRj9/s-l225//Dell-X1018-X-Series-Smart-Managed-Switches-16-Port.jpg)
Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch
$42.00
![TP-Link TL-SG1024 24-Port 1000Mbps Gigabit Ethernet Rack-Mount Switch picture](/store/img/z60AAOSwx9Ji5BpT/s-l225//TP-Link-TL-SG1024-24-Port-1000Mbps-Gigabit-Etherne.jpg)
TP-Link TL-SG1024 24-Port 1000Mbps Gigabit Ethernet Rack-Mount Switch
$59.49
![Cisco Catalyst WS-C3650-24PS-L 24-Port Gigabit Ethernet Network Switch TESTED picture](/store/img/prIAAOSwkfFmDHF2/s-l225//Cisco-Catalyst-WS-C3650-24PS-L-24-Port-Gigabit-Eth.jpg)
Cisco Catalyst WS-C3650-24PS-L 24-Port Gigabit Ethernet Network Switch TESTED
$49.99
![TRENDnet TEG-S17D 16-Port Gigabit Unmanaged Network Switch picture](/store/img/~~wAAOSwq0lkke3m/s-l225//TRENDnet-TEG-S17D-16-Port-Gigabit-Unmanaged-Networ.jpg)
TRENDnet TEG-S17D 16-Port Gigabit Unmanaged Network Switch
$50.00
![NetGear ProSAFE GS108PE v3 8-Port Gigabit Managed PoE Switch FREE S/H picture](/store/img/a1IAAOSwrsVmi~L5/s-l225//NetGear-ProSAFE-GS108PE-v3-8-Port-Gigabit-Managed-.jpg)
NetGear ProSAFE GS108PE v3 8-Port Gigabit Managed PoE Switch FREE S/H
$24.99
![TRENDnet TEG (TEG-S80g) 8-Port Gigabit GREENnet External Switch Version V3.1R picture](/store/img/jzYAAOSwb09mkYSr/s-l225//TRENDnet-TEG-TEG-S80g-8-Port-Gigabit-GREENnet-Exte.jpg)
TRENDnet TEG (TEG-S80g) 8-Port Gigabit GREENnet External Switch Version V3.1R
$12.64
![NETGEAR GS605 5-Port Gigabit Ethernet Switch 10/100/1000 Mbps w/Power Adapter picture](/store/img/QN4AAOSwbGNmhuMu/s-l225//NETGEAR-GS605-5-Port-Gigabit-Ethernet-Switch-10-10.jpg)
NETGEAR GS605 5-Port Gigabit Ethernet Switch 10/100/1000 Mbps w/Power Adapter
$5.99
![TP-Link TL-SG108PE 8-port Gigabit Easy Smart PoE+ Swith w/ 4-port PoE - Sealed picture](/store/img/kvsAAOSwc-ZmPjNa/s-l225//TP-Link-TL-SG108PE-8-port-Gigabit-Easy-Smart-PoE-S.jpg)
TP-Link TL-SG108PE 8-port Gigabit Easy Smart PoE+ Swith w/ 4-port PoE - Sealed
$49.50
![Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch picture](/store/img/BUMAAOSwtOFjdfzi/s-l225//Loocam-Gigabit-PoE-Switch-8-Port-96W-2-Uplink-Port.jpg)
Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch
$49.99
![CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture](/store/img/uj4AAOSw8hhmYQRm/s-l225//CISCO-MERAKI-MS120-24P-HW-24-PORT-GIGABIT-CLOUD-MA.jpg)
CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED
$98.55