AoE Diskless Installation

From MS Computech
Jump to: navigation, search

Setup Windows aoewin

Linux

apt-get insall tftpd-hpa dhcp3-server syslinux vblade build-essential samba genisoimage hdparm
mkdir /osimage
chown nobody:nogroup /osimage/
chmod 777 /osimage/
wget http://kernel.org/pub/software/utils/boot/gpxe/gpxe-1.0.1.tar.gz
cd gpxe-1.0.1/src
make
cd bin
cp undionly.kpxe /var/lib/tftpboot/
service tftpd-hpa restart

Samba /etc/samba/smb.conf

security = share
#End of config
[share]
path=/osimage
guest ok = yes
read only = no

/etc/dhcp3/dhcpd.conf

allow booting;
allow bootp;
authoritative;

option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
next-server 192.168.1.200;

option space gpxe;
option gpxe-encap-opts code 175 = encapsulate gpxe;
option gpxe.bus-id code 177 = string;

subnet 192.168.1.0 netmask 255.255.255.0
{
	allow unknown-clients;
	option routers 192.168.1.1;
	range 192.168.1.100 192.168.1.199;
	if not exists gpxe.bus-id {
		filename "undionly.kpxe";
	}
	else
	{
		filename "";
		option root-path "aoe:e0.0";
	}
}


windows

dd --list
dd if=\\?\Device\Harddisk0\Partition0 of=\\192.168.1.200\share\osimage\Windows.img bs=512k --size --progress

Test Disk Speed

hdparm -tT /dev/sda

Source