Août 132013
 

needed :
tiny pxe server
winnfsd
redo backup recovery

open redobackup.iso in winrar (or any other iso reading capable tool).
extract casper folder to x:\pxe\iso\redobackup (or any path that suit you)

launch winnfsd with the following :
winnfsd.exe -id 0 0 x:\pxe\iso\redobackup
note : adapt the above path with your own path

use the below ipxe script :

#!ipxe
set boot-url http://${dhcp-server}
kernel ${boot-url}/iso/redobackup/casper/vmlinuz boot=casper netboot=nfs nfsroot=${dhcp-server}:/x/pxe/ISO/redobackup
initrd ${boot-url}/iso/redobackup/casper/initrd.lz
boot

note : adapt /x/pxe/ISO/redobackup to your own path.
name it redo.ipxe and put it in x:\pxe

put ipxe-undionly.kpxe in x:\pxe

launch tiny pxe server with the following settings (leave other settings untouched) :
tick « httpd »
boot filename = ipxe-undionly.kpxe (use the browse files and folders « … » button)
tick « filename if user-class=gPXE or iPXE » = http://${dhcp-server}/redo.ipxe
push the online button

pxe boot your computer and here we go

Redo-Backup-Recovery

 Posted by at 15 h 02 min

  12 Responses to “Redo Backup Recovery and PXE booting over NFS”

  1. Followed Step By Step and it does not work. I get stuck at : http://192.168.1.2/redo.ipxe…ok

    Where did i go wrong ?

  2. Hi,

    i also tried the same procedure but it didnt work for me also

  3. I tried your procedure and i got the same thing as Buzzwalk.

    http://192.168.0.98/redo.ipxe…ok
    with a flashing cursor and nothing else happens. Any ideas?

    Thanks!

    • Make sure you have latest version of tiny pxe server.
      Copy paste the logs from tiny pxe server.

      The issue could be with the nfs server : wrong path, firewall, etc …

      • Thanks for getting back to me. I’m using Tiny PXE server version 1.0.0.16

        Here’s the log:
        8:15:08 AM root path=E:\pxe\
        8:15:08 AM dhcpd:67 started…
        8:15:08 AM tftpd started…
        8:15:08 AM httpd started…
        8:15:34 AM DHCPd:DISCOVER received, MAC:44-8E-12-00-97-DA, XID:130097DA
        8:15:35 AM DHCPd:OFFER sent, IP:192.168.0.101, XID:130097DA
        8:15:36 AM DHCPd:REQUEST received, MAC:44-8E-12-00-97-DA, XID:130097DA
        8:15:37 AM DHCPd:ACK sent, IP:192.168.0.101, XID:130097DA
        8:15:37 AM TFTPd:DoReadFile:ipxe-undionly.kpxe B:1456 T:0
        8:15:39 AM DHCPd:DISCOVER received, MAC:44-8E-12-00-97-DA, XID:7C145853
        8:15:40 AM DHCPd:iPXE user-class detected
        8:15:40 AM DHCPd:OFFER sent, IP:192.168.0.101, XID:7C145853
        8:15:40 AM DHCPd:DISCOVER received, MAC:44-8E-12-00-97-DA, XID:7C145853
        8:15:41 AM DHCPd:iPXE user-class detected
        8:15:41 AM DHCPd:OFFER sent, IP:192.168.0.101, XID:7C145853
        8:15:42 AM DHCPd:REQUEST received, MAC:44-8E-12-00-97-DA, XID:7C145853
        8:15:43 AM DHCPd:iPXE user-class detected
        8:15:43 AM DHCPd:ACK sent, IP:192.168.0.101, XID:7C145853
        8:15:43 AM DHCPd:REQUEST received, MAC:44-8E-12-00-97-DA, XID:7C145853
        8:15:43 AM TFTPd:DoReadFile:redo.ipxe B:1432 T:225
        8:15:44 AM DHCPd:iPXE user-class detected
        8:15:44 AM DHCPd:ACK sent, IP:192.168.0.102, XID:7C145853

        As for NFS, i don’t have a firewall setup between the 2 machines and the path seems to be correct.

        Path set for NFS: e:\pxe\iso\redobackup

        Command lauched for NFS: winnfsd.exe -id 0 0 e:\pxe\iso\redobackup

        Also when i type « list » after lauching winnfsd, i get « There is no client mounted », is this normal?

        Thanks

  4. These two machines are on a seperate vlan, no other DHCP server is on the lan. I did enable ProxyDHCP, but that didn’t give me a DHCP ip so it failed.

    It’s picking up an IP from the Tiny PXE server, IP 192.168.0.101, which is correct.

    Maybe something wrong with my redo.ipxe file:

    #ipxe
    set boot-url http://${dhcp-server}
    kernel ${boot-url}/iso/redobackup/casper/vmlinuz boot=casper netboot=nfs nfsroot=${dhcp-server}:/e/pxe/iso/redobackup
    initrd ${boot-url}/iso/redobackup/casper/initrd.lz
    boot

    thanks

    • Your ipxe script looks fine.
      So does your winnfsd command line.

      In the log file, ipxe downloads fine and so does the ipxe script.
      But next, we should see the vmlinux and initrd donwload thru http… which we dont 🙁

      Are you sure the http server is enabled?

      Just in case also, add this line in your script, right before the « set boot-url … » line : dhcp net0 .

      Regards,
      Erwan

      • Yes httpd is checked in the Tiny PXE server, also i made sure port 80 is open. I did add line « dhcp net0 » but that didn’t make any difference. Any other ideas?

        Thanks

        • lets download the kernel and initrd thru regular tftp instead of http and lets see what happens : (replace server_ip by the one where TinyPXE Server runs)

          #ipxe
          kernel tftp://server_ip/iso/redobackup/casper/vmlinuz boot=casper netboot=nfs nfsroot=server_ip:/e/pxe/iso/redobackup
          initrd tftp://server_ip/iso/redobackup/casper/initrd.lz
          boot

Leave a Reply to admin Cancel reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.