Août 132013
 

needed :
tiny pxe server
Clonezilla

open clonezilla.iso in winrar (or any other iso reading capable tool).
extract live folder to x:\pxe\iso\clonezilla

use the below ipxe script :

#!ipxe
set boot-url http://${dhcp-server}
kernel ${boot-url}/ISO/clonezilla/live/vmlinuz boot=live config noswap nolocales edd=on nomodeset vga=788 nosplash noprompt fetch=http://${dhcp-server}/ISO/clonezilla/live/filesystem.squashfs
initrd ${boot-url}/ISO/clonezilla/live/initrd.img
boot

name it clonezilla.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}/clonezilla.ipxe
push the online button

pxe boot your computer and here we go

clonezilla

 Posted by at 19 h 20 min

  16 Responses to “Clonezilla and PXE booting over HTTP”

  1. 1:17:10 PM ROOT=D:\_Tiny PXE Server\pxesrv\files\pxe\
    1:17:10 PM TFPTd started…
    1:17:10 PM HTTPd started…
    1:17:10 PM DHCPd:67 started…
    1:17:26 PM DHCPd:DISCOVER received, MAC:48-5B-39-32-E3-C0, XID:3A32E3C0
    1:17:26 PM DHCPd:OFFER sent, IP:192.168.0.101, XID:3A32E3C0
    1:17:28 PM DHCPd:REQUEST received, MAC:48-5B-39-32-E3-C0, XID:3A32E3C0
    1:17:28 PM analysedata67:Access violation at address 004C37F7 in module ‘pxesrv.exe’. Read of address 00000008
    1:17:30 PM DHCPd:DISCOVER received, MAC:48-5B-39-32-E3-C0, XID:3B32E3C0
    1:17:30 PM DHCPd:OFFER sent, IP:192.168.0.101, XID:3B32E3C0
    1:17:34 PM DHCPd:REQUEST received, MAC:48-5B-39-32-E3-C0, XID:3B32E3C0
    1:17:34 PM analysedata67:Access violation at address 004C37F7 in module ‘pxesrv.exe’. Read of address 00000008
    1:17:38 PM DHCPd:DISCOVER received, MAC:48-5B-39-32-E3-C0, XID:3C32E3C0
    1:17:38 PM DHCPd:OFFER sent, IP:192.168.0.101, XID:3C32E3C0
    1:17:46 PM DHCPd:REQUEST received, MAC:48-5B-39-32-E3-C0, XID:3C32E3C0
    1:17:46 PM analysedata67:Access violation at address 004C37F7 in module ‘pxesrv.exe’. Read of address 00000008
    1:17:54 PM DHCPd:DISCOVER received, MAC:48-5B-39-32-E3-C0, XID:3D32E3C0
    1:17:54 PM DHCPd:OFFER sent, IP:192.168.0.101, XID:3D32E3C0

    I can’t find a solution for this problem. I have changed many options.

    • Hi,

      -Ensure you are using latest version (1.0.0.18 from sept 08).
      -Ensure log=0 in config.ini (file access can be an issue thru multi threading).
      -Try with proxydhcp enabled (to be sure there is no conflict with a dhcp server on your lan/system).

      If still not working, I’ll ask you to make a packet dump.

      Regards,
      Erwan

  2. Yessssss it works
    I downloaded your latest version again and installed it clean.
    Now I get an ip without errors and clonezilla is starting

  3. Is het possible to make a menu for the different boot recovery distros over the network?

    • yep it is.
      here below an example :


      #!ipxe

      set boot-url http://${next-server}
      set iscsi-server ${next-server}
      set iqn iqn.2008-08.com.starwindsoftware:test
      set nfs-server ${next-server}
      set cifs-server //${next-server}

      # Setup some basic convenience variables
      set menu-timeout 5000
      set submenu-timeout ${menu-timeout}

      # Ensure we have menu-default set to something
      isset ${menu-default} || set menu-default exit

      ######## MAIN MENU ###################
      :start
      menu Welcome to iPXE's Boot Menu
      item
      item --gap -- ------------------------- Utilities ------------------------------
      item bootsan Boot On San (iscsi:${iscsi-server}::::${iqn})
      item bootaoe Boot On AOE (e0.0)
      item pxelinux pxelinux
      item grub4dos grub4dos
      item hdt hdt
      item disk_util Disk Utilities
      item --gap -- ------------------------------ Advanced ---------------------------------
      item config Configure settings
      item shell Enter iPXE shell
      item reboot Reboot
      item exit Exit (boot local disk)
      choose --default exit --timeout 30000 target && goto ${target}

      ########## UTILITY ITEMS ####################
      :shell
      echo Type exit to get the back to the menu
      shell
      set menu-timeout 0
      goto start

      :failed
      echo Booting failed, dropping to shell
      goto shell

      :reboot
      reboot

      :exit
      exit

      :cancel
      echo You cancelled the menu, dropping you to a shell

      :config
      config
      goto start

      :back
      set submenu-timeout 0
      clear submenu-default
      goto start

      ################################ disk utilities
      :disk_util
      menu Disk Utilities
      item disk Boot a disk img (memdisk)
      item flash Flash Bios (memdisk)
      item macrium Boot macrium linux (sanboot)
      item hbcd Boot hbcd (memdisk)
      item partlogic Boot partlogic (memdisk)
      item pmagic Boot pmagic (memdisk)
      item systemrescuecd Boot systemrescuecd via HTTP
      item gparted Boot gparted via http
      item redobackup Boot redobackup via NFS
      item clonezilla Boot clonezilla via HTTP
      item partition_wizard Boot Partition Wizard (memdisk)
      item acronis Boot Acronis True Image 2013 (memdisk)
      item back Back to top menu...
      iseq ${menu-default} menu-recovery && isset ${submenu-default} && goto menu-recovery-timed ||
      choose selected && goto ${selected} || goto start
      :menu-recovery-timed
      choose --timeout ${submenu-timeout} --default ${submenu-default} selected && goto ${selected} || goto start

      :disk
      initrd /images/disk.img
      kernel /memdisk raw || goto failed
      boot || goto failed
      goto start

      :flash
      initrd ${boot-url}/images/5CJ977A.iso
      kernel ${boot-url}/memdisk iso || goto failed
      boot || goto failed
      goto start

      :macrium
      sanboot --no-describe ${boot-url}/_iso/rescue.iso
      goto start

      :gparted
      kernel ${boot-url}/_ISO/gparted/vmlinuz boot=live config union=aufs noswap noprompt vga=788 fetch=${boot-url}/_ISO/gparted/filesystem.squashfs || goto failed
      initrd ${boot-url}/_ISO/gparted/initrd.img || goto failed
      boot || goto failed
      goto start

      :systemrescuecd
      kernel ${boot-url}/_ISO/sysrcd-4.1.0/isolinux/rescue32 dodhcp netboot=${boot-url}/_ISO/sysrcd-4.1.0/sysrcd.dat || goto failed
      initrd ${boot-url}/_ISO/sysrcd-4.1.0/isolinux/initram.igz || goto failed
      boot || goto failed
      goto start

      :partlogic
      initrd ${boot-url}/images/partlogic-0.71.img
      kernel ${boot-url}/memdisk || goto failed
      boot || goto failed
      goto start

      :pmagic
      kernel ${boot-url}/memdisk iso || goto failed
      initrd ${boot-url}/images/pmagic/pmagic_2013_02_28.iso
      boot || goto failed
      goto start

      :partition_wizard
      initrd ${boot-url}/_iso/pwhe8.iso
      kernel ${boot-url}/memdisk iso || goto failed
      boot || goto failed
      goto start

      :redobackup
      kernel ${boot-url}/_ISO/redobackup/casper/vmlinuz boot=casper netboot=nfs nfsroot=${nfs-server}:/g/_ISO/redobackup
      initrd ${boot-url}/_ISO/redobackup/casper/initrd.lz
      boot || goto failed
      goto start

      :clonezilla
      initrd ${boot-url}/_ISO/clonezilla/live/initrd.img || goto failed
      kernel ${boot-url}/_ISO/clonezilla/live/vmlinuz boot=live config noswap nolocales edd=on nomodeset vga=788 nosplash noprompt fetch=${boot-url}/_ISO/clonezilla/live/filesystem.squashfs || goto failed
      boot || goto failed
      goto start

      :hbcd
      #open iso with iso editor and remove pmagic to make it ligther
      initrd ${boot-url}/images/hbcd152.iso
      kernel ${boot-url}/memdisk iso raw || goto failed
      boot || goto failed
      goto start

      :acronis
      initrd ${boot-url}/_iso/acronismedia.iso
      kernel ${boot-url}/memdisk iso raw || goto failed
      boot || goto failed
      goto start

      ######## utilities

      :pxelinux
      #dhcp
      dhcp net0
      set 210:string tftp://${next-server}/
      #set 210:string tftp://${dhcp-server}/
      chain ${210:string}pxelinux.0 || goto failed
      goto start

      #use menu.ipxe as alt boot file name, not http://${dhcp-server}/menu.ipxe
      :grub4dos
      dhcp net0
      #set netX/next-server 192.168.1.100
      set 210:string tftp://${dhcp-server}/
      chain ${210:string}grldr || goto failed
      goto start

      :bootsan
      #sanhook --drive 0x81 ${root-path} #hook a drive
      dhcp net0
      set keep-san 1
      sanboot iscsi:${iscsi-server}::::${iqn}
      goto start

      :bootaoe
      dhcp net0
      set keep-san 1
      sanboot aoe:e0.0
      goto start

      :hdt
      sanboot --no-describe ${boot-url}/_iso/hdt-0.5.2.iso || goto failed
      goto start

      • thnx

        I must change clonezilla.ipxe with menu.ipxe. And then change some settings in de new.ipxe?

        • yes.

          copy paste your working clonezilla.pxe text (without the #!ipxe header) in the :clonezilla section of menu.pxe .

          • http://192.168.0.100/menu.ipxe.. ok
            nothing happens then no menu on screen
            What I am doing wrong…..

            7:47:38 PM ROOT=D:\_Tiny PXE Server\pxesrv\files\pxe\
            7:47:38 PM DHCPd:67 started…
            7:47:38 PM TFPTd started…
            7:47:38 PM HTTPd started…
            7:47:48 PM DHCPd:DISCOVER received, MAC:00-50-56-BD-5F-C3, XID:57BD5FC3
            7:47:49 PM DHCPd:OFFER sent, IP:192.168.0.101, XID:57BD5FC3
            7:47:51 PM DHCPd:REQUEST received, MAC:00-50-56-BD-5F-C3, XID:57BD5FC3
            7:47:51 PM DHCPd:ACK sent, IP:192.168.0.101, XID:57BD5FC3
            7:47:51 PM TFTPd:DoReadFile:ipxe-undionly.kpxe B:1456 T:0
            7:47:51 PM TFTPd:TransferComplete=True (192.168.0.101:2070)
            7:47:53 PM DHCPd:DISCOVER received, MAC:00-50-56-BD-5F-C3, XID:89FC4468
            7:47:53 PM DHCPd:iPXE user-class detected
            7:47:53 PM DHCPd:OFFER sent, IP:192.168.0.102, XID:89FC4468
            7:47:54 PM DHCPd:DISCOVER received, MAC:00-50-56-BD-5F-C3, XID:89FC4468
            7:47:54 PM DHCPd:iPXE user-class detected
            7:47:54 PM DHCPd:OFFER sent, IP:192.168.0.102, XID:89FC4468
            7:47:56 PM DHCPd:REQUEST received, MAC:00-50-56-BD-5F-C3, XID:89FC4468
            7:47:56 PM DHCPd:iPXE user-class detected
            7:47:56 PM DHCPd:ACK sent, IP:192.168.0.102, XID:89FC4468
            7:47:56 PM DHCPd:REQUEST received, MAC:00-50-56-BD-5F-C3, XID:89FC4468
            7:47:57 PM HTTPd:Connect: 192.168.0.102, TID=1348
            7:47:57 PM DHCPd:iPXE user-class detected
            7:47:57 PM HTTPd:Client: 192.168.0.102 [GET] /menu.ipxe
            7:47:57 PM HTTPd:Server : Returning /menu.ipxe
            7:47:57 PM HTTPd:DisConnect: TID=1348
            7:47:57 PM DHCPd:ACK sent, IP:192.168.0.101, XID:89FC4468
            7:49:02 PM TFTPd stopped…
            7:49:02 PM DHCPd:67 stopped…
            7:49:02 PM HTTPd stopped…

          • make sure your (text) menu file starts with #ipxe.
            post a link here so that I can eventually debug it for you.

 Leave a 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)