Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
I have creted a pxe boot image and it starts to boot, then gives the error no root-path defined. I have dnsmasq.conf setup on an openwrt router and I have figured out I have to use dhcp-option=17, Bu ti do not know the syntax. Can someone help me, or point me to an article. Below is my dnsmasq.conf
#pxeboot add in
dhcp-option=17,192.168.0.55:/linux-install/pxelinux.0 # root-path
# mtftp address to 0.0.0.0 for PXEClients
# Set the boot filename and tftpd server name and address
# for BOOTP. You will only need this is you want to
# boot machines over the network.
However, the line above is wrong anyway. You should be pointing it at the root filesystem you're going to use. At the moment, it's pointing at the pxelinux.0 executable, which is wrong. What are you trying to set up? If it's an install server, then you won't need a root specification. If you're setting up a server for diskless clients, then you need to export the filesystem(s) via NFS, and that is what you would have as option 17.
Have a read through the pxelinux documentation, but the only option you'll need in dnsmasq.conf is the BOOTP specification of the file (pxelinux.0 in this case) to initially get via tftp. The rest of the config can be done in the pxelinux.cfg directory, which must (I think, you can probably set an option to change it) be in the toplevel directory accessible from tftp.
Here's my dnsmasq.conf which boots two different devices. The first is a dreambox, with NFS root filesystem (hence the dhcp option 17). The second is for a standard pxelinux style boot. The real config is in the /tftpboot/pxelinux.cfg/default config file. (asus is the nfs and tftp server)
I am trying to make a client boot as a mythfrontend. I think I will have to use the model you described below.
The method for the dreambox works since 'os' is the kernel. It doesn;t require an initrd for the boot (everything is compiled into the kernel). This is unlikely to be the case for your mythtv machine's kernel. If I were you, I'd use pxelinux.
This is off the top of my head, but what you'll need to do is:
- Set up the tftp server (which you seem to have done already)
- Put the pxelinux.0, vmlinuz (mythtv kernel you want to boot), and initrd.img (the initrd image for the myth kernel) into the top level of the tftp directory (maybe rename vmlinuz and initrd.img to something useful, like myth-kernel and myth-initrd).
- Create a pxelinux.cfg directory in the top tftp directory (alongside pxelinux.0, vmlinuz, etc).
- Create a file called 'default' in the pxelinux.cfg directory. Put the following into this default file:
Glad you got it working. Of course the root needs to be /dev/ram0, you're using an initrd for the first stage. My fault, I wasn't paying attention. Out of interest, what else needed changing for you. Maybe it'll help others in the future.
I spoke to soon. I had a usb drive pluged in and reset they system and walked away to let it do its thing. It did not boot from pxe. The error I get now is....
Mount.nfs:mount point /mnt/.snapshot does not exist
/init:line 392:/mnt/proc/sys/kernel-real-root-dev:No such file or directory
switch_root: can't open 'dev/console': No such file or directory