标签:pxe
利用网络安装虚拟机
配置dhcp服务
vim /etc/dhcp/dhcpd.conf
systemctl restart dhcpd ##重启dhcp服务
systemctl stop firewalld ##关闭防火墙
*)打开tftp服务
vim /etc/xinted.d/tftp
systemctl restart xinted
*) mkdir /var/lib/tftpboot/pxelinux.cfg -p
挂载rhel7.2镜像,将isolinux目录下的所有文件拷贝到/var/lib/tftpboot
cp /var/lib/tftpboot/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
vim /var/lib/tftpboot/pxelinux.cfg/default
yum whatprovides */pxelinux.0
测试:
更改虚拟机启动项,利用网络启动,
标签:pxe
原文地址:http://502703956.blog.51cto.com/12753482/1933965