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