Thread: [Clonezilla-live] passing static ip to initramfs in Clonezilla build 2.1-39 not working
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
|
From: Tim G. <ti...@ge...> - 2009-02-22 23:18:35
|
Hi All, Does anyone know if passing static ip details to the initramfs via a syslinux/pxelinux menu entry works? The line in question reads (line split for easier reading): append initrd=http://193.189.140.120/otw/cz/live/initrd1.img console=ttyS1,57600n8 boot=live union=aufs noprompt ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" nolocales ip=x.x.x.x::x.x.x.x:255.255.255.0:clonezilla:eth0:off vga=normal fetch=http://x.x.x.x/otw/cz/live/filesystem.squashfs The official way from Debian Live is: ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]* I have found various pages explaining how to deal with the AUTOCONF field, putting none, off, <blank> all to no effect. Also I am guessing that if you are providing static ip and loading squash_fs via a fetch: line you would leave the SERVER_IP field blank (I have also tried it with the target ip). Every combination I have tried ends up with initramfs issuing bootp requests regardless: IP-Config: eth0 hardware address 00:1e:c9:f7:56:27 mtu 1500 DHCP RARP [ 20.146038] tg3: eth0: Link is up at 100 Mbps, full duplex. [ 20.146038] tg3: eth0: Flow control is off for TX and off for RX. I do not have the ability to implement a dhcpd setup since the machines are based on live public connections at the datacentre. Could anyone help with the correct syntax or any reports of being able to boot via static? Many thanks, Tim |
|
From: Tim G. <ti...@ge...> - 2009-09-24 08:05:57
|
Hi All, Just to wrap up on this post, Denis neatly pointed out that this issue is a confirmed bug with initramfs: https://bugs.launchpad.net/ubuntu/+source/live-initramfs/+bug/391622 But the author does provide a fix in terms of recompiling initramfs to get it to listen to the ip= parameters passed to it. Lets hope the bug fix gets committed soon. Many thanks, Tim |
|
From: Carl K. <ca...@pe...> - 2009-02-22 23:47:30
|
Tim Gebbett wrote:
> Hi All,
>
> Does anyone know if passing static ip details to the initramfs via a
> syslinux/pxelinux menu entry works?
>
> The line in question reads (line split for easier reading):
>
> append initrd=http://193.189.140.120/otw/cz/live/initrd1.img
>
> console=ttyS1,57600n8 boot=live union=aufs noprompt
>
> ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap=""
>
> ocs_live_batch="no" ocs_lang="" nolocales
>
> ip=x.x.x.x::x.x.x.x:255.255.255.0:clonezilla:eth0:off
>
> vga=normal fetch=http://x.x.x.x/otw/cz/live/filesystem.squashfs
>
>
> The official way from Debian Live is:
>
>
> ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]
> [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]*
>
>
> I have found various pages explaining how to deal with the AUTOCONF field,
> putting none, off, <blank> all to no effect. Also I am guessing that if
> you are providing static ip and loading squash_fs via a fetch: line you
> would leave the SERVER_IP field blank (I have also tried it with the
> target ip). Every combination I have tried ends up with initramfs issuing
> bootp requests regardless:
>
> IP-Config: eth0 hardware address 00:1e:c9:f7:56:27 mtu 1500 DHCP RARP
> [ 20.146038] tg3: eth0: Link is up at 100 Mbps, full duplex.
> [ 20.146038] tg3: eth0: Flow control is off for TX and off for RX.
>
>
> I do not have the ability to implement a dhcpd setup since the machines
> are based on live public connections at the datacentre.
>
> Could anyone help with the correct syntax or any reports of being able to
> boot via static?
>
It's booting a ubuntu kernel, so that's where to look for docs.
I do a bit with net booting the ubuntu installer, which I 'think' uses the same
kernel, so the docs for that should be the same, and I think if you dig into
/usr/share/doc/installation-guide-i386/example-preseed.txt.gz
and the docs in that dir you will see how to pass networking parameters for when
the preseed file needs to be fetched over the network.
Not sure if how this will help, but here is the lines from default
label ubuntu-jaunty-handsoff
kernel ubuntu/jaunty/linux
append initrd=ubuntu/jaunty/initrd.gz root=/dev/rd/0 rw locale=en_US
console-setup/layoutcode=us netcfg/wireless_wep= netcfg/choose_interface=eth0
netcfg/get_hostname= DEBCONF_DEBUG=5 url=http://shaz/ubuntu/preseed.cfg
tasksel:tasksel/first="" -- vga=6
so the interesting parts:
netcfg/wireless_wep= netcfg/choose_interface=eth0 netcfg/get_hostname=
but but but, I am pretty sure that applies to the installer that is in initrd -
not sure how it would apply to the ubuntu kernel and or clonezilla.
so end the end, I have no clue really :)
Carl K
|
|
From: Steven S. <st...@nc...> - 2009-02-23 15:38:24
|
Hi Tim, Tim Gebbett wrote: > Hi All, > > Does anyone know if passing static ip details to the initramfs via a > syslinux/pxelinux menu entry works? > > The line in question reads (line split for easier reading): > > append initrd=http://193.189.140.120/otw/cz/live/initrd1.img > > console=ttyS1,57600n8 boot=live union=aufs noprompt > > ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" > > ocs_live_batch="no" ocs_lang="" nolocales > > ip=x.x.x.x::x.x.x.x:255.255.255.0:clonezilla:eth0:off > > vga=normal fetch=http://x.x.x.x/otw/cz/live/filesystem.squashfs > > > Is that necessary to use fetch here ? Did you boot clonezilla live via CD, USB flash drive or PXE ? Steven. > The official way from Debian Live is: > > > ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] > [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]* > > > I have found various pages explaining how to deal with the AUTOCONF field, > putting none, off, <blank> all to no effect. Also I am guessing that if > you are providing static ip and loading squash_fs via a fetch: line you > would leave the SERVER_IP field blank (I have also tried it with the > target ip). Every combination I have tried ends up with initramfs issuing > bootp requests regardless: > > IP-Config: eth0 hardware address 00:1e:c9:f7:56:27 mtu 1500 DHCP RARP > [ 20.146038] tg3: eth0: Link is up at 100 Mbps, full duplex. > [ 20.146038] tg3: eth0: Flow control is off for TX and off for RX. > > > I do not have the ability to implement a dhcpd setup since the machines > are based on live public connections at the datacentre. > > Could anyone help with the correct syntax or any reports of being able to > boot via static? > > Many thanks, > > Tim > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Clonezilla-live mailing list > Clo...@li... > https://lists.sourceforge.net/lists/listinfo/clonezilla-live > -- Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw Public Key Server PGP Key ID: 1024D/9762755A Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A |
|
From: Tim G. <ti...@ge...> - 2009-02-23 15:39:32
|
On Mon, 23 Feb 2009, Steven Shiau wrote: > Hi Tim, > > Tim Gebbett wrote: >> Hi All, >> >> Does anyone know if passing static ip details to the initramfs via a >> syslinux/pxelinux menu entry works? >> >> The line in question reads (line split for easier reading): >> >> append initrd=http://193.189.140.120/otw/cz/live/initrd1.img >> >> console=ttyS1,57600n8 boot=live union=aufs noprompt >> >> ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" >> >> ocs_live_batch="no" ocs_lang="" nolocales >> >> ip=x.x.x.x::x.x.x.x:255.255.255.0:clonezilla:eth0:off >> >> vga=normal fetch=http://x.x.x.x/otw/cz/live/filesystem.squashfs >> >> >> > Is that necessary to use fetch here ? Did you boot clonezilla live via > CD, USB flash drive or PXE ? > > Steven. >> The official way from Debian Live is: >> >> >> ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] >> [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]* >> >> >> I have found various pages explaining how to deal with the AUTOCONF field, >> putting none, off, <blank> all to no effect. Also I am guessing that if >> you are providing static ip and loading squash_fs via a fetch: line you >> would leave the SERVER_IP field blank (I have also tried it with the >> target ip). Every combination I have tried ends up with initramfs issuing >> bootp requests regardless: >> >> IP-Config: eth0 hardware address 00:1e:c9:f7:56:27 mtu 1500 DHCP RARP >> [ 20.146038] tg3: eth0: Link is up at 100 Mbps, full duplex. >> [ 20.146038] tg3: eth0: Flow control is off for TX and off for RX. >> >> >> I do not have the ability to implement a dhcpd setup since the machines >> are based on live public connections at the datacentre. >> >> Could anyone help with the correct syntax or any reports of being able to >> boot via static? >> >> Many thanks, >> >> Tim >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Clonezilla-live mailing list >> Clo...@li... >> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >> > > > -- > Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> > National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw > Public Key Server PGP Key ID: 1024D/9762755A > Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A > > |
|
From: Tim G. <ti...@ge...> - 2009-02-23 15:41:46
|
Hi Steven, The system was booted first by gPXE into pxelinux, then pxelinux to clonezilla. I appreciate this is all against the grain, but due to draconian firewalling etc, it would be great to accomplish all via http. Thanks - Tim On Mon, 23 Feb 2009, Steven Shiau wrote: > Hi Tim, > > Tim Gebbett wrote: >> Hi All, >> >> Does anyone know if passing static ip details to the initramfs via a >> syslinux/pxelinux menu entry works? >> >> The line in question reads (line split for easier reading): >> >> append initrd=http://193.189.140.120/otw/cz/live/initrd1.img >> >> console=ttyS1,57600n8 boot=live union=aufs noprompt >> >> ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" >> >> ocs_live_batch="no" ocs_lang="" nolocales >> >> ip=x.x.x.x::x.x.x.x:255.255.255.0:clonezilla:eth0:off >> >> vga=normal fetch=http://x.x.x.x/otw/cz/live/filesystem.squashfs >> >> >> > Is that necessary to use fetch here ? Did you boot clonezilla live via > CD, USB flash drive or PXE ? > > Steven. >> The official way from Debian Live is: >> >> >> ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] >> [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]* >> >> >> I have found various pages explaining how to deal with the AUTOCONF field, >> putting none, off, <blank> all to no effect. Also I am guessing that if >> you are providing static ip and loading squash_fs via a fetch: line you >> would leave the SERVER_IP field blank (I have also tried it with the >> target ip). Every combination I have tried ends up with initramfs issuing >> bootp requests regardless: >> >> IP-Config: eth0 hardware address 00:1e:c9:f7:56:27 mtu 1500 DHCP RARP >> [ 20.146038] tg3: eth0: Link is up at 100 Mbps, full duplex. >> [ 20.146038] tg3: eth0: Flow control is off for TX and off for RX. >> >> >> I do not have the ability to implement a dhcpd setup since the machines >> are based on live public connections at the datacentre. >> >> Could anyone help with the correct syntax or any reports of being able to >> boot via static? >> >> Many thanks, >> >> Tim >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Clonezilla-live mailing list >> Clo...@li... >> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >> > > > -- > Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> > National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw > Public Key Server PGP Key ID: 1024D/9762755A > Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A > > |
|
From: Steven S. <st...@nc...> - 2009-02-23 15:49:51
|
Hi Tim, So you are runng gPXE/PXE client without a dhcp server ? Steven. Tim Gebbett wrote: > Hi Steven, > > The system was booted first by gPXE into pxelinux, then pxelinux to > clonezilla. I appreciate this is all against the grain, but due to > draconian firewalling etc, it would be great to accomplish all via http. > > Thanks - Tim > > > On Mon, 23 Feb 2009, Steven Shiau wrote: > > >> Hi Tim, >> >> Tim Gebbett wrote: >> >>> Hi All, >>> >>> Does anyone know if passing static ip details to the initramfs via a >>> syslinux/pxelinux menu entry works? >>> >>> The line in question reads (line split for easier reading): >>> >>> append initrd=http://193.189.140.120/otw/cz/live/initrd1.img >>> >>> console=ttyS1,57600n8 boot=live union=aufs noprompt >>> >>> ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" >>> >>> ocs_live_batch="no" ocs_lang="" nolocales >>> >>> ip=x.x.x.x::x.x.x.x:255.255.255.0:clonezilla:eth0:off >>> >>> vga=normal fetch=http://x.x.x.x/otw/cz/live/filesystem.squashfs >>> >>> >>> >>> >> Is that necessary to use fetch here ? Did you boot clonezilla live via >> CD, USB flash drive or PXE ? >> >> Steven. >> >>> The official way from Debian Live is: >>> >>> >>> ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] >>> [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]* >>> >>> >>> I have found various pages explaining how to deal with the AUTOCONF field, >>> putting none, off, <blank> all to no effect. Also I am guessing that if >>> you are providing static ip and loading squash_fs via a fetch: line you >>> would leave the SERVER_IP field blank (I have also tried it with the >>> target ip). Every combination I have tried ends up with initramfs issuing >>> bootp requests regardless: >>> >>> IP-Config: eth0 hardware address 00:1e:c9:f7:56:27 mtu 1500 DHCP RARP >>> [ 20.146038] tg3: eth0: Link is up at 100 Mbps, full duplex. >>> [ 20.146038] tg3: eth0: Flow control is off for TX and off for RX. >>> >>> >>> I do not have the ability to implement a dhcpd setup since the machines >>> are based on live public connections at the datacentre. >>> >>> Could anyone help with the correct syntax or any reports of being able to >>> boot via static? >>> >>> Many thanks, >>> >>> Tim >>> >>> ------------------------------------------------------------------------------ >>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >>> -Strategies to boost innovation and cut costs with open source participation >>> -Receive a $600 discount off the registration fee with the source code: SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> Clonezilla-live mailing list >>> Clo...@li... >>> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >>> >>> >> -- >> Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> >> National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw >> Public Key Server PGP Key ID: 1024D/9762755A >> Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A >> >> >> > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Clonezilla-live mailing list > Clo...@li... > https://lists.sourceforge.net/lists/listinfo/clonezilla-live > -- Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw Public Key Server PGP Key ID: 1024D/9762755A Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A |
|
From: Tim G. <ti...@ge...> - 2009-02-23 15:51:48
|
exactly!, odd I know but it is a beautiful solution for building boxes via DRAC/iLOs in remote datacentres. Tim On Mon, 23 Feb 2009, Steven Shiau wrote: > Hi Tim, > So you are runng gPXE/PXE client without a dhcp server ? > > Steven. > > Tim Gebbett wrote: >> Hi Steven, >> >> The system was booted first by gPXE into pxelinux, then pxelinux to >> clonezilla. I appreciate this is all against the grain, but due to >> draconian firewalling etc, it would be great to accomplish all via http. >> >> Thanks - Tim >> >> >> On Mon, 23 Feb 2009, Steven Shiau wrote: >> >> >>> Hi Tim, >>> >>> Tim Gebbett wrote: >>> >>>> Hi All, >>>> >>>> Does anyone know if passing static ip details to the initramfs via a >>>> syslinux/pxelinux menu entry works? >>>> >>>> The line in question reads (line split for easier reading): >>>> >>>> append initrd=http://193.189.140.120/otw/cz/live/initrd1.img >>>> >>>> console=ttyS1,57600n8 boot=live union=aufs noprompt >>>> >>>> ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" >>>> >>>> ocs_live_batch="no" ocs_lang="" nolocales >>>> >>>> ip=x.x.x.x::x.x.x.x:255.255.255.0:clonezilla:eth0:off >>>> >>>> vga=normal fetch=http://x.x.x.x/otw/cz/live/filesystem.squashfs >>>> >>>> >>>> >>>> >>> Is that necessary to use fetch here ? Did you boot clonezilla live via >>> CD, USB flash drive or PXE ? >>> >>> Steven. >>> >>>> The official way from Debian Live is: >>>> >>>> >>>> ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] >>>> [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]* >>>> >>>> >>>> I have found various pages explaining how to deal with the AUTOCONF field, >>>> putting none, off, <blank> all to no effect. Also I am guessing that if >>>> you are providing static ip and loading squash_fs via a fetch: line you >>>> would leave the SERVER_IP field blank (I have also tried it with the >>>> target ip). Every combination I have tried ends up with initramfs issuing >>>> bootp requests regardless: >>>> >>>> IP-Config: eth0 hardware address 00:1e:c9:f7:56:27 mtu 1500 DHCP RARP >>>> [ 20.146038] tg3: eth0: Link is up at 100 Mbps, full duplex. >>>> [ 20.146038] tg3: eth0: Flow control is off for TX and off for RX. >>>> >>>> >>>> I do not have the ability to implement a dhcpd setup since the machines >>>> are based on live public connections at the datacentre. >>>> >>>> Could anyone help with the correct syntax or any reports of being able to >>>> boot via static? >>>> >>>> Many thanks, >>>> >>>> Tim >>>> >>>> ------------------------------------------------------------------------------ >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >>>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >>>> -Strategies to boost innovation and cut costs with open source participation >>>> -Receive a $600 discount off the registration fee with the source code: SFAD >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> Clonezilla-live mailing list >>>> Clo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >>>> >>>> >>> -- >>> Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> >>> National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw >>> Public Key Server PGP Key ID: 1024D/9762755A >>> Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Clonezilla-live mailing list >> Clo...@li... >> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >> > > > -- > Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> > National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw > Public Key Server PGP Key ID: 1024D/9762755A > Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A > > |