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