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