Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you install fog it will install nfs server pxe server then all you have to do is edit the pxe file in tftboot directory.
the iso that you see in the screen shot from the other thread they are netinstall.iso serach for netinstall centos or debian
so there is no way of net installing the standard live cd iso image for maybe a live session throuch pxe booting
and yes i have looked into the fog server option but there is way too much to go into for the installation process of fog as far as the astronomical amount of documentation there is. i will post my current /srv/tftp/pxelinux.cfg/default file and my /etc/exports file since nfs is what i think is causing the problem
also the /dev/nfs defice was not created when i installed nfs-kernel-server so i made it with this command
Code:
mknod /dev/nfs b 0 255
very little has changed from that point on but i will also post the error i have been getting (as pictures)
alright i just re-created everything and here are my config files and the error messages but first a few things to know
i ran these commands
Code:
mknod /dev/nfs b 0 255
chmod -R 777 /srv/tftp/ubuntu
chmod /dev/nfs b 0 255
and i also extracted the ubuntu livecd contents to this folder
Code:
/srv/tftp/ubuntu
and here are my config files
here is my /srv/tftp/pxelinux.cfg/default file
Code:
default vesamenu.c32
menu title PXE Boot server
label ubuntu
menu label ubuntu
kernel ubuntu/casper/vmlinuz
append boot=casper netboot=nfs nfsroot=192.168.1.2:/srv/tftp/ubuntu
initrd=ubuntu/casper/initrd.lz root=nfs
i think i found an alternative, i have read somewhere that some people have gotten it to work through HTTP instead of nfs, supposedly this is much simpler to setup and execute, i'll see if it works once i understand how to do it
alright i staitened everything out, i found that the dhcp server wasn't working on the client side (it couldn't get an ip leased when i tried it in the operating system that was installed on the machine i planned on using as a client for the pxe server, now when i boot into the dhcp server from the client's bios i get a completely different ip address than the one i told it to assign in the dhcp server and as a result it can't reach the nfs server that has all of the live cd files on it and i am getting the message
i found something that makes complete sense but this is just a hypothesis, i was able to get a peek at the address is obtained from the dhcp server and saw that it was a 172 address, this pretty much means that the dhcp server didn't assign the host an ip address so it reflect back as unreachable which makes 100% perfect sense. my problem now is trying to get it to lease an ip address, i don't see any problems with it, especially looking at the logs for the dhcp server and found no signs of error, it also works on clients that are booted into their operating systems and send dhcp requests. why isn't it working in the pxe client. any ideas?
alright after experimenting with other distributions on the pxe and nfs sides, i am getting the same error i have been getting in the first place, i was trying it with debian dvd installation media and for some reason there is no cd that is being mounted with the nfs protocol in other words the installation process is not detecting a cd and therefore the cd media was never mounted, so what do you have to put into the /srv/tftp/pxelinux.cfg/default folder to get the contents of the nfs share to be mounted as a cd on the client, this was my original problem and i am still having issues since there is no mounting being done on the nfs side. so i have found so far that nfs works and the dhcp server is now leasing ip addresses like it's suppossed to and the errors i was getting before have now been solved but i still need it to mount the contents of the live cd on the client through nfs i really need some help on this one, i have researched some more on google and tunred up nothing
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.