]> git.proxmox.com Git - pmg-docs.git/blame - pmg-installation.adoc
add pmg-installation.adoc
[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
65You normally select *Install {pmg}* to start the installation. First
66step ist to read our EULA (End User License Agreement).
67
68image::images/installer/pmg-license-agreement.png[]
69
70After that you get prompted to select the target hard disk(s).
71
72NOTE: By default, the complete server is used and all existing data is
73removed.
74
75image::images/installer/pmg-select-target-disk.png[]
76
77The `Options` button lets you select the target file system, which
78defaults to `ext4`. The installer uses LVM if you select `ext3`,
79`ext4` or `xfs` as file system, and offers additional option to
80restrict LVM space (see <<advanced_lvm_options,below>>)
81
82If you have more than one disk, you can also use ZFS as file system.
83ZFS supports several software RAID levels, so this is specially useful
84if you do not have a hardware RAID controller. The `Options` button
85lets you select the ZFS RAID level, and you can choose disks there.
86
87The next pages just ask for basic configuration options like time
88zone and keyboard layout. You also need to specify your email address
89and superuser (root) password (must have at least 5 characters).
90
91The last step is the network configuration. Please note that you can
92use either IPv4 or IPv6 here, but not both. If you want to configure a
93dual stack node, you can easily do that after installation.
94
95If you press `Next` now, installation starts to format disks, and
96copies packages to the target. Please wait until that is finished,
97then reboot the server.
98
99Further configuration is done via the Proxmox web interface. Just
100point your browser to the IP address given during installation
101(https://youripaddress:8006).
102
103NOTE: Default login is "root" and the root password is
104defined during the installation process.
105
106
107[[advanced_lvm_options]]
108Advanced LVM Configuration Options
109~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110
111The installer creates a Volume Group (VG) called `pmg`, and additional
112Logical Volumes (LVs) called `root` and `swap`. The size of
113those volumes can be controlled with:
114
115`hdsize`::
116
117Defines the total HD size to be used. This way you can save free
118space on the HD for further partitioning (i.e. for an additional PV
119and VG on the same hard disk that can be used for LVM storage).
120
121`swapsize`::
122
123Defines the size of the `swap` volume. The default is the size of the
124installed memory, minimum 4 GB and maximum 8 GB. The resulting value cannot
125be greater than `hdsize/8`.
126
127`maxroot`::
128
129Defines the maximum size of the `root` volume, which stores the operation
130system. The maximum limit of the `root` volume size is `hdsize/4`.
131
132`maxvz`::
133
134Defines the maximum size of the `data` volume. The actual size of the `data`
135volume is:
136+
137`datasize = hdsize - rootsize - swapsize - minfree`
138+
139Where `datasize` cannot be bigger than `maxvz`.
140
141`minfree`::
142
143Defines the amount of free space left in LVM volume group `pve`.
144With more than 128GB storage available the default is 16GB, else `hdsize/8`
145will be used.
146+
147NOTE: LVM requires free space in the VG for snapshot creation (not
148required for lvmthin snapshots).
149
150
151ZFS Performance Tips
152~~~~~~~~~~~~~~~~~~~~
153
154ZFS uses a lot of memory, so it is best to add additional RAM if you
155want to use ZFS. A good calculation is 4GB plus 1GB RAM for each TB
156RAW disk space.
157
158ZFS also provides the feature to use a fast SSD drive as write cache. The
159write cache is called the ZFS Intent Log (ZIL). You can add that after
160installation using the following command:
161
162 zpool add <pool-name> log </dev/path_to_fast_ssd>
163
164
165Install {pmg} on Debian
166-----------------------
167
168{pmg} ships as a set of Debian packages, so you can install it
169on top of a normal Debian installation. After configuring the
170repositories, you need to run:
171
172[source,bash]
173----
174apt-get update
175apt-get install proxmox-mailgateway
176----
177
178Installing on top of an existing Debian installation looks easy, but
179it presumes that you have correctly installed the base system, and you
180know how you want to configure and use the local storage. Network
181configuration is also completely up to you.
182
183NOTE: In general, this is not trivial, especially when you use LVM or
184ZFS.