Proxmox 高阶安装选项

By | 2018-11-26

Boot options

The installer creates LVM volumes for the root file-system, data and swap, based on the total disk size. You can customize some of these values, just type on the boot prompt of the installation ISO.

  • At install time, at the boot prompt you can specify “linux” followed by one or more optional parameters, see below:
    • Default partitioning uses ext3, with only ext4 as option. If you want ext4 just type: ext4
    • To define the total size of hd to be used (only Proxmox > 2.3): hdsize=X (where X is in GB, and affects /dev/sda2 size (/dev/sda1 is small and only for boot). This way you can save free space on the HD for further partitioning (i.e. for an additional PV and VG on the same hard disk that can be used for LVM storage type).
    • To define the amount of root partition’s disk space: maxroot=X (where X is in GB).
    • To define the amount of swap partition’s disk space: swapsize=X (where X is in GB. Default is the same size as installed RAM, with 4GB minimum and HDSIZE/8 as maximum)
    • To define the amount of logical volume “data” space (/var/lib/vz): maxvz=X (where X is in GB).
    • To define the amount of free space left in LVM VG ‘pve’: minfree=X (where X is in GB, 16GB is the default if storage available > 128GB, 1/8 otherwise)
  • Example, ‘linux ext4 maxroot=25 swapsize=8 maxvz=400 minfree=32’
  • follow the instructions as always
  • if you screwed up grub and can’t boot from hd anymore, boot from the installer cdrom and at “boot:” prompt just type: pveboot (NOT preceded by “linux”). This will boot from cdrom and mount LVM root and data partitions

發佈留言