pxe

Hardware Detection Tool (PXE boot)

# download image
wget http://konilope.linuxeries.org/hdt/hdt-0_3_4.c32 -P /var/lib/tftpboot/
 
# create pxe config file
cat <<EOF> /var/lib/tftpboot/pxelinux.cfg/hdt.conf 
LABEL linux
   MENU LABEL Hardware Detection Tool
   kernel hdt-0_3_4.c32
EOF
 
# add to pxe default config
echo "MENU INCLUDE pxelinux.cfg/hdt.conf" >> /var/lib/tftpboot/pxelinux.cfg/default
 
 
# Links
http://www.hdt-project.org/

Install x2go PXE

# install and configure pxe server
apt-get install -y tftpd-hpa syslinux openbsd-inetd nfs-kernel-server debootstrap
 
# configure pxe envirement
cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/
cp /usr/lib/syslinux/vesamenu.c32 /var/lib/tftpboot/
cp /usr/lib/syslinux/menu.c32 /var/lib/tftpboot/
cp /usr/lib/syslinux/memdisk /var/lib/tftpboot/
 
mkdir /opt/x2gothinclient
debootstrap --arch i386 lenny /opt/x2gothinclient/
 
#http://ftp2.de.debian.org/debian
 
cp /etc/resolv.conf /opt/x2gothinclient/etc/resolv.conf
 
cat <<EOF>> /opt/x2gothinclient/etc/network/interfaces
auto lo

XEN HVM PXE boot domU

lvcreate --name pxe-disk --size 4G vg01
 
cat <<EOF> /etc/xen/pxe 
kernel='/usr/lib/xen/boot/hvmloader'
builder='hvm'
memory='1024'
name='pxe'
device_model='/usr/lib/xen/bin/qemu-dm'
boot='nc'
disk=['phy:/dev/vg01/pxe-disk,ioemu:hda,w']
vnc=1
vncviewer=1
vncpasswd="pxe"
vif=['type=ioemu,bridge=xenbr0,mac=00:00:aa:bb:44:ae']
usbdevice='tablet'
vnclisten='0.0.0.0'
EOF

Fileserver (Samba and DHCP)

#!/bin/bash
 
# set domU name
DOMAIN_NAME=srv
 
# install vm
xen-create-image --hostname=$DOMAIN_NAME --dhcp --mac=00:11:cc:ab:cd:ef \
--lvm=vg01 --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu/ --size=4Gb --memory=1Gb --swap=1Gb
 
# rename config file
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
 
# add to autostart
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto
 
# create lvm for home
lvcreate --name ${DOMAIN_NAME}-media --size 200G vg01
mkfs.ext3 /dev/vg01/${DOMAIN_NAME}-media
 
# configure domU
vi /etc/xen/${DOMAIN_NAME}
(add)
'phy:/dev/vg01/srv-media,xvda3,

Hitachi Feature Tool over PXE

#!/bin/bash
 
URL=http://www.hitachigst.com/hdd/support/downloads/ftool_211_install.IMG
 
# download dft image
wget ${URL} -O /var/lib/tftpboot/hitachi_ftool.img
 
# create config for pxe boot
cat <<EOF> /var/lib/tftpboot/pxelinux.cfg/hitachi_ftool.cfg
LABEL linux
   MENU LABEL Hitachi Feature Tool
   kernel memdisk
   append initrd=hitachi_ftool.img
EOF
 
# add config to default config
echo "MENU INCLUDE pxelinux.cfg/hitachi_ftool.cfg" >> /var/lib/tftpboot/pxelinux.cfg/default
 
 
# LINKS
# http://www.hitachigst.com/hdd/support/download.htm

Hitachi Drive Fitness Test over PXE

#!/bin/bash
 
URL=http://www.hitachigst.com/hdd/support/downloads/dft32_v414_b00_install.IMG
 
# download dft image
wget ${URL} -O /var/lib/tftpboot/hitachi_dtf.img
 
# create config for pxe boot
cat <<EOF> /var/lib/tftpboot/pxelinux.cfg/hitachi_dtf.cfg
LABEL linux
   MENU LABEL Hitachi Drive Fitness Test
   kernel memdisk
   append initrd=hitachi_dtf.img
EOF
 
# add config to default config
echo "MENU INCLUDE pxelinux.cfg/hitachi_dtf.cfg" >> /var/lib/tftpboot/pxelinux.cfg/default
 
 
# LINKS
# http://www.hitachigst.com/hdd/support/download.htm

PXE Net Boot

 

Create Ubuntu LiveCD from Squash

#!/bin/bash
 
# http://ubuntuforums.org/showpost.php?p=5175091&postcount=27
 
# version: 2009-09-09
 
# todo
# configure locales
# configure hostname
# clean up "fglrx"
# check install_lirc
# umount all from chroot envirement, rm: Entfernen von Verzeichnis „$HOME/xbmc-XXX-livecd-hardy-i386/chroot/lib/modules/2.6.24-21-generic/volatile“ nicht möglich: Device or resource busy
 
# parameter
# architecture: i386, amd64
ARCH=i386
# distribution: hardy, intrepid, jaunty, karmic
DISTRIB_CODENAME=karmic
 
# check
if [ ${USER} != "root" ]; then
	echo "Please run this script as root"

Instal KVM (Kernel-based Virtual Machine)

#!/bin/bash
 
sudo su
 
# install kvm
apt-get install -y qemu kvm ubuntu-vm-builder
 
# install PXE boot ROM
apt-get install kvm-pxe
http://rom-o-matic.net/etherboot/etherboot-git/etherboot.git/contrib/rom-o-matic/
1. NIC/ROM type: e1000:e1000-0x1026-82545gm-copper -- [8086,1026]
2. ROM output format: Binary ROM Image(.zrom)
3. Configure, ASK_BOOT: -1
4.

memtest86+ PXE boot

#!/bin/bash
 
# check for current version
# http://www.memtest.org/#downiso
 
URL=http://www.memtest.org/download/2.01/memtest86+-2.01.bin.gz
 
wget ${URL} -P /tmp
gzip -d /tmp/memtest86+-*.bin.gz
 
mkdir /tftpboot/memtest
mv /tmp/memtest86+-*.bin /tftpboot/memtest/
cd /tftpboot/memtest
ln -s memtest86+-*.bin memtest86+
 
echo "confiure tftpboot..." 
cat <<EOF>  /tftpboot/pxelinux.cfg/memtest86+.conf
LABEL linux
   MENU LABEL memtest86+
   KERNEL /memtest/memtest86+
EOF
 
echo "MENU INCLUDE pxelinux.cfg/memtest86+.conf" >> /tftpboot/pxelinux.cfg/default

Ubuntu LiveCD PXE boot (Ubuntu Live CD boot from network)

DEFAULT_URL=http://releases.ubuntu.com/releases/9.10/ubuntu-9.10-desktop-i386.iso
NFS_SERVER=192.168.1.9
 
if [ ! -z $1 ]; then
        FILE=$1
 
        if [ !

updUbuntuPxeFiles.sh

#!/bin/bash
 
#MIRROR=http://archive.ubuntu.com/ubuntu/dists/SUITE-proposed/main/installer-ARCH/current/images/netboot/ubuntu-installer/ARCH
MIRROR=http://archive.ubuntu.com/ubuntu/dists/SUITE/main/installer-ARCH/current/images/netboot/ubuntu-installer/ARCH
TFTPDIR=/var/lib/tftpboot/ubuntu/SUITE/ARCH
 
download() {
	SUITE=$1
        ARCH=$2
	FILE=$3
 
	echo -n "    - $3"
 
	MIRROR1=${MIRROR//SUITE/$SUITE}
	MIRROR_TMP=${MIRROR1//ARCH/$ARCH}
 
	TFTPDIR1=${TFTPDIR//SUITE/$SUITE}
	TFTPDIR_TMP=${TFTPDIR1//ARCH/$ARCH}
 
	if [ !

PXE Net Boot

tftpboot
Memtest86 - http://www.memtest86.com/
Memtest86+ - http://www.memtest.org/
GoldMemory - http://www.goldmemory.cz/

/tftpboot/pxelinux.cfg/default
default - http://www.goldmemory.cz/

Debian PXE Instalation
Sources - http://people.debian.org/%7Ejoeyh/d-i/images/daily/netboot/

Kernel Boot Parameters
vga=791 - set screen resolution to 1024x768
noapic - disable APIC support (on broken motherboards)
textonly - boot to console

update pxelinux.0
cp /usr/lib/syslinux/pxelinux.0 /tftpboot/

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!

Syndicate content