PXE-Boot various systems
PXE-Boot
If you're looking to perform a lot of system recovery, or system installation, then network booting with PXE is ideal. PXE allows you to boot up a system and have it automatically get an IP address via DHCP and start booting a kernel over the network.
PXE itself stands for "Pre-boot eXecution Environment", which describes how it works in the sense that the clients using it haven't booted in a traditional manner.
source: http://www.debian-administrati…r_for_PXE_network_booting
I have this systems setup for PXE-Boot, which are working flawless:
- Ubuntu Live-CDs 32 and 64bit
- Kubuntu Live-CDs 32 and 64bit
- Linux Mint XY Cinnamon and KDE
- OpenELEC with /home on NFS
- ReDo 1.04
- Clonezilla with NFS-Share automounted (for Data-Recovery)
- PartedMagic ISO (is $4.99 lately)
- Desinfec't - AntivirusDVD from c't (german computer magazine)
- WinPE 3.0 ISO
1. Configure your DHCP-Server for PXE-Booting
http://www.debian-administration.org/articles/478 (eng)
http://wiki.ubuntuusers.de/PXE-Boot (ger)
2. Create a Share in OMV for TFTP and setup TFTP with it:
3. Create a Share in OMV for NFS
I have different NFS-Shares for this
a) for Images from Clonezilla (for Backup)
b) for OpenELEC-home. My OpenElec-Machine doesn't need a USB- or Harddrive with this. Thx to marcelbeck for the hint
c) a readonly NFS-Share for the PXE-Files extracted from the ISOs
4. Create a graphical Menu for PXE-Boot
http://www.gtkdb.de/index_7_1342.html
I've setup my pxelinux to show a Main-menu and some submenus. So it's easier to read and to edit. Partedmagic is booted from ISO, because i can switch to a new iso very fast. DL, copy, rename, done
Here are some of my menus:
/pxelinux.cfg/default
default vesamenu.c32
# Timout is 1/10 sec
timeout 1000
# ^^^ = 100 sec
menu title PXE Boot Options
menu background menu.png
LABEL OpenElec.tv
menu label ^OpenELEC XBMC-Player
KERNEL /bootfiles/OpenELEC/KERNEL
APPEND ip=dhcp boot=NFS=192.168.178.21:/export/NFS_PXE/OpenELEC disk=NFS=192.168.178.21:/export/Openelec_home overlay
MENU SEPARATOR
# x86
LABEL x86
MENU LABEL -> ^32Bit - OS (x86) - (K)Ubuntu
KERNEL vesamenu.c32
APPEND pxelinux.cfg/menu-i386
# x64
LABEL x64
MENU LABEL -> ^64Bit - OS (x64) - (K)Ubuntu - Mint
KERNEL vesamenu.c32
APPEND pxelinux.cfg/menu-amd64
MENU SEPARATOR
# SystemRescue Backup-OS
LABEL BackupRescueOS
MENU LABEL -> ^SystemBackup and Rescue OS
KERNEL vesamenu.c32
APPEND pxelinux.cfg/menu-systemrescue
MENU SEPARATOR
# Windows 7 PE
LABEL WIN7PE
MENU LABEL -> ^Win 7 PE
KERNEL vesamenu.c32
APPEND pxelinux.cfg/menu-win
MENU SEPARATOR
# Boot from Local Media
LABEL BootLocalMedia
MENU LABEL Boot from local Media (HDD, etc.)
LOCALBOOT 0
Alles anzeigen
submenus:
/pxelinux.cfg/menu-amd64
default vesamenu.c32
timeout 1000
prompt 0
noescape 1
menu title PXE Boot Options
menu background menu.png
LABEL main
MENU LABEL ..
KERNEL vesamenu.c32
APPEND pxelinux.cfg/default
label ubuntu12.04_live_amd64
menu label Ubuntu 12.04 Live amd64
kernel /bootfiles/ubuntu-12.04-desktop-amd64/casper/vmlinuz
append nfsroot=192.168.178.21:/export/NFS_PXE/ubuntu-12.04-desktop-amd64/ netboot=nfs ro file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/bootfiles/ubuntu-12.04-desktop-amd64/casper/initrd.lz locale=de_DE bootkbd=de console-setup/layoutcode=de --
label kubuntu12.04_live_amd64
menu label Kubuntu 12.04 Live amd64
kernel /bootfiles/kubuntu-12.04-desktop-amd64/casper//vmlinuz
append nfsroot=192.168.178.21:/export/NFS_PXE/kubuntu-12.04-desktop-amd64/ netboot=nfs ro file=/cdrom/preseed/kubuntu.seed boot=casper initrd=/bootfiles/kubuntu-12.04-desktop-amd64/casper//initrd.lz locale=de_DE bootkbd=de console-setup/layoutcode=de --
LABEL linuxmint14.1-cinnamon_amd64
menu label Mint 14.1 Cinnamon amd64
kernel /bootfiles/mint14-cinnamon/casper/vmlinuz
append nfsroot=192.168.178.21:/export/NFS_PXE/mint14-cinnamon/ netboot=nfs ro file=/cdrom/preseed/mint.seed boot=casper initrd=/bootfiles/mint14-cinnamon/casper/initrd.lz locale=de_DE bootkbd=de console-setup/layoutcode=de --
LABEL linuxmint14-kde_amd64
menu label Mint 14 KDE amd64
kernel /bootfiles/mint14-kde/casper/vmlinuz
append nfsroot=192.168.178.21:/export/NFS_PXE/mint14-kde/ netboot=nfs ro file=/cdrom/preseed/mint.seed boot=casper initrd=/bootfiles/mint14-kde/casper/initrd.lz locale=de_DE bootkbd=de console-setup/layoutcode=de --
Alles anzeigen
/pxelinux.cfg/menu-partedmagic
default vesamenu.c32
timeout 1000
prompt 0
noescape 1
menu title PXE Boot Options
menu background menu.png
label back
MENU LABEL ..
KERNEL vesamenu.c32
APPEND menu-systemrescue
LABEL pmagic-2012_1010_i686
menu label Parted Magic 2012-10-10 i686
LINUX /memdisk
INITRD /bootfiles/iso/pmagic.iso
APPEND iso vmalloc=256M
TEXT HELP
The Parted Magic OS employs GParted and Parted to
partition, while featuring other useful software.
Parted Magic requires at least a i686 processor and
312MB of RAM to operate or 175MB in “Live” mode.
ENDTEXT
LABEL pmagic-2012_1010_x64
menu label Parted Magic 2012-10-10 x86_64
LINUX /memdisk
INITRD /bootfiles/iso/pmagic_x86_64.iso
APPEND iso vmalloc=256M
TEXT HELP
The Parted Magic OS employs core programs of GParted and Parted to
handle partitioning tasks with ease, while featuring other useful
software. Parted Magic requires at least a i686 processor and
312MB of RAM to operate or 175MB in “Live” mode.
ENDTEXT
Alles anzeigen
/pxelinux.cfg/menu-dban (abstract) with a "fake-menu"
LABEL Disclaimer1
MENU LABEL You know what you're doing?
MENU DISABLE
LABEL dban-2.2.7.i586
menu label Darik's Boot And Nuke DBAN 2.2.7
LINUX /memdisk
INITRD /bootfiles/iso/dban-2.2.7_i586.iso
APPEND iso vmalloc=256M
TEXT HELP
Limitations include:
We don't guarantee secure data erasure
Limited hardware support (eg. no RAID dismantling)
No customer support
DBAN is a self-contained boot disk that can automatically and completely deletes the
contents of any hard disk that it can detect. DBAN prevents or thoroughly hinders
all known techniques of hard disk forensic analysis.
ENDTEXT
Alles anzeigen
5. Setup all OSes you want for PXE-Booting
you find many here and search for "PXE"
Look here for OpenELEC with home on NFS