]> git.proxmox.com Git - pmg-docs.git/blame - pmg-installation.adoc
api-viewer: adapt and add flex for parameter coolumns
[pmg-docs.git] / pmg-installation.adoc
CommitLineData
03c03402
DM
1Installation
2============
3
4{pmg} is based on Debian and comes with an installation CD-ROM
5which includes a complete Debian ("stretch" for version 5.x) system as
6well as all necessary {pmg} packages.
7
8The installer just asks you a few questions, then partitions the local
9disk(s), installs all required packages, and configures the system
10including a basic network setup. You can get a fully functional system
11within a few minutes. This is the preferred and recommended
12installation method.
13
14Alternatively, {pmg} can be installed on top of an existing Debian
15system. This option is only recommended for advanced users since
16it requires more detailed knowledge about {pmg} and Debian.
17
18Using the {pmg} Installation CD-ROM
19-----------------------------------
20
21Includes the following:
22
23* Complete operating system (Debian Linux, 64-bit)
24
25* Partitioning of the hard drive(s) containing the operating system
26 with ext4, ext3, xfs or ZFS
27
28* Linux kernel
29
30* Postfix MTA, ClamAV, Spamassassin and the {pmg} toolset
31
32* Web based management interface for using the toolset
33
34Please insert the installation CD-ROM, then boot from that
35drive. Immediately afterwards you can choose the following menu
36options:
37
38image::images/installer/pmg-grub-menu.png[]
39
40Install {pmg}::
41
42Start normal installation.
43
44Install {pmg} (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
55all attached hard disks and, if it finds an existing installation,
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
62Runs `memtest86+`. This is useful to check if your memory is
63functional and error free.
64
dc69da07 65You normally select *Install {pmg}* to start the installation.
03c03402 66
dc69da07 67image::images/installer/pmg-select-target-disk.png[]
03c03402 68
dc69da07
DM
69First step ist to read our EULA (End User License Agreement). After
70that you get prompted to select the target hard disk(s).
03c03402
DM
71
72NOTE: By default, the complete server is used and all existing data is
73removed.
74
03c03402
DM
75The `Options` button lets you select the target file system, which
76defaults to `ext4`. The installer uses LVM if you select `ext3`,
77`ext4` or `xfs` as file system, and offers additional option to
78restrict LVM space (see <<advanced_lvm_options,below>>)
79
80If you have more than one disk, you can also use ZFS as file system.
81ZFS supports several software RAID levels, so this is specially useful
82if you do not have a hardware RAID controller. The `Options` button
83lets you select the ZFS RAID level, and you can choose disks there.
84
dc69da07
DM
85image::images/installer/pmg-select-location.png[]
86
87The next page just ask for basic configuration options like your
88location, the time zone and keyboard layout. The location is used to
89select a download server near you to speedup updates. The installer is
90usually able to auto detect those setting, so you only need to change
91them in rare situations when auto detection fails, or when you want to
92use some special keyboard layout not commonly used in your country.
93
94image::images/installer/pmg-set-password.png[]
95
96You then need to specify an email address and the superuser (root)
97password. The password must have at least 5 characters, but we highly
98recommend to use stronger passwords - here are some guidelines:
99
100- Use a minimum password length of 12 to 14 characters.
101
102- Include lowercase and uppercase alphabetic characters, numbers and symbols.
103
104- Avoid character repetition, keyboard patterns, dictionary words, letter or number sequences, usernames, relative or pet names, romantic links (current or past) and biographical information (e.g., ID numbers, ancestors' names or dates).
105
106It is sometimes necessary to send notification to the system
107administrator, for example:
108
109- Information about available package updates.
110
111- Error messages from periodic CRON jobs.
112
113All those notification mails will be sent to the specified email
114address.
115
116image::images/installer/pmg-setup-network.png[]
03c03402
DM
117
118The last step is the network configuration. Please note that you can
119use either IPv4 or IPv6 here, but not both. If you want to configure a
120dual stack node, you can easily do that after installation.
121
122If you press `Next` now, installation starts to format disks, and
dc69da07
DM
123copies packages to the target.
124
125image::images/installer/pmg-installation.png[]
126
127Copying packages usually takes a few minutes. Please wait until that
128is finished, then reboot the server.
03c03402
DM
129
130Further configuration is done via the Proxmox web interface. Just
131point your browser to the IP address given during installation
132(https://youripaddress:8006).
133
134NOTE: Default login is "root" and the root password is
135defined during the installation process.
136
137
138[[advanced_lvm_options]]
139Advanced LVM Configuration Options
140~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141
142The installer creates a Volume Group (VG) called `pmg`, and additional
143Logical Volumes (LVs) called `root` and `swap`. The size of
144those volumes can be controlled with:
145
146`hdsize`::
147
148Defines the total HD size to be used. This way you can save free
149space on the HD for further partitioning (i.e. for an additional PV
150and VG on the same hard disk that can be used for LVM storage).
151
152`swapsize`::
153
154Defines the size of the `swap` volume. The default is the size of the
155installed memory, minimum 4 GB and maximum 8 GB. The resulting value cannot
156be greater than `hdsize/8`.
157
03c03402
DM
158`minfree`::
159
2729e8b8 160Defines the amount of free space left in LVM volume group `pmg`.
03c03402
DM
161With more than 128GB storage available the default is 16GB, else `hdsize/8`
162will be used.
163+
164NOTE: LVM requires free space in the VG for snapshot creation (not
165required for lvmthin snapshots).
166
167
168ZFS Performance Tips
169~~~~~~~~~~~~~~~~~~~~
170
171ZFS uses a lot of memory, so it is best to add additional RAM if you
172want to use ZFS. A good calculation is 4GB plus 1GB RAM for each TB
173RAW disk space.
174
175ZFS also provides the feature to use a fast SSD drive as write cache. The
176write cache is called the ZFS Intent Log (ZIL). You can add that after
177installation using the following command:
178
179 zpool add <pool-name> log </dev/path_to_fast_ssd>
180
181
182Install {pmg} on Debian
183-----------------------
184
185{pmg} ships as a set of Debian packages, so you can install it
186on top of a normal Debian installation. After configuring the
187repositories, you need to run:
188
189[source,bash]
190----
191apt-get update
192apt-get install proxmox-mailgateway
193----
194
195Installing on top of an existing Debian installation looks easy, but
196it presumes that you have correctly installed the base system, and you
197know how you want to configure and use the local storage. Network
198configuration is also completely up to you.
199
200NOTE: In general, this is not trivial, especially when you use LVM or
201ZFS.