]> git.proxmox.com Git - pve-docs.git/blame_incremental - pve-installation.adoc
update copyright year to current
[pve-docs.git] / pve-installation.adoc
... / ...
CommitLineData
1Installing Proxmox VE
2=====================
3ifndef::manvolnum[]
4:pve-toplevel:
5endif::manvolnum[]
6ifdef::wiki[]
7:title: Installation
8endif::wiki[]
9
10{pve} is based on Debian and comes with an installation CD-ROM
11which includes a complete Debian system ("stretch" for version 5.x) as
12well as all necessary {pve} packages.
13
14The installer just asks you a few questions, then partitions the local
15disk(s), installs all required packages, and configures the system
16including a basic network setup. You can get a fully functional system
17within a few minutes. This is the preferred and recommended
18installation method.
19
20Alternatively, {pve} can be installed on top of an existing Debian
21system. This option is only recommended for advanced users since
22detail knowledge about {pve} is necessary.
23
24ifndef::wiki[]
25
26include::pve-system-requirements.adoc[]
27
28endif::wiki[]
29
30
31Using the {pve} Installation CD-ROM
32-----------------------------------
33
34You can download the ISO from {website}en/downloads.
35It includes the following:
36
37* Complete operating system (Debian Linux, 64-bit)
38
39* The {pve} installer, which partitions the hard drive(s) with ext4,
40 ext3, xfs or ZFS and installs the operating system.
41
42* {pve} kernel (Linux) with LXC and KVM support
43
44* Complete toolset for administering virtual machines, containers and
45 all necessary resources
46
47* Web based management interface for using the toolset
48
49NOTE: During the installation process, the complete server
50is used by default and all existing data is removed.
51
52[thumbnail="screenshot/pve-grub-menu.png"]
53
54Please insert the installation CD-ROM, then boot from that
55drive. Immediately afterwards you can choose the following menu
56options:
57
58Install Proxmox VE::
59
60Start normal installation.
61
62TIP: It is possible to only use the keyboard to progress through the
63installation wizard. Buttons can be pressed by pressing down the `ALT`
64key, combined with the underlined character from the respective Button.
65For example, `ALT + N` to press a `Next` button.
66
67Install Proxmox VE (Debug mode)::
68
69Start installation in debug mode. It opens a shell console at several
70installation steps, so that you can debug things if something goes
71wrong. Please press `CTRL-D` to exit those debug consoles and continue
72installation. This option is mostly for developers and not meant for
73general use.
74
75Rescue Boot::
76
77This option allows you to boot an existing installation. It searches
78all attached hard disks and, if it finds an existing installation,
79boots directly into that disk using the existing Linux kernel. This
80can be useful if there are problems with the boot block (grub), or the
81BIOS is unable to read the boot block from the disk.
82
83Test Memory::
84
85Runs `memtest86+`. This is useful to check if your memory is
86functional and error free.
87
88[thumbnail="screenshot/pve-select-target-disk.png"]
89
90You normally select *Install Proxmox VE* to start the installation.
91After that you get prompted to select the target hard disk(s). The
92`Options` button lets you select the target file system, which
93defaults to `ext4`. The installer uses LVM if you select `ext3`,
94`ext4` or `xfs` as file system, and offers additional option to
95restrict LVM space (see <<advanced_lvm_options,below>>)
96
97You can also use ZFS as file system. ZFS supports several software RAID
98levels, so this is specially useful if you do not have a hardware RAID
99controller. The `Options` button lets you select the ZFS RAID level, and
100you can choose disks there. Additionally you can set additional options (see
101<<advanced_zfs_options,below>>).
102
103[thumbnail="screenshot/pve-select-location.png", float="left"]
104
105The next page just ask for basic configuration options like your
106location, the time zone and keyboard layout. The location is used to
107select a download server near you to speedup updates. The installer is
108usually able to auto detect those setting, so you only need to change
109them in rare situations when auto detection fails, or when you want to
110use some special keyboard layout not commonly used in your country.
111
112[thumbnail="screenshot/pve-set-password.png"]
113
114You then need to specify an email address and the superuser (root)
115password. The password must have at least 5 characters, but we highly
116recommend to use stronger passwords - here are some guidelines:
117
118- Use a minimum password length of 12 to 14 characters.
119
120- Include lowercase and uppercase alphabetic characters, numbers and symbols.
121
122- Avoid character repetition, keyboard patterns, dictionary words,
123 letter or number sequences, usernames, relative or pet names,
124 romantic links (current or past) and biographical information (e.g.,
125 ID numbers, ancestors' names or dates).
126
127It is sometimes necessary to send notification to the system
128administrator, for example:
129
130- Information about available package updates.
131
132- Error messages from periodic CRON jobs.
133
134All those notification mails will be sent to the specified email
135address.
136
137[thumbnail="screenshot/pve-setup-network.png"]
138
139The last step is the network configuration. Please note that you can
140use either IPv4 or IPv6 here, but not both. If you want to configure a
141dual stack node, you can easily do that after installation.
142
143[thumbnail="screenshot/pve-installation.png", float="left"]
144
145If you press `Next` now, installation starts to format disks, and
146copies packages to the target. Please wait until that is finished,
147then reboot the server.
148
149Further configuration is done via the Proxmox web interface. Just
150point your browser to the IP address given during installation
151(https://youripaddress:8006).
152
153NOTE: Default login is "root" (realm 'PAM') and the root password is
154defined during the installation process.
155
156
157[[advanced_lvm_options]]
158Advanced LVM Configuration Options
159~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
160
161The installer creates a Volume Group (VG) called `pve`, and additional
162Logical Volumes (LVs) called `root`, `data` and `swap`. The size of
163those volumes can be controlled with:
164
165`hdsize`::
166
167Defines the total HD size to be used. This way you can save free
168space on the HD for further partitioning (i.e. for an additional PV
169and VG on the same hard disk that can be used for LVM storage).
170
171`swapsize`::
172
173Defines the size of the `swap` volume. The default is the size of the
174installed memory, minimum 4 GB and maximum 8 GB. The resulting value cannot
175be greater than `hdsize/8`.
176+
177NOTE: If set to `0`, no `swap` volume will be created.
178
179`maxroot`::
180
181Defines the maximum size of the `root` volume, which stores the operation
182system. The maximum limit of the `root` volume size is `hdsize/4`.
183
184`maxvz`::
185
186Defines the maximum size of the `data` volume. The actual size of the `data`
187volume is:
188+
189`datasize = hdsize - rootsize - swapsize - minfree`
190+
191Where `datasize` cannot be bigger than `maxvz`.
192+
193NOTE: In case of LVM thin, the `data` pool will only be created if `datasize`
194is bigger than 4GB.
195+
196NOTE: If set to `0`, no `data` volume will be created and the storage
197configuration will be adapted accordingly.
198
199`minfree`::
200
201Defines the amount of free space left in LVM volume group `pve`.
202With more than 128GB storage available the default is 16GB, else `hdsize/8`
203will be used.
204+
205NOTE: LVM requires free space in the VG for snapshot creation (not
206required for lvmthin snapshots).
207
208[[advanced_zfs_options]]
209Advanced ZFS Configuration Options
210~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
211The installer creates a ZFS pool `rpool`. When selecting ZFS, no swap space is
212created by default. You can leave some unpartitioned space for swap or create
213a swap zvol after installation, though the latter can lead to problems
214(see <<zfs_swap,ZFS swap notes>>).
215
216`ashift`::
217
218Defines the `ashift` value for the created pool. The `ashift` needs
219to be set at least to the sector-size of the underlying disks (2 to
220the power of `ashift` is the sector-size), or any disk,
221which might be put in the pool (e.g. during replacing a defective disk).
222
223`compress`::
224
225Defines whether compression is enabled for `rpool`.
226
227`checksum`::
228
229Defines which checksumming algorithm should be used for `rpool`.
230
231`copies`::
232
233Defines the `copies` parameter for `rpool`. Check the `zfs(8)` manpage for the
234semantics, and why this does not replace redundancy on disk-level.
235
236`hdsize`::
237
238Defines the total HD size to be used. This way you can save free
239space on the HD(s) for further partitioning (e.g. for creating a swap-partition).
240`hdsize` is only honored for bootable disks, i.e., only the first disk or
241mirror for RAID0, RAID1 or RAID10, and all disks in RAID-Z[123].
242
243
244ZFS Performance Tips
245~~~~~~~~~~~~~~~~~~~~
246
247ZFS uses a lot of memory, so it is best to add additional RAM if you
248want to use ZFS. A good calculation is 4GB plus 1GB RAM for each TB
249RAW disk space.
250
251ZFS also provides the feature to use a fast SSD drive as write cache. The
252write cache is called the ZFS Intent Log (ZIL). You can add that after
253installation using the following command:
254
255 zpool add <pool-name> log </dev/path_to_fast_ssd>
256
257
258ifdef::wiki[]
259
260link:/wiki/Install_Proxmox_VE_on_Debian_Stretch[Install Proxmox VE on Debian Stretch]
261-------------------------------------------------------------------------------------
262
263link:/wiki/Install_from_USB_Stick[Install from USB Stick]
264---------------------------------------------------------
265
266endif::wiki[]
267
268ifndef::wiki[]
269
270Install {pve} on Debian
271-----------------------
272
273{pve} ships as a set of Debian packages, so you can install it
274on top of a normal Debian installation. After configuring the
275repositories, you need to run:
276
277[source,bash]
278----
279apt-get update
280apt-get install proxmox-ve
281----
282
283Installing on top of an existing Debian installation looks easy, but
284it presumes that you have correctly installed the base system, and you
285know how you want to configure and use the local storage. Network
286configuration is also completely up to you.
287
288In general, this is not trivial, especially when you use LVM or
289ZFS.
290
291You can find a detailed step by step how-to guide on the
292{webwiki-url}Install_Proxmox_VE_on_Debian_Stretch[wiki].
293
294include::pve-usbstick.adoc[]
295
296endif::wiki[]
297
298ifdef::wiki[]
299
300Video Tutorials
301---------------
302
303* List of all official tutorials on our
304 http://www.youtube.com/proxmoxve[Proxmox VE YouTube Channel]
305
306* Tutorials in Spanish language on
307 http://www.youtube.com/playlist?list=PLUULBIhA5QDBdNf1pcTZ5UXhek63Fij8z[ITexperts.es
308 YouTube Play List]
309
310
311See Also
312--------
313
314* link:/wiki/System_Requirements[System Requirements]
315
316* link:/wiki/Package_Repositories[Package Repositories]
317
318* link:/wiki/Host_System_Administration[Host System Administration]
319
320* link:/wiki/Network_Configuration[Network Configuration]
321
322* link:/wiki/Installation:_Tips_and_Tricks[Installation: Tips and Tricks]
323
324endif::wiki[]