Configuring the TFTP Server
# restorecon -Rv /tftboot/ on the TFTP server.Configuring TFTP Server for Installation on BIOS-based Client Servers
To configure the TFTP server for installation on BIOS-based client servers, do the following:
Make sure the TFTP server, Xinetd, and SYSLINUX bootloader are installed:
1# yum install tftp-server syslinux xinetdEdit the
/etc/xinetd.d/tftpfile to have the following:1 2 3 4 5 6 7 8 9 10 11 12 13service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -v -s /tftpboot per_source = 11 cps = 100 2 flags = IPv4 }Copy the following files to the
/tftpbootdirectory (if this directory does not exist, create it under the root (/) directory):/images/pxeboot/vmlinuzand/images/pxeboot/initrd.imgfrom the Virtuozzo Server distribution,menu.c32andpxelinux.0from thesyslinuxdirectory (usually/usr/share/syslinuxor/usr/lib/syslinux).
In the
/tftpbootdirectory, create the/pxelinux.cfgdirectory. In it, create the filedefault.Add the following lines to
/tftpboot/pxelinux.cfg/default:1 2 3 4 5 6 7 8 9 10 11 12 13default menu.c32 prompt 0 timeout 60 ontimeout VZ menu title Virtuozzo Server Boot Menu label 1 menu label Install Virtuozzo Server 7 with GUI management kernel vmlinuz append initrd=initrd.img ui ip=dhcp inst.repo=http://<HTTP_server_IP_address>/vz label 2 menu label Install Virtuozzo Server 7 with CLI management kernel vmlinuz append initrd=initrd.img ip=dhcp inst.repo=http://<HTTP_server_IP_address>/vzFor more details on the parameters you can specify in/tftpboot/pxelinux.cfg/default, see the documentation forsyslinux.Start the
xinetdservice:1# systemctl start xinetd.serviceOr restart it if already running:
1# systemctl restart xinetd.serviceIf necessary, allow incoming connections to the TFTP service in the firewall:
1 2# firewall-cmd --add-service=tftp --permanent # systemctl restart firewalld.service
Configuring TFTP Server for Installation on EFI-based Client Servers
To configure the TFTP server for installation on EFI-based client servers, do the following:
Make sure the TFTP server and Xinetd are installed:
1# yum install tftp-server xinetdEdit the
/etc/xinetd.d/tftpfile to have the following:1 2 3 4 5 6 7 8 9 10 11 12 13service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -v -s /tftpboot per_source = 11 cps = 100 2 flags = IPv4 }Copy the following files from the Virtuozzo Server distribution to the
/tftpbootdirectory (if this directory does not exist, create it under the root (/) directory):/images/pxeboot/vmlinuz,/images/pxeboot/initrd.img,/EFI/BOOT/grubx64.efi.
In the
/tftpbootdirectory, create thegrub.cfgfile.Add the following lines to
/tftpboot/grub.cfg:1 2 3 4 5 6 7 8 9set timeout=60 menuentry 'Virtuozzo Server 7 with GUI management' { linuxefi vmlinuz ui ip=dhcp inst.repo=http://<HTTP_server_IP_address>/vz initrdefi initrd.img } menuentry 'Virtuozzo Server 7 with CLI management' { linuxefi vmlinuz ip=dhcp inst.repo=http://<HTTP_server_IP_address>/vz initrdefi initrd.img }Start the
xinetdservice:1# systemctl start xinetd.serviceOr restart it if already running:
1# systemctl restart xinetd.serviceIf necessary, allow incoming connections to the TFTP service in the firewall:
1 2# firewall-cmd --add-service=tftp --permanent # systemctl restart firewalld.service