Difference between revisions of "AoE Diskless Installation"
From MS Computech
Line 12: | Line 12: | ||
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> |
Revision as of 23:03, 18 October 2010
Linux
apt-get insall tftpd-hpa dhcp3-server syslinux vblade build-essential samba genisoimage 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 ""; } }
windows
dd --list dd if=\\?\Device\Harddisk0\Partition0 of=\\192.168.1.200\share\osimage\Windows.img bs=512k --size --progress