Difference between revisions of "AoE Diskless Installation"

From MS Computech
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Setup Windows
 +
[http://www.etherboot.org/wiki/sanboot/winnt_aoe aoewin]
 +
 
Linux
 
Linux
 
<pre>
 
<pre>
apt-get insall tftpd-hpa dhcp3-server syslinux vblade build-essential samba genisoimage
+
apt-get insall tftpd-hpa dhcp3-server syslinux vblade build-essential samba genisoimage hdparm
 
mkdir /osimage
 
mkdir /osimage
 
chown nobody:nogroup /osimage/
 
chown nobody:nogroup /osimage/
Line 12: Line 15:
 
service tftpd-hpa restart
 
service tftpd-hpa restart
 
</pre>
 
</pre>
 
+
Samba /etc/samba/smb.conf
 
+
<pre>
===============
+
security = share
 +
#End of config
 +
[share]
 +
path=/osimage
 +
guest ok = yes
 +
read only = no
 +
</pre>
 
/etc/dhcp3/dhcpd.conf
 
/etc/dhcp3/dhcpd.conf
 
<pre>
 
<pre>
Line 40: Line 49:
 
{
 
{
 
filename "";
 
filename "";
option root-path "";
+
option root-path "aoe:e0.0";
 
}
 
}
 
}
 
}
Line 51: Line 60:
 
dd if=\\?\Device\Harddisk0\Partition0 of=\\192.168.1.200\share\osimage\Windows.img bs=512k --size --progress
 
dd if=\\?\Device\Harddisk0\Partition0 of=\\192.168.1.200\share\osimage\Windows.img bs=512k --size --progress
 
</pre>
 
</pre>
 +
Test Disk Speed
 +
<pre>
 +
hdparm -tT /dev/sda
 +
</pre>
 +
 +
-------------------------
 +
[http://www.thaiinternetcafe.com/drupal/node/26 Source]

Latest revision as of 02:48, 19 October 2010

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