Kickstart File Example
Below is an example of a kickstart file that you can use to install and configure Virtuozzo Server in unattended mode. You can use this file as the basis for creating your own kickstart files.
- To make sure the disk where you install Virtuozzo Server is partitioned correctly, you may need to erase existing partitions with
clearpart. This command is commented out by default to avoid accidental loss of data. - Keeping plain-text passwords in the kickstart file is a security risk if your network is not isolated. Consider encrypting your password according to
authparameters (e.g., with SHA512 as in this example) and usingrootpw --iscrypted <passwd_hash>.
| |
Kickstart File Example for Virtuozzo Storage with GUI Management
If you need to install Virtuozzo Automator and Virtuozzo Storage, you can expand the basic example as follows:
For the first node in your VA and Virtuozzo Storage infrastructure, add the following lines to the kickstart file:
1 2 3 4container --special=va-mn --ip=<VA_MN_IPv4_addr> [--hostname=<VA_MN_hostname>] --rootpw=<VA_MN_passwd> container --special=vstorage-ui --ip=<vstorage_UI_IPv4_addr> [--hostname=<vstorage_UI_hostname>] --rootpw=<vstorage_UI_passwd> register_vaagent --mn_addr=<VA_MN_IPv4_addr> --rootpw=<VA_MN_passwd> register_vstorage_ui --ui_addr=<vstorage_UI_IPv4_addr>For the second and other nodes in your VA and Virtuozzo Storage infrastructure, add the following lines to the kickstart file:
1 2register_vaagent --mn_addr=<VA_MN_IPv4_addr> --rootpw=<VA_MN_passwd> register_vstorage_ui --ui_addr=<vstorage_UI_IPv4_addr> --token=<token>
Advanced Partitioning Example
For more control on partitioning, you can replace autopart with a set of part commands to adjust the size of required partitions. In this case, each partition will have the same size on every system you install Virtuozzo Server on. E.g., if you use the lines below, swap will be 4GiB and /vz will be 40GiB on every system (whereas if you use autopart swap size will depend on RAM size and /vz will occupy all available space).
For example, for installation on BIOS-based systems:
| |
For installation on EFI-based systems, also specify
| |
Note the following:
- For details on possible partition sizes, see Partitioning the Hard Drives.
- If you are installing Virtuozzo Storage and need to use
part, also usevstorageoptions to configure partitions for chunk servers and clients. For details, see Options Specific to Virtuozzo Storage with CLI Management.