Difference between revisions of "Set up PXE boot VM"
From HallCWiki
(→Set up the PXE boot) |
(→Set up the PXE boot) |
||
Line 4: | Line 4: | ||
== Set up the PXE boot == | == Set up the PXE boot == | ||
* Install required packages: yum install nfs-utils tftp-server syslinux-tftpboot syslinux | * Install required packages: yum install nfs-utils tftp-server syslinux-tftpboot syslinux | ||
− | * Enable tftp as root: | + | * Enable tftp as root: (an explanation about tftp.service and tftp.socket: [https://blog.thewatertower.org/2019/05/01/tftp-part-3-replacing-xinetd-with-systemd/]) |
<pre> | <pre> | ||
systemctl enable tftp.socket | systemctl enable tftp.socket |
Revision as of 11:38, 28 June 2024
PXE boot VM
- The ROCs and VTPs are booted using PXEboot. The PXEboot is hosted in a virtual machine located at the Hall ESX clusters. The VM name is "cdaqpxe.jlab.org"
Set up the PXE boot
- Install required packages: yum install nfs-utils tftp-server syslinux-tftpboot syslinux
- Enable tftp as root: (an explanation about tftp.service and tftp.socket: [1])
systemctl enable tftp.socket systemctl start tftp.socket
- Create PXE boot directory:
cd /tftpboot mkdir linux-diskless
- Set up PXE boot configurations
cd /tftpboot/linux-diskless cp /usr/share/syslinux/pxelinux.0 . scp -r root@cdaqfs1:/tftpboot/linux-diskless/pxelinux.cfg .
- Copy boot images from cdaqfs1 to /tftpboot/linux-diskless/:
scp -r root@cdaqfs1:/tftpboot/linux-diskless/boot .
- Edit tftp systemd configuration file to let the tftp directory point to the /tftpboot:
vi /usr/lib/systemd/system/tftp.service
and change:
ExecStart=/usr/sbin/in.tftpd -s /tftpboot