Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this is for setting up an iso file to be installed with pxe boot
- #sudo apt-get install dhcp3-server tftpd-hpa syslinux nfs-kernel-server
- # edit the mount line to one of your ubuntu or other iso files you want to pxe boot install
- # also this example the server that serverd pxe boot was address 192.168.2.112 ; change this to your server ip
- # for dhcp3 configs see example /home/freenet/ruby/dhcpd.conf
- # or see https://help.ubuntu.com/community/DisklessUbuntuHowto for more details on dhcpd.conf settings and other
- # example of my /etc/dhcp/dhcpd.conf (only an example) any other settings should be able to stay the same
- #allow booting;
- #allow bootp;
- #subnet 192.168.2.0 netmask 255.255.255.0 {
- # range 192.168.2.111 192.168.2.150;
- # option broadcast-address 192.168.2.255;
- # option domain-name-servers freenet_dns;
- # option routers freenet_router;
- # filename "pxelinux.0";
- # next-server 192.168.2.112;
- #}
- # modify /etc/exports
- # sudo echo "/nfsroot *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure) " > /etc/exports
- # you will also need this in at your server /var/lib/tftpboot/pxelinux.cfg/default
- #sudo echo "prompt 1" >/var/lib/tftpboot/pxelinux.cfg/default
- #sudo echo "default iso" >>/var/lib/tftpboot/pxelinux.cfg/default
- #sudo echo "timeout 100" >>/var/lib/tftpboot/pxelinux.cfg/default
- #sudo echo "" >>/var/lib/tftpboot/pxelinux.cfg/default
- #sudo echo "LABEL iso" >>/var/lib/tftpboot/pxelinux.cfg/default
- #sudo echo " KERNEL iso/vmlinuz" >>/var/lib/tftpboot/pxelinux.cfg/default
- #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
- sudo umount /mnt
- # all of these but 10.04 work with this when ubuntu 11.04 was used as the server
- # sudo mount -o loop /home/sacarlson/ubuntu-11.10-desktop-i386.iso /mnt
- #sudo mount -o loop /home/sacarlson/ubuntu-11.04-desktop-i386.iso /mnt
- # 10.04 can't mount nfs can't find eth0 (no driver?)
- # sudo mount -o loop /home/sacarlson/ubuntu-10.04-desktop-i386.iso /mnt
- # but this mint version seems to work ok.
- sudo mount -o loop /home/sacarlson/linuxmint-12-gnome-dvd-32bit.iso /mnt
- sudo rm -r /nfsroot
- sudo mkdir /nfsroot
- sudo cp -av /mnt /nfsroot/iso
- sudo rm /var/lib/tftpboot/iso/vmlinuz
- sudo rm /var/lib/tftpboot/iso/initrd.lz
- sudo cp /nfsroot/iso/casper/vmlinuz /var/lib/tftpboot/iso/.
- sudo cp /nfsroot/iso/casper/initrd.lz /var/lib/tftpboot/iso/.
- #sudo cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/.
- sudo umount /mnt
- sudo service tftpd-hpa restart
- sudo service nfs-kernel-server restart
- # seems dhcpd name has changed so make sure this one bellow is correct for you.
- sudo service isc-dhcp-server restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement