]> git.proxmox.com Git - pve-docs.git/blame_incremental - pve-installation.adoc
update create VM screenshots
[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 ("stretch" for Proxmox VE 5.x) system as
12well as all necessary Proxmox VE packages. The
13installer just asks you a few questions, then partitions the local
14disk(s), installs all required packages, and configures the system
15including a basic network setup. You can get a fully functional system
16within a few minutes. This is the preferred and recommended installation method.
17
18Alternatively, Proxmox VE can be installed on top of an existing Debian system.
19This option is only recommended for advanced users since detail knowledge about
20Proxmox VE is necessary.
21
22ifndef::wiki[]
23
24include::pve-system-requirements.adoc[]
25
26endif::wiki[]
27
28
29Using the {pve} Installation CD-ROM
30-----------------------------------
31
32Includes the following:
33
34* Complete operating system (Debian Linux, 64-bit)
35
36* Partitioning of the hard drive(s) containing the operating system
37 with ext4, ext3, xfs or ZFS
38
39* {pve} kernel with LXC and KVM support
40
41* Complete toolset for administering virtual machines, containers and
42 all necessary resources
43
44* Web based management interface for using the toolset
45
46
47NOTE: By default, the complete server is used and all existing data is
48removed.
49
50Please insert the installation CD-ROM, then boot from that
51drive. Immediately afterwards you can choose the following menu
52options:
53
54Install Proxmox VE::
55
56Start normal installation.
57
58Install Proxmox VE (Debug mode)::
59
60Start installation in debug mode. It opens a shell console at several
61installation steps, so that you can debug things if something goes
62wrong. Please press `CTRL-D` to exit those debug consoles and continue
63installation. This option is mostly for developers and not meant for
64general use.
65
66Rescue Boot::
67
68This option allows you to boot an existing installation. It searches
69all attached hard disks and, if it finds an existing installation,
70boots directly into that disk using the existing Linux kernel. This
71can be useful if there are problems with the boot block (grub), or the
72BIOS is unable to read the boot block from the disk.
73
74Test Memory::
75
76Runs `memtest86+`. This is useful to check if your memory is
77functional and error free.
78
79You normally select *Install Proxmox VE* to start the installation.
80After that you get prompted to select the target hard disk(s). The
81`Options` button lets you select the target file system, which
82defaults to `ext4`. The installer uses LVM if you select `ext3`,
83`ext4` or `xfs` as file system, and offers additional option to
84restrict LVM space (see <<advanced_lvm_options,below>>)
85
86If you have more than one disk, you can also use ZFS as file system.
87ZFS supports several software RAID levels, so this is specially useful
88if you do not have a hardware RAID controller. The `Options` button
89lets you select the ZFS RAID level, and you can choose disks there.
90
91The next pages just ask for basic configuration options like time
92zone and keyboard layout. You also need to specify your email address
93and superuser (root) password (must have at least 5 characters).
94
95The last step is the network configuration. Please note that you can
96use either IPv4 or IPv6 here, but not both. If you want to configure a
97dual stack node, you can easily do that after installation.
98
99If you press `Next` now, installation starts to format disks, and
100copies packages to the target. Please wait until that is finished,
101then reboot the server.
102
103Further configuration is done via the Proxmox web interface. Just
104point your browser to the IP address given during installation
105(https://youripaddress:8006).
106
107NOTE: Default login is "root" (realm 'PAM') and the root password is
108defined during the installation process.
109
110
111[[advanced_lvm_options]]
112Advanced LVM Configuration Options
113~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114
115The installer creates a Volume Group (VG) called `pve`, and additional
116Logical Volumes (LVs) called `root`, `data` and `swap`. The size of
117those volumes can be controlled with:
118
119`hdsize`::
120
121Defines the total HD size to be used. This way you can save free
122space on the HD for further partitioning (i.e. for an additional PV
123and VG on the same hard disk that can be used for LVM storage).
124
125`swapsize`::
126
127Defines the size of the `swap` volume. The default is the size of the
128installed memory, minimum 4 GB and maximum 8 GB. The resulting value cannot
129be greater than `hdsize/8`.
130
131`maxroot`::
132
133Defines the maximum size of the `root` volume, which stores the operation
134system. The maximum limit of the `root` volume size is `hdsize/4`.
135
136`maxvz`::
137
138Defines the maximum size of the `data` volume. The actual size of the `data`
139volume is:
140+
141`datasize = hdsize - rootsize - swapsize - minfree`
142+
143Where `datasize` cannot be bigger than `maxvz`.
144
145`minfree`::
146
147Defines the amount of free space left in LVM volume group `pve`.
148With more than 128GB storage available the default is 16GB, else `hdsize/8`
149will be used.
150+
151NOTE: LVM requires free space in the VG for snapshot creation (not
152required for lvmthin snapshots).
153
154
155ZFS Performance Tips
156~~~~~~~~~~~~~~~~~~~~
157
158ZFS uses a lot of memory, so it is best to add additional RAM if you
159want to use ZFS. A good calculation is 4GB plus 1GB RAM for each TB
160RAW disk space.
161
162ZFS also provides the feature to use a fast SSD drive as write cache. The
163write cache is called the ZFS Intent Log (ZIL). You can add that after
164installation using the following command:
165
166 zpool add <pool-name> log </dev/path_to_fast_ssd>
167
168
169ifdef::wiki[]
170
171link:/wiki/Install_Proxmox_VE_on_Debian_Stretch[Install Proxmox VE on Debian Stretch]
172-------------------------------------------------------------------------------------
173
174link:/wiki/Install_from_USB_Stick[Install from USB Stick]
175---------------------------------------------------------
176
177endif::wiki[]
178
179ifndef::wiki[]
180
181Install {pve} on Debian
182-----------------------
183
184{pve} ships as a set of Debian packages, so you can install it
185on top of a normal Debian installation. After configuring the
186repositories, you need to run:
187
188[source,bash]
189----
190apt-get update
191apt-get install proxmox-ve
192----
193
194Installing on top of an existing Debian installation looks easy, but
195it presumes that you have correctly installed the base system, and you
196know how you want to configure and use the local storage. Network
197configuration is also completely up to you.
198
199In general, this is not trivial, especially when you use LVM or
200ZFS.
201
202You can find a detailed step by step howto on the
203{webwiki-url}Install_Proxmox_VE_on_Debian_Stretch[wiki].
204
205include::pve-usbstick.adoc[]
206
207endif::wiki[]
208
209ifdef::wiki[]
210
211Video Tutorials
212---------------
213
214* List of all official tutorials on our
215 http://www.youtube.com/proxmoxve[Proxmox VE YouTube Channel]
216
217* Tutorials in Spanish language on
218 http://www.youtube.com/playlist?list=PLUULBIhA5QDBdNf1pcTZ5UXhek63Fij8z[ITexperts.es
219 YouTube Play List]
220
221
222See Also
223--------
224
225* link:/wiki/System_Requirements[System Requirements]
226
227* link:/wiki/Package_Repositories[Package Repositories]
228
229* link:/wiki/Host_System_Administration[Host System Administration]
230
231* link:/wiki/Network_Configuration[Network Configuration]
232
233* link:/wiki/Installation:_Tips_and_Tricks[Installation: Tips and Tricks]
234
235endif::wiki[]