How to PXE boot Oracle VM Server

Following is the tutorial for installing Oracle VM server through PXE.

Requirement
PXE Server
Oracle VM Server 3.0.2

Step 1 Download & Mount OracleVM-Server.iso

mount -o loop /storage/os/OracleVM-Server-3.0.2.iso cd/

Step 2 Create folder to store oracle vm files.

mkdir -p /tftpboot/images/oraclevm/

Step 3 Copy required files to oraclevm folder under pxe.

cp cd/isolinux/mboot.c32 /tftpboot/images/oraclevm/
cp cd/isolinux/initrd.img /tftpboot/images/oraclevm/
cp cd/isolinux/vmlinuz /tftpboot/images/oraclevm/
cp cd/isolinux/xen.gz /tftpboot/images/oraclevm/

Step 4 append following lines in /tftpboot/pxelinux.cfg/default

LABEL ovs3
kernel images/oraclevm/mboot.c32
append images/oraclevm/xen.gz --- images/oraclevm/vmlinuz --- images/oraclevm/initrd.img

Thats all, now with pxe boot you’ll find option to boot using ovs. Once you boot from ovs pxe, you need to either give path of iso image using nfs store OR give http path where content of cd is copied / cd mounted.

Source @LINUXREADERS

How to PXEBoot Clonezilla

Requirement
PXE Server
CloneZilla bootable iso / zip

Download & mount / extract clonezilla iso / zip.

Create folder on existing pxe server

mkdir -p /tftpboot/images/clone/

Copy vmlinuz, initrd & filesystem from clonezilla mount location

cp live/vmlinuz /tftpboot/images/clone/
cp live/initrd.img /tftpboot/images/clone/
cp live/filesystem.squashfs /tftpboot/images/clone/

Append following lines in /tftpboot/pxelinux.cfg/default

label Clonezilla Live
MENU LABEL Clonezilla Live
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 nosplash fetch=tftp://192.168.1.2/images/clone/filesystem.squashfs

Here 192.168.1.2 is pxe server

Above config will boot clonezilla using pxe & you’ll get prompt to choose lang, mount image source dir etc.

OR you can use following config to skip lang selection & mount option, however it will still prompt you to select image source but you can skip & continue as we have mentioned nfs server in following config.

label Clonezilla
MENU LABEL Clonezilla
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=788 nosplash fetch=tftp://192.168.1.2/images/clone/filesystem.squashfs ocs_prerun="mount -t nfs 192.168.1.2:/storage/clonezilla /home/partimag"

Here 192.168.1.2:/storage/clonezilla is clonezilla image location. You can also use other options like samba instead of nfs.

SOURCE@LINUXREADERS

PXE Boot Server on Ubuntu

Earlier we have covered how to setup PXE server on CentOS. This post will guide you how to setup PXE server on Ubuntu,

Required Packages
Syslinux
DHCP Server
TFTP Server
(more…)

PXE booting Maverick Meerkat Ubuntu – 10.10

For PXE booting Ubuntu 10.10 you can follow the similar procedure which we have followed in Ubuntu 10.04. No changes needed except Ubuntu 10.10 iso. You can follow this procedure.

PXE booting Windows XP Installation

For pxe server setup you can refer my previous post.

Enabling rpmforge repository

cd /root
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
yum install cabextract -y
yum install tftp-server tftp samba -y

Mount XP CD image (I am using XP with Service Pack 3) and copy i386 folder to the directory from where you are going to start the installation

mkdir /mnt/iso
mount xpsp3.iso /mnt/iso
mkdir /tftpboot/winxp/i386/ -p
cd /mnt/iso/i386
cp -av * /tftpboot/winxp/i386/

Also copy drivers to i386 folder. I have collected some drives you have to download & copy them to i386 folder

cd /root
wget http://downloads.sourceforge.net/project/bootfloppy/pxefiles.tar.gz?use_mirror=space
tar zxvf pxefiles.tar.gz
cd pxefiles/drivers
cp * /tftpboot/winxp/i386/
cd /tftpboot/winxp/i386/
cabextract driver.cab

Creating file of windows for pxe boot

cd /tftpboot/winxp
cabextract /tftpboot/winxp/i386/startrom.n1_
sed -i -e 's/NTLDR/XPLDR/gi' startrom.n12
mv startrom.n12 winxp.0
 
cabextract /tftpboot/winxp/i386/setupldr.ex_
sed -i -e 's/winnt\.sif/winxp\.sif/gi' setupldr.exe
sed -i -e 's/ntdetect\.com/ntdetect\.wxp/gi' setupldr.exe
mv setupldr.exe xpldr
 
cp /tftpboot/winxp/i386/ntdetect.com ntdetect.wxp

Changing the file name case if they are in uppercase

cd /tftpboot/winxp/i386/
ls | awk '$0!=tolower($0){printf "mv \"%s\" \"%s\"\n",$0,tolower($0)}' | sh

Creating samba share
Add this to your existing or new /etc/samba/smb.conf

vi /etc/samba/smb.conf
[Global]
workgroup = WORKGROUP
 
[ris]
path = /tftpboot
browsable = true
read only = yes
writable = no
guest ok = yes
chkconfig --level 35 smb on
service smb restart

Creating Response file

cd /tftpboot/winxp
vi winxp.sif
[data]
floppyless = "1"
msdosinitiated = "1"
; Needed for second stage
OriSrc = "\\SAMBA_SERVER_IP\ris\winxp\i386"
OriTyp = "4"
LocalSourceOnCD = 1
DisableAdminAccountOnDomainJoin = 1
 
[SetupData]
OsLoadOptions = "/fastdetect"
; Needed for first stage
SetupSourceDevice = "\Device\LanmanRedirector\SAMBA_SERVER_IP\ris\winxp"
 
[UserData]
ComputerName = *

Create or modify PXE boot menu list

vi /tftpboot/pxelinux.cfg/default
LABEL XPkernel winxp/winxp.0

Creating tftp remap file

vi /tftpboot/tftpd.remap
ri ^[az]: # Remove “drive letters”
rg \\ / # Convert backslashes to slashes
rg \# @ # Convert hash marks to @ signs
rg /../ /..no../ # Convert /../ to /..no../
rg A a
rg B b
rg C c
rg D d
rg E e
rg F f
rg G g
rg H h
rg I i
rg J j
rg K k
rg L l
rg M m
rg N n
rg O o
rg P p
rg Q q
rg R r
rg S s
rg T t
rg U u
rg V v
rg W w
rg X x
rg Y y
rg Z z
r ^/(.*) \1
r ^xpldr winxp/xpldr
r ^ntdetect.wxp winxp/ntdetect.wxp
r ^winxp.sif winxp/winxp.sif

Changes in tftp deamon to run tftp remap file

vi /etc/xinetd.d/tftp
server_args = -m /tftpboot/tftpd.remap -s -v -v -v -v /tftpboot

Running binl server so that client machine can take needed network drivers

cp /root/pxefiles/script/binlsrv.py /tftpboot/winxp/
cp /root/pxefiles/script/infparser.py /tftpboot/winxp/
cd /tftpboot/winxp/
/tftpboot/winxp/infparser.py /tftpboot/winxp/i386
nohup /tftpboot/winxp/binlsrv.py &

Note : you can get windows drivers from driverpacks.net

Page 1 of 212»
rss twitter facbook

Categories

Archives