Pxe & Aoe: Preboot Execution Environment ATA Over Ethernet
Pxe & Aoe: Preboot Execution Environment ATA Over Ethernet
國立中央大學電子計算機中心97學年度SNMG教育訓練課程
NCUCSIE SNMG xbddc ([email protected])
Outline
• What is “PXE” ? “AoE” ?
– Introduction
• Demo
• Reference
2
3
Introduction
• AoE
– abbr. of ATA over Ethernet
– is a network protocol designed for simple,
high-performance access of SATA storage
devices over Ethernet networks.
– It gives the possibility to build SANs with low-
cost, standard technologies.
4
Introduction (cont’d)
• PXE
– abbr. of Preboot eXecution Environment
– is an environment to boot computers using
network interface independently of available
data storage devices (like hard disks) or
installed operating systems.
– was introduced by Intel as part of the Wired
for Management framework
5
Architecture
• Desktop PCs all without HDD and support PXE boot function
• DHCP & TFTP Server can be either split into two or just all built in 6
one
Flow chart
7
http://www.argontechnology.com/ docs/htm/pxe/pxe.gif
Installation
• DHCP Server:
– net/isc-dhcp3-server
– # make install
• TFTP Server:
– ftp/tftp-hpa
– # make install
8
Installation (cont’d)
• vblade:
– #fetch
http://nchc.dl.sourceforge.net/sourceforge/ao
etools/vblade-18.tgz
– #tar zxf vblade-18.tgz
– #cd vblade-18 ; make PLATFORM=freebsd
9
Installation (cont’d)
• make you own Boot ROM image:
– http://rom-o-matic.net/
• and save it to /root
10
Setup - dhcpd.conf
default-lease-time 21600;
max-lease-time 86400;
option domain-name "csie.ncu.edu.tw";
option routers 140.115.50.254;
option domain-name-servers 140.115.50.2;
option perform-mask-discovery on;
option mask-supplier on;
ddns-update-style none;
allow booting;
allow bootp;
host venux {
hardware ethernet 00:11:2f:b8:6d:c8;
fixed-address 140.115.50.75;
}
11
Setup - Windows
• Install WinAoE, the AoE driver for Windows
– http://www.winaoe.org/
12
Setup – Windows (cont’d)
• Turn off the Windows Virtual Memory
feature (pagefile.sys)
13
Start it
• # /usr/local/etc/rc.d/isc-dhcpd forcestart
• # /usr/local/libexec/in.tftpd -Lv -s /root
• # ./vblade 0 0 em0 /dev/ad8
14
15
16
17
Reference
• Introduction to PXE
– http://www.argontechnology.com/docs/htm/pxe/index.shtml
• Wikipedia
– http://en.wikipedia.org/wiki/Preboot_Execution_Environment
– http://en.wikipedia.org/wiki/ATA_over_Ethernet
• SYSLinux, PXELinux, …
– http://syslinux.zytor.com/
• WinAoE
– http://winaoe.org
• vblade
– http://aoetools.sourceforge.net/
• qaoed
– http://code.google.com/p/qaoed/
• Etherboot, gPXE
– http://etherboot.org/
– http://etherboot.org/wiki/sanboot/winnt_aoe
• Rom-o-matic
– http://rom-o-matic.net/
• Setup PXE Boot on FreeBSD in 3 minutes
– http://jnlin.org/2006/10/29/141/
18
Questions?
<(_ _)>
19