* IP configuration with dhcp
@ 2015-07-02 9:08 Christoph Pleger
[not found] ` <a82892e788a77d505b9b4bedd690e480.squirrel-T/cYq+cjerqiBoZaVoqeDeMSiLl2O4ofs0AfqQuZ5sE@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Pleger @ 2015-07-02 9:08 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Hello,
I want to create a Debian Live DVD, with dracut as initrd tool. That is, I
already had the Live system running successfully, but IP configuration had
to be entered manually after boot from DVD. The grub menuitem for that
contains the following line to define the kernel and its parameters:
linux /vmlinuz root=/dev/cdrom ro aufs
Then, I had the idea to add an option for automatic IP configuration by
DHCP. I expected it to work by adding a new grub menuitem with the
following line for the kernel:
linux /vmlinuz root=/dev/cdrom ip=dhcp ro aufs
But that does not work, no configuration is set for eth0. But if the
chroot-Directory I created the DVD from is taken as NFSROOT and the
computer is booted by PXE, with the following in pxelinux.cfg/default
DEFAULT vmlinuz initrd=initrd.img root=dhcp ip=dhcp ro aufs
then eth0 gets its configuration from DHCP.
So, does dracut only support automatic IP configuration by DHCP if
"root=dhcp" is set, or is there something I can change in the kernel
parameters to make automatic IP configuration work when booting from DVD?
Regards
Christoph
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <a82892e788a77d505b9b4bedd690e480.squirrel-T/cYq+cjerqiBoZaVoqeDeMSiLl2O4ofs0AfqQuZ5sE@public.gmane.org>]
* Re: IP configuration with dhcp [not found] ` <a82892e788a77d505b9b4bedd690e480.squirrel-T/cYq+cjerqiBoZaVoqeDeMSiLl2O4ofs0AfqQuZ5sE@public.gmane.org> @ 2015-07-02 13:25 ` Harald Hoyer [not found] ` <55953BDF.9090503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Harald Hoyer @ 2015-07-02 13:25 UTC (permalink / raw) To: Christoph Pleger, initramfs-u79uwXL29TY76Z2rM5mHXA On 02.07.2015 11:08, Christoph Pleger wrote: > Hello, > > I want to create a Debian Live DVD, with dracut as initrd tool. That is, I > already had the Live system running successfully, but IP configuration had > to be entered manually after boot from DVD. The grub menuitem for that > contains the following line to define the kernel and its parameters: > > linux /vmlinuz root=/dev/cdrom ro aufs > > Then, I had the idea to add an option for automatic IP configuration by > DHCP. I expected it to work by adding a new grub menuitem with the > following line for the kernel: > > linux /vmlinuz root=/dev/cdrom ip=dhcp ro aufs > > But that does not work, no configuration is set for eth0. But if the > chroot-Directory I created the DVD from is taken as NFSROOT and the > computer is booted by PXE, with the following in pxelinux.cfg/default > > DEFAULT vmlinuz initrd=initrd.img root=dhcp ip=dhcp ro aufs > > then eth0 gets its configuration from DHCP. > > So, does dracut only support automatic IP configuration by DHCP if > "root=dhcp" is set, or is there something I can change in the kernel > parameters to make automatic IP configuration work when booting from DVD? > > Regards > Christoph > > -- > To unsubscribe from this list: send the line "unsubscribe initramfs" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > try "ip=dhcp rd.neednet=1" ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <55953BDF.9090503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: IP configuration with dhcp [not found] ` <55953BDF.9090503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2015-07-02 13:26 ` Harald Hoyer 2015-07-02 13:48 ` Christoph Pleger 1 sibling, 0 replies; 4+ messages in thread From: Harald Hoyer @ 2015-07-02 13:26 UTC (permalink / raw) To: Christoph Pleger, initramfs-u79uwXL29TY76Z2rM5mHXA On 02.07.2015 15:25, Harald Hoyer wrote: > On 02.07.2015 11:08, Christoph Pleger wrote: >> Hello, >> >> I want to create a Debian Live DVD, with dracut as initrd tool. That is, I >> already had the Live system running successfully, but IP configuration had >> to be entered manually after boot from DVD. The grub menuitem for that >> contains the following line to define the kernel and its parameters: >> >> linux /vmlinuz root=/dev/cdrom ro aufs >> >> Then, I had the idea to add an option for automatic IP configuration by >> DHCP. I expected it to work by adding a new grub menuitem with the >> following line for the kernel: >> >> linux /vmlinuz root=/dev/cdrom ip=dhcp ro aufs >> >> But that does not work, no configuration is set for eth0. But if the >> chroot-Directory I created the DVD from is taken as NFSROOT and the >> computer is booted by PXE, with the following in pxelinux.cfg/default >> >> DEFAULT vmlinuz initrd=initrd.img root=dhcp ip=dhcp ro aufs >> >> then eth0 gets its configuration from DHCP. >> >> So, does dracut only support automatic IP configuration by DHCP if >> "root=dhcp" is set, or is there something I can change in the kernel >> parameters to make automatic IP configuration work when booting from DVD? >> >> Regards >> Christoph >> >> -- >> To unsubscribe from this list: send the line "unsubscribe initramfs" in >> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > try "ip=dhcp rd.neednet=1" or better, if you know the interface in advance "ip=eth0:dhcp rd.neednet=1" otherwise dracut tries dhcp on every interface. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IP configuration with dhcp [not found] ` <55953BDF.9090503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2015-07-02 13:26 ` Harald Hoyer @ 2015-07-02 13:48 ` Christoph Pleger 1 sibling, 0 replies; 4+ messages in thread From: Christoph Pleger @ 2015-07-02 13:48 UTC (permalink / raw) To: initramfs-u79uwXL29TY76Z2rM5mHXA Hello, >> So, does dracut only support automatic IP configuration by DHCP if >> "root=dhcp" is set, or is there something I can change in the kernel >> parameters to make automatic IP configuration work when booting from >> DVD? > try "ip=dhcp rd.neednet=1" Thank you very much, it's working now. Regards Christoph ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-02 13:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 9:08 IP configuration with dhcp Christoph Pleger
[not found] ` <a82892e788a77d505b9b4bedd690e480.squirrel-T/cYq+cjerqiBoZaVoqeDeMSiLl2O4ofs0AfqQuZ5sE@public.gmane.org>
2015-07-02 13:25 ` Harald Hoyer
[not found] ` <55953BDF.9090503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-07-02 13:26 ` Harald Hoyer
2015-07-02 13:48 ` Christoph Pleger
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.