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