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