4.4. Copying the Kickstart File

To install OpenVZ using a kickstart file, you first need to make the kickstart file accessible over the network. To do this:

  1. Copy the kickstart file to the same directory on the HTTP server where the OpenVZ installation files are stored (e.g., to /var/www/html/vz).
  2. Add the following string to the /tftpboot/pxelinux.cfg/default file on the PXE server:



    Note: For EFI-based systems, the file you need to edit has the name of /tftpboot/pxelinux.cfg/efidefault or /tftpboot/pxelinux.cfg/<PXE_server_IP_address>.

Assuming that the HTTP server has the IP address of, the DocumentRoot directory is set to /var/www/html and the full path to your kickstart file on this server is /var/www/html/vz/ks.cfg, your default file may look like the following:

default menu.c32
prompt 0
timeout 100
ontimeout VZ
menu title OpenVZ Boot Menu
label VZ
                menu label Install OpenVZ
                kernel vmlinuz
                append initrd=initrd.img ks=
method= ksdevice=eth0