How to pxe boot cent os 7
-
@Tom-Elliott said in How to pxe boot cent os 7:
Is it in ipxe or just in cli
my cli is clearly wrong then as I just copied and pasted what @george1421 put a command I should use to mount and now that I look at it I probably read it wrong
-
@dureal99d it was right. In Linux when describing and line it’s quite common to use <> as a means to say: replace with… Just remove the <> and change the string for your setup
-
@Tom-Elliott ok so i did as suggested and now i get this
mount: wrong fs type, bad option, bad superblock on 192.168.1.109:/opt/bootimgs/fedora,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)In some cases useful info is found in syslog - try dmesg | tail or so.
-
@dureal99d our Troubleshoot NFS article linked below explains troubleshooting NFS as it relates to FOG, might help you with understanding.
But let’s take a basic example?
The images directory. It’s exported as such:
/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
Say that server’s IP address is 10.0.0.4. From a remote Linux box, I’d mount this NFS shared directory to a local directory called
/mnt
as such:mount 10.0.0.4:/images /mnt
Now, if I were to try to describe to you how to do this but try to also say “replace this field”, I might say:
mount <your IP here>:/images /mnt
all this means is completely remove the left & right carrots and put an IP there instead.But, to the root of the issue, it looks like your boot menu is using
http
which has absolutely nothing to do with NFS at all. Completely nothing to do with it.If you were to put your ISOs somewhere else, and create a soft symbolic link to them somewhere in the web directory, and then set permissions properly and path your menu properly, you can get these things working again. We would need to know where you’re putting stuff to help out.
https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_NFS
-
@dureal99d lose the -t nfs?
-
@Wayne-Workman as suggested by @george1421 I am moving all my files to a folder called /opt/bootimgs on my Linux box
-
@Tom-Elliott removed the suggested lines from the command same result
-
@dureal99d said in How to pxe boot cent os 7:
@Wayne-Workman as suggested by @george1421 I am moving all my files to a folder called /opt/bootimgs on my Linux box
Because your boot menu is using http, you would still need to create a soft symbolic link from this new directory to somewhere in the web directory.
-
@Wayne-Workman said in How to pxe boot cent os 7:
you would still need to create a soft symbolic link from this new directory to somewhere in the web directory.
Ok how do i create this soft link?
-
@dureal99d The syntax is:
ln -s <source> <destination>
You should remove the left/right carrots when running the command.
If all the ISOs are in /opt/bootimgs the command would be:
ln -s /opt/bootimgs /var/www/html
Of course, apache needs access to this new directory also. It’s fine to set ownership of
/opt/bootimgs
to apache:root or 777 or something.And your resultant web path to these files would then be:
http://<IP>/bootimgs/whatever
-
@Wayne-Workman ok ima get on it and post the results shortly
-
@dureal99d after setting the new nfs paths, did you run
exportfs -a
-
Also may be useful to see the exact command you’re typing now.
-
@Tom-Elliott sudo mount 192.168.1.109:/opt/bootimgs/fedora /mnt
-
@Tom-Elliott no, i didnt know i had to, but will try it
-
@Tom-Elliott said in How to pxe boot cent os 7:
exportfs -a
exportfs: /etc/exports [3]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “*:/var/www/fog/service/ipxe”.
Assuming default behaviour (‘no_subtree_check’).
NOTE: this default has changed since nfs-utils version 1.0.xexportfs: /etc/exports [4]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “*:/opt/bootimgs/fedora”.
Assuming default behaviour (‘no_subtree_check’).
NOTE: this default has changed since nfs-utils version 1.0.x -
@dureal99d those messages are fine
Any luck mounting now? -
@Tom-Elliott said in How to pxe boot cent os 7:
@dureal99d those messages are fine
Any luck mounting now?No luck
-
@dureal99d can you post your exports file again?
-
@Tom-Elliott said in How to pxe boot cent os 7:
@dureal99d can you post your exports file again?
/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
/var/www/fog/service/ipxe *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
/opt/bootimgs *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)