I know I can't export a NFS mount, just a local fs, and this is my likely problem.

I have a PXE server on a virtual box, it has an Ethernet to the regular network and NAS and an Ethernet for a new computer who is going to be PXE booted. The PXE server gets its ISOs from the NAS, located on the regular Ethernet. Ideally, the PXE'd box would see only a local FS and all the mounted stuff is hidden away, the server would act as a proxy.

/var/lib/tftpboot is exported on the PXE server which has a mount called "PXE" is mounted there. is my PXE server which assigns IPs via DHCP.

The new computer can access the PXE server but it can't get to the NAS. I can boot a vmlinuz image off the NAS. But it crashes soon as it tries to setup a nfs of its own to the NaS.

netboot from :/var/lib/tftpboot/PXE/GParted Trying to nfsmount -o nolock -o ro /live/medium fails/times outs. It's trying to mount a remotely mounted NFS.

What should I do instead?

  • You probably need to setup a gateway between the two networks. Alternatively, if you only want the nfs for readonly installation, you might look at this answer I gave to a question on how you might re-export a cifs filesystem by using an intermediate fuse filesystem, which you could try on your PXE server to re-export the NFS.
    – meuh
    Jan 17 '18 at 18:38
  • Could you post your dhpd.conf and your pxe config? (probably your default in some subdir of tftpboot)
    – Centimane
    Jan 17 '18 at 18:38
  • The NAS with all the files is located here: (it is exported) The server can reach it on eth 0. DHCP.conf and default are on pastebin.com/L2TsbkTM Eth1 is NATd Internet Eth2 is the PXE DHCP. ip route list: default via dev eth1 via dev eth0 via dev eth0 dev eth0 proto kernel scope link src dev eth1 proto kernel scope link src dev eth2 proto kernel scope link src Jan 17 '18 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.