4.3.1. Kickstart file example for installing on EFI-based systems

You can use the file above to install OpenVZ on BIOS-based systems. For installation on EFI-based systems, you need to modify the following places in the file (the changes are highlighted in bold):

# The following 4 commands are used to remove all partitions from the SDA hard
# drive and create these partitions: /boot/efi (required for EFI-based systems),
# /boot, /, /vz, and swap.
# clearpart --drives=sda --all --initlabel
part /boot/efi --fstype=efi --grow --maxsize=200 --size=20
part /boot --fstype=ext4 --size=512
part / --fstype=ext4 --size=20096
part /vz --fstype=ext4 --size=40768 --grow
part swap --size=4000
# Configure the bootloader.
bootloader --location=partition