Advertisement
Guest User

sacarlson

a guest
Apr 3rd, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. # this is for setting up an iso file to be installed with pxe boot
  2. #sudo apt-get install dhcp3-server tftpd-hpa syslinux nfs-kernel-server
  3. # edit the mount line to one of your ubuntu or other iso files you want to pxe boot install
  4. # also this example the server that serverd pxe boot was address 192.168.2.112 ; change this to your server ip
  5. # for dhcp3 configs see example /home/freenet/ruby/dhcpd.conf
  6. # or see https://help.ubuntu.com/community/DisklessUbuntuHowto for more details on dhcpd.conf settings and other
  7. # example of my /etc/dhcp/dhcpd.conf (only an example) any other settings should be able to stay the same
  8.  
  9. #allow booting;
  10. #allow bootp;
  11.  
  12. #subnet 192.168.2.0 netmask 255.255.255.0 {
  13. # range 192.168.2.111 192.168.2.150;
  14. # option broadcast-address 192.168.2.255;
  15. # option domain-name-servers freenet_dns;
  16. # option routers freenet_router;
  17. # filename "pxelinux.0";
  18. # next-server 192.168.2.112;
  19. #}
  20.  
  21. # modify /etc/exports
  22. # sudo echo "/nfsroot *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure) " > /etc/exports
  23.  
  24. # you will also need this in at your server /var/lib/tftpboot/pxelinux.cfg/default
  25. #sudo echo "prompt 1" >/var/lib/tftpboot/pxelinux.cfg/default
  26. #sudo echo "default iso" >>/var/lib/tftpboot/pxelinux.cfg/default
  27. #sudo echo "timeout 100" >>/var/lib/tftpboot/pxelinux.cfg/default
  28. #sudo echo "" >>/var/lib/tftpboot/pxelinux.cfg/default
  29. #sudo echo "LABEL iso" >>/var/lib/tftpboot/pxelinux.cfg/default
  30. #sudo echo " KERNEL iso/vmlinuz" >>/var/lib/tftpboot/pxelinux.cfg/default
  31. #sudo echo " APPEND boot=casper netboot=nfs nfsroot=192.168.2.112:/nfsroot/iso initrd=iso/initrd.lz ip=dhcp" >>/var/lib/tftpboot/pxelinux.cfg/default
  32.  
  33. sudo umount /mnt
  34. # all of these but 10.04 work with this when ubuntu 11.04 was used as the server
  35. # sudo mount -o loop /home/sacarlson/ubuntu-11.10-desktop-i386.iso /mnt
  36. #sudo mount -o loop /home/sacarlson/ubuntu-11.04-desktop-i386.iso /mnt
  37. # 10.04 can't mount nfs can't find eth0 (no driver?)
  38. # sudo mount -o loop /home/sacarlson/ubuntu-10.04-desktop-i386.iso /mnt
  39. # but this mint version seems to work ok.
  40. sudo mount -o loop /home/sacarlson/linuxmint-12-gnome-dvd-32bit.iso /mnt
  41. sudo rm -r /nfsroot
  42. sudo mkdir /nfsroot
  43. sudo cp -av /mnt /nfsroot/iso
  44. sudo rm /var/lib/tftpboot/iso/vmlinuz
  45. sudo rm /var/lib/tftpboot/iso/initrd.lz
  46. sudo cp /nfsroot/iso/casper/vmlinuz /var/lib/tftpboot/iso/.
  47. sudo cp /nfsroot/iso/casper/initrd.lz /var/lib/tftpboot/iso/.
  48. #sudo cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/.
  49. sudo umount /mnt
  50.  
  51. sudo service tftpd-hpa restart
  52. sudo service nfs-kernel-server restart
  53. # seems dhcpd name has changed so make sure this one bellow is correct for you.
  54. sudo service isc-dhcp-server restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement