]> git.proxmox.com Git - pve-docs.git/blame - pve-installation.adoc
pct: include information about pct restore
[pve-docs.git] / pve-installation.adoc
CommitLineData
e71b5d0d
DM
1Installing Proxmox VE
2---------------------
3include::attributes.txt[]
d91f8c1e
DM
4
5{pve} ships as a set of Debian packages, so you can simply install it
6on top of a normal Debian installation. After configuring the
7repositories, you need to run:
8
9[source,bash]
10----
11apt-get update
12apt-get install proxmox-ve
13----
14
15While this looks easy, it presumes that you have correctly installed
16the base system, and you know how you want to configure and use the
17local storage. Network configuration is also completely up to you.
18
19In general, this is not trivial, especially when you use LVM or
20ZFS. This is why we provide an installation CD-ROM for {pve}. That
21installer just ask you a few questions, then partitions the local
22disk(s), installs all required packages, and configures the system
23including a basic network setup. You can get a fully functional system
24within a few minutes, including the following:
25
26* Complete operating system (Debian Linux, 64-bit)
27* Partition the hard drive with ext4 (alternative ext3 or xfs) or ZFS
28* {pve} Kernel with LXC and KVM support
29* Complete toolset
30* Web based management interface
31
32NOTE: By default, the complete server is used and all existing data is
33removed.
34
35Using the {pve} Installation CD-ROM
36~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37
38Please insert the installation CD-ROM, then boot from that
39drive. Immediately afterwards you can choose the following menu
40options:
41
42Install Proxmox VE::
43
44Start normal installation.
45
46Install Proxmox VE (Debug mode)::
47
48Start installation in debug mode. It opens a shell console at several
49installation steps, so that you can debug things if something goes
50wrong. Please press `CTRL-D` to exit those debug consoles and continue
51installation. This option is mostly for developers and not meant for
52general use.
53
54Rescue Boot::
55
56This option allows you to boot an existing installation. It searches
57all attached hard disks, and if it finds an existing installation,
58boots directly into that disk using the existing Linux kernel. This
59can be useful if there are problems with the boot block (grub), or the
60BIOS is unable to read the boot block from the disk.
61
62Test Memory::
63
64Runs 'memtest86+'. This is useful to check if your memory if
65functional and error free.
66
67You normally select *Install Proxmox VE* to start the installation.
68After that you get prompted to select the target hard disk(s). The
8e4bb261 69`Options` button lets you select the target file system, which
d91f8c1e
DM
70defaults to `ext4`. The installer uses LVM if you select 'ext3',
71'ext4' or 'xfs' as file system, and offers additional option to
72restrict LVM space (see <<advanced_lvm_options,below>>)
73
74If you have more than one disk, you can also use ZFS as file system.
75ZFS supports several software RAID levels, so this is specially useful
76if you do not have a hardware RAID controller. The `Options` button
77lets you select the ZFS RAID level, and you can choose disks there.
78
79The next pages just asks for basic configuration options like time
80zone and keyboard layout. You also need to specify your email address
81and select a superuser password.
82
83The last step is the network configuration. Please note that you can
84use either IPv4 or IPv6 here, but not both. If you want to configure a
85dual stack node, you can easily do that after installation.
86
87If you press `Next` now, installation starts to format disks, and
88copies packages to the target. Please wait until that is finished,
89then reboot the server.
90
91Further configuration is done via the Proxmox web interface. Just
92point your browser to the IP address given during installation
93(https://youripaddress:8006). {pve} is tested for IE9, Firefox 10
94and higher, and Google Chrome.
95
96
97[[advanced_lvm_options]]
98Advanced LVM configuration options
99^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100
101The installer creates a Volume Group (VG) called `pve`, and additional
102Logical Volumes (LVs) called `root`, `data` and `swap`. The size of
103those volumes can be controlled with:
104
105`hdsize`::
106
107Defines the total HD size to be used. This way you can save free
108space on the HD for further partitioning (i.e. for an additional PV
109and VG on the same hard disk that can be used for LVM storage).
110
111`swapsize`::
112
113To define the size of the `swap` volume. Default is the same size as
114installed RAM, with 4GB minimum and `hdsize/8` as maximum.
115
116`maxroot`::
117
118The `root` volume size. The `root` volume stores the whole operation
119system.
120
121`maxvz`::
122
123Define the size of the `data` volume, which is mounted at
124'/var/lib/vz'.
125
126`minfree`::
127
128To define the amount of free space left in LVM volume group `pve`.
12916GB is the default if storage available > 128GB, `hdsize/8` otherwise.
130+
131NOTE: LVM requires free space in the VG for snapshot creation (not
132required for lvmthin snapshots).
133
134
135ZFS Performance Tips
136^^^^^^^^^^^^^^^^^^^^
137
138ZFS uses a lot of memory, so it is best to add additional 8-16GB RAM
139if you want to use ZFS.
140
141ZFS also provides the feature to use a fast SSD drive as write cache. The
142write cache is called the ZFS Intent Log (ZIL). You can add that after
143installation using the following command:
144
145 zpool add <pool-name> log </dev/path_to_fast_ssd>
146