Setup PXE Server

1. Use tftp32


2. Download /linux/net-boot/xxx-installer/

 

3. copy to tftp32 dir

 

4. copy pxelinux.0 and pxelinuxcfg  to tftp32 dir as well

 

5. setup the dhcp parameter

 

Done!

 

PXE (Preboot Execution Environment) is a network booting protocol that allows a computer to boot from a network interface instead of a local hard drive. To set up a PXE server on Ubuntu 18.04, you can follow these steps: 1. Ensure that your Ubuntu 18.04 system is connected to a network. 2. Install the necessary packages by running the following command: ``` sudo apt-get install tftpd-hpa syslinux pxelinux ``` 3. Configure the TFTP server by editing the `/etc/default/tftpd-hpa` file. Set the `TFTP_OPTIONS` variable as follows: ``` TFTP_OPTIONS="--secure --create" ``` 4. Create a directory to store the PXE configuration files: ``` sudo mkdir /var/lib/tftpboot/pxelinux.cfg ``` 5. Copy the PXE boot configuration file template to the new directory: ``` sudo cp /usr/lib/PXELINUX/pxelinux.0 /var/lib/tftpboot/ sudo cp /usr/lib/syslinux/modules/bios/* /var/lib/tftpboot/ sudo ln -s /var/lib/tftpboot/pxelinux.0 /var/lib/tftpboot/lpxelinux.0 ``` 6. Edit the `/var/lib/tftpboot/pxelinux.cfg/default` file and configure it as needed. This file specifies the boot menu options for PXE clients. 7. Place the necessary boot files in the appropriate directories. For example, you can download the Ubuntu 18.04 netboot images and extract them into the `/var/lib/tftpboot/ubuntu-installer/amd64` directory. 8. Restart the TFTP service to apply the changes: ``` sudo service tftpd-hpa restart ``` 9. Ensure that firewall rules allow TFTP traffic if you have a firewall enabled. After performing these steps, your PXE server should be set up on Ubuntu 18.04. PXE clients on the network can now boot from this server to install or boot operating systems remotely. Please note that this is a high-level overview, and you might need to refer to more detailed documentation or adjust the steps based on your specific requirements.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值