Proxmox Mastering » Histórico » Versión 3

Marcelo Valsecchi, 26.04.2019 17:44

1 1 Marcelo Valsecchi
h1. Proxmox Mastering
2 1 Marcelo Valsecchi
3 2 Marcelo Valsecchi
h2. Table of Contents
4 3 Marcelo Valsecchi
5 3 Marcelo Valsecchi
> Preface
6 3 Marcelo Valsecchi
> > What this book covers
7 3 Marcelo Valsecchi
> > What you need for this boot
8 3 Marcelo Valsecchi
> > Who this book is for
9 3 Marcelo Valsecchi
> > Conventions
10 3 Marcelo Valsecchi
> > Reader feedback
11 3 Marcelo Valsecchi
> > Customer support
12 3 Marcelo Valsecchi
> > > Downloading the color images of this book
13 3 Marcelo Valsecchi
> > > Errata
14 3 Marcelo Valsecchi
> > > Piracy
15 3 Marcelo Valsecchi
> > > Questions
16 3 Marcelo Valsecchi
17 1 Marcelo Valsecchi
1. Understanding Proxmox VE and Advanced Installation
18 3 Marcelo Valsecchi
> > Understanding Proxmox features
19 1 Marcelo Valsecchi
It is free!
20 1 Marcelo Valsecchi
Built-in firewall
21 1 Marcelo Valsecchi
Open vSwitch
22 1 Marcelo Valsecchi
The graphical user interface
23 1 Marcelo Valsecchi
KVM virtual machines
24 1 Marcelo Valsecchi
Linux containers, or LXC
25 1 Marcelo Valsecchi
Storage plugins
26 1 Marcelo Valsecchi
Vibrant culture
27 1 Marcelo Valsecchi
The basic installation of Proxmox
28 1 Marcelo Valsecchi
The advanced installation option
29 1 Marcelo Valsecchi
Debugging the Proxmox installation
30 1 Marcelo Valsecchi
Proxmox subscription and repositories
31 1 Marcelo Valsecchi
Proxmox VE Enterprise repository
32 1 Marcelo Valsecchi
Type
33 1 Marcelo Valsecchi
Subscription key
34 1 Marcelo Valsecchi
Status
35 1 Marcelo Valsecchi
Server ID
36 1 Marcelo Valsecchi
Sockets
37 1 Marcelo Valsecchi
Last checked
38 1 Marcelo Valsecchi
Next due date
39 1 Marcelo Valsecchi
Proxmox VE No-Subscription repository
40 1 Marcelo Valsecchi
Proxmox VE Test repository
41 1 Marcelo Valsecchi
Summary
42 1 Marcelo Valsecchi
2. Creating a Cluster and Exploring the Proxmox GUI
43 1 Marcelo Valsecchi
Creating a Proxmox cluster
44 1 Marcelo Valsecchi
Exploring the Proxmox GUI
45 1 Marcelo Valsecchi
The GUI menu system
46 1 Marcelo Valsecchi
Cluster tree view
47 1 Marcelo Valsecchi
Server View
48 1 Marcelo Valsecchi
Folder View
49 1 Marcelo Valsecchi
Storage View
50 1 Marcelo Valsecchi
Pool View
51 1 Marcelo Valsecchi
The Datacenter menu
52 1 Marcelo Valsecchi
Datacenter | Search
53 1 Marcelo Valsecchi
Datacenter | Summary
54 1 Marcelo Valsecchi
Datacenter | Options
55 1 Marcelo Valsecchi
Datacenter | Storage
56 1 Marcelo Valsecchi
Datacenter | Backup
57 1 Marcelo Valsecchi
Datacenter | Permissions
58 1 Marcelo Valsecchi
Datacenter | Permissions | Users
59 1 Marcelo Valsecchi
Datacenter | Permissions | Groups
60 1 Marcelo Valsecchi
Datacenter | Permissions | Pools
61 1 Marcelo Valsecchi
Datacenter | Permissions | Roles
62 1 Marcelo Valsecchi
Datacenter | Permissions | Authentication
63 1 Marcelo Valsecchi
Datacenter | HA
64 1 Marcelo Valsecchi
Datacenter | Firewall
65 1 Marcelo Valsecchi
Datacenter | Support
66 1 Marcelo Valsecchi
Node-specific menus
67 1 Marcelo Valsecchi
Node | Search
68 1 Marcelo Valsecchi
Node | Summary
69 1 Marcelo Valsecchi
Node | Shell
70 1 Marcelo Valsecchi
Node | System
71 1 Marcelo Valsecchi
Node | Network
72 1 Marcelo Valsecchi
Node | DNS
73 1 Marcelo Valsecchi
Node | Time
74 1 Marcelo Valsecchi
Node | Syslog
75 1 Marcelo Valsecchi
Node | Updates
76 1 Marcelo Valsecchi
Node | Firewall
77 1 Marcelo Valsecchi
Node | Disks
78 1 Marcelo Valsecchi
Node | Ceph
79 1 Marcelo Valsecchi
Node | Task History
80 1 Marcelo Valsecchi
Node | Subscription
81 1 Marcelo Valsecchi
KVM menu
82 1 Marcelo Valsecchi
KVM VM | Summar
83 1 Marcelo Valsecchi
KVM | Options
84 1 Marcelo Valsecchi
KVM VM | Task History
85 1 Marcelo Valsecchi
KVM | Monitor
86 1 Marcelo Valsecchi
KVM | Backup
87 1 Marcelo Valsecchi
KVM VM | Snapshot
88 1 Marcelo Valsecchi
KVM | Firewall
89 1 Marcelo Valsecchi
KVM | Permissions
90 1 Marcelo Valsecchi
LXC container menu
91 1 Marcelo Valsecchi
LXC container | Summary
92 1 Marcelo Valsecchi
LXC container | Resources
93 1 Marcelo Valsecchi
LXC container | Network
94 1 Marcelo Valsecchi
LXC container | DNS
95 1 Marcelo Valsecchi
LXC container | Options
96 1 Marcelo Valsecchi
LXC container | Task History
97 1 Marcelo Valsecchi
LXC container | Backup
98 1 Marcelo Valsecchi
LXC container | Snapshots
99 1 Marcelo Valsecchi
LXC container | Firewall
100 1 Marcelo Valsecchi
LXC container | Permissions
101 1 Marcelo Valsecchi
Pool menu
102 1 Marcelo Valsecchi
Pool | Summary
103 1 Marcelo Valsecchi
Pool | Members
104 1 Marcelo Valsecchi
Pool | Permissions
105 1 Marcelo Valsecchi
Summary
106 1 Marcelo Valsecchi
3. Proxmox under the Hood
107 1 Marcelo Valsecchi
The Proxmox cluster file system
108 1 Marcelo Valsecchi
Proxmox directory structure
109 1 Marcelo Valsecchi
Dissecting the configuration files
110 1 Marcelo Valsecchi
The cluster configuration file
111 1 Marcelo Valsecchi
logging { }
112 1 Marcelo Valsecchi
nodelist { }
113 1 Marcelo Valsecchi
quorum { }
114 1 Marcelo Valsecchi
totem { }
115 1 Marcelo Valsecchi
interface { }
116 1 Marcelo Valsecchi
Storage configuration file
117 1 Marcelo Valsecchi
User configuration files
118 1 Marcelo Valsecchi
The password configuration file
119 1 Marcelo Valsecchi
KVM virtual machine configuration file
120 1 Marcelo Valsecchi
Arguments in the KVM configuration file
121 1 Marcelo Valsecchi
LXC container configuration file
122 1 Marcelo Valsecchi
Version configuration file
123 1 Marcelo Valsecchi
Member nodes
124 1 Marcelo Valsecchi
Virtual machine list file
125 1 Marcelo Valsecchi
The cluster log file
126 1 Marcelo Valsecchi
Ceph configuration files
127 1 Marcelo Valsecchi
Firewall configuration file
128 1 Marcelo Valsecchi
Summary
129 1 Marcelo Valsecchi
4. Storage Systems
130 1 Marcelo Valsecchi
Local storage versus shared storage
131 1 Marcelo Valsecchi
Live migration of a virtual machine
132 1 Marcelo Valsecchi
Seamless expansion of multinode storage space
133 1 Marcelo Valsecchi
Centralized backup
134 1 Marcelo Valsecchi
Multilevel data tiering
135 1 Marcelo Valsecchi
Central storage management
136 1 Marcelo Valsecchi
Local and shared storage comparison
137 1 Marcelo Valsecchi
A virtual disk image
138 1 Marcelo Valsecchi
Supported image formats
139 1 Marcelo Valsecchi
The .qcow2 images
140 1 Marcelo Valsecchi
The .raw image type
141 1 Marcelo Valsecchi
The .vmdk image type
142 1 Marcelo Valsecchi
Virtual device types
143 1 Marcelo Valsecchi
Managing disk images
144 1 Marcelo Valsecchi
Resizing a virtual disk image
145 1 Marcelo Valsecchi
Moving a virtual disk image
146 1 Marcelo Valsecchi
Throttling a virtual disk image
147 1 Marcelo Valsecchi
Caching a virtual disk image
148 1 Marcelo Valsecchi
VirtIO bus type for Windows VMs
149 1 Marcelo Valsecchi
Installing VirtIO drivers during Windows installation
150 1 Marcelo Valsecchi
Installing VirtIO drivers after Windows installation
151 1 Marcelo Valsecchi
Storage types in Proxmox
152 1 Marcelo Valsecchi
Directory
153 1 Marcelo Valsecchi
iSCSI
154 1 Marcelo Valsecchi
Logical Volume Management
155 1 Marcelo Valsecchi
NFS
156 1 Marcelo Valsecchi
ZFS
157 1 Marcelo Valsecchi
Ceph RBD
158 1 Marcelo Valsecchi
GlusterFS
159 1 Marcelo Valsecchi
Noncommercial/commercial storage options
160 1 Marcelo Valsecchi
Summary
161 1 Marcelo Valsecchi
5. Installing and Configuring Ceph
162 1 Marcelo Valsecchi
Ceph components
163 1 Marcelo Valsecchi
A physical node as cluster member
164 1 Marcelo Valsecchi
Maps
165 1 Marcelo Valsecchi
A cluster map
166 1 Marcelo Valsecchi
A CRUSH map
167 1 Marcelo Valsecchi
Monitor
168 1 Marcelo Valsecchi
OSD
169 1 Marcelo Valsecchi
OSD journal
170 1 Marcelo Valsecchi
Metadata server
171 1 Marcelo Valsecchi
PG
172 1 Marcelo Valsecchi
Pools
173 1 Marcelo Valsecchi
Ceph components summary
174 1 Marcelo Valsecchi
Virtual Ceph for training
175 1 Marcelo Valsecchi
Installing a Ceph cluster
176 1 Marcelo Valsecchi
Installing Ceph on Proxmox
177 1 Marcelo Valsecchi
Preparing a Proxmox node for Ceph
178 1 Marcelo Valsecchi
Installing Ceph
179 1 Marcelo Valsecchi
Creating mons from the Proxmox GUI
180 1 Marcelo Valsecchi
Creating OSDs from Proxmox GUI
181 1 Marcelo Valsecchi
Managing a Ceph pool using Proxmox GUI
182 1 Marcelo Valsecchi
Creating a Ceph pool using Proxmox GUI
183 1 Marcelo Valsecchi
Connecting Ceph to Proxmox
184 1 Marcelo Valsecchi
Ceph command list
185 1 Marcelo Valsecchi
Summary
186 1 Marcelo Valsecchi
6. KVM Virtual Machines
187 1 Marcelo Valsecchi
Exploring KVM
188 1 Marcelo Valsecchi
Creating a KVM
189 1 Marcelo Valsecchi
Creating a KVM using an ISO image
190 1 Marcelo Valsecchi
General tab
191 1 Marcelo Valsecchi
Node
192 1 Marcelo Valsecchi
VM ID
193 1 Marcelo Valsecchi
Name
194 1 Marcelo Valsecchi
Resource Pool
195 1 Marcelo Valsecchi
Help
196 1 Marcelo Valsecchi
The OS tab
197 1 Marcelo Valsecchi
The CD/DVD tab
198 1 Marcelo Valsecchi
The Hard Disk tab
199 1 Marcelo Valsecchi
Bus/Device
200 1 Marcelo Valsecchi
Storage
201 1 Marcelo Valsecchi
Disk size (GB)
202 1 Marcelo Valsecchi
Format
203 1 Marcelo Valsecchi
Cache
204 1 Marcelo Valsecchi
No backup
205 1 Marcelo Valsecchi
Discard
206 1 Marcelo Valsecchi
IO thread
207 1 Marcelo Valsecchi
The CPU tab
208 1 Marcelo Valsecchi
Sockets
209 1 Marcelo Valsecchi
Cores
210 1 Marcelo Valsecchi
Enabling NUMA
211 1 Marcelo Valsecchi
Type
212 1 Marcelo Valsecchi
The Memory tab
213 1 Marcelo Valsecchi
The Network tab
214 1 Marcelo Valsecchi
Bridged mode
215 1 Marcelo Valsecchi
Firewall
216 1 Marcelo Valsecchi
NAT mode
217 1 Marcelo Valsecchi
No network device
218 1 Marcelo Valsecchi
Model
219 1 Marcelo Valsecchi
MAC address
220 1 Marcelo Valsecchi
Rate limit (MB/s)
221 1 Marcelo Valsecchi
Multiqueues
222 1 Marcelo Valsecchi
Disconnect
223 1 Marcelo Valsecchi
Creating VM by cloning
224 1 Marcelo Valsecchi
Creating VMs from a template
225 1 Marcelo Valsecchi
Target node
226 1 Marcelo Valsecchi
Mode
227 1 Marcelo Valsecchi
Advanced configuration options for VMs
228 1 Marcelo Valsecchi
Configuring a sound device
229 1 Marcelo Valsecchi
Configuring PCI passthrough
230 1 Marcelo Valsecchi
Configuring GPU passthrough
231 1 Marcelo Valsecchi
Preparing for hotplug
232 1 Marcelo Valsecchi
Configuring VMs with hotplug
233 1 Marcelo Valsecchi
Hotplugging vCPUs
234 1 Marcelo Valsecchi
Hotplugging memory
235 1 Marcelo Valsecchi
Hotplugging disks/vNICs
236 1 Marcelo Valsecchi
Migrating KVM virtual machines
237 1 Marcelo Valsecchi
Summary
238 1 Marcelo Valsecchi
7. LXC Virtual Machines
239 1 Marcelo Valsecchi
Exploring LXC virtual machines
240 1 Marcelo Valsecchi
Understanding container templates
241 1 Marcelo Valsecchi
Creating an LXC container
242 1 Marcelo Valsecchi
General tab
243 1 Marcelo Valsecchi
Node
244 1 Marcelo Valsecchi
CT ID
245 1 Marcelo Valsecchi
Hostname
246 1 Marcelo Valsecchi
Unprivileged container
247 1 Marcelo Valsecchi
Resource Pool
248 1 Marcelo Valsecchi
The Template tab
249 1 Marcelo Valsecchi
The Root Disk tab
250 1 Marcelo Valsecchi
Storage
251 1 Marcelo Valsecchi
ACLs
252 1 Marcelo Valsecchi
Enable quota
253 1 Marcelo Valsecchi
The CPU tab
254 1 Marcelo Valsecchi
Cores
255 1 Marcelo Valsecchi
The Memory tab
256 1 Marcelo Valsecchi
The Network tab
257 1 Marcelo Valsecchi
Name
258 1 Marcelo Valsecchi
MAC address
259 1 Marcelo Valsecchi
Bridge
260 1 Marcelo Valsecchi
The VLAN Tag
261 1 Marcelo Valsecchi
Rate limit
262 1 Marcelo Valsecchi
Firewall
263 1 Marcelo Valsecchi
IPv4/IPv6
264 1 Marcelo Valsecchi
The DNS tab
265 1 Marcelo Valsecchi
The Confirm tab
266 1 Marcelo Valsecchi
Managing an LXC container
267 1 Marcelo Valsecchi
Adjusting resources using the GUI
268 1 Marcelo Valsecchi
Adjusting resources using the CLI
269 1 Marcelo Valsecchi
Adjusting resources using direct modification
270 1 Marcelo Valsecchi
Migrating an LXC container
271 1 Marcelo Valsecchi
Accessing an LXC container
272 1 Marcelo Valsecchi
The noVNC console
273 1 Marcelo Valsecchi
Direct shell through the CLI
274 1 Marcelo Valsecchi
Converting OpenVZ to LXC
275 1 Marcelo Valsecchi
Summary
276 1 Marcelo Valsecchi
8. Network of Virtual Networks
277 1 Marcelo Valsecchi
Exploring virtual networks
278 1 Marcelo Valsecchi
Physical networks versus virtual networks
279 1 Marcelo Valsecchi
A physical network
280 1 Marcelo Valsecchi
A virtual network
281 1 Marcelo Valsecchi
Networking components in Proxmox
282 1 Marcelo Valsecchi
Virtual Network Interface Cards
283 1 Marcelo Valsecchi
Adding/removing vNIC
284 1 Marcelo Valsecchi
A virtual bridge
285 1 Marcelo Valsecchi
Adding a virtual bridge through the GUI
286 1 Marcelo Valsecchi
Name
287 1 Marcelo Valsecchi
IP information
288 1 Marcelo Valsecchi
Bridge ports
289 1 Marcelo Valsecchi
VLAN-aware
290 1 Marcelo Valsecchi
Adding a virtual bridge through CLI
291 1 Marcelo Valsecchi
Extra bridge options
292 1 Marcelo Valsecchi
bridge_stp
293 1 Marcelo Valsecchi
bridge_fd
294 1 Marcelo Valsecchi
Virtual LAN
295 1 Marcelo Valsecchi
Adding a VLAN
296 1 Marcelo Valsecchi
Network Address Translation/Translator
297 1 Marcelo Valsecchi
Adding NAT/masquerading
298 1 Marcelo Valsecchi
Network bonding
299 1 Marcelo Valsecchi
Adding a bonding interface
300 1 Marcelo Valsecchi
The layer 2 hash policy
301 1 Marcelo Valsecchi
The layer 2+3 hash policy
302 1 Marcelo Valsecchi
The layer 3+4 hash policy
303 1 Marcelo Valsecchi
Multicast
304 1 Marcelo Valsecchi
Configuring multicast on Netgear
305 1 Marcelo Valsecchi
Open vSwitch
306 1 Marcelo Valsecchi
Features of Open vSwitch
307 1 Marcelo Valsecchi
Adding an Open vSwitch bridge
308 1 Marcelo Valsecchi
Adding the Open vSwitch bond
309 1 Marcelo Valsecchi
Adding Open vSwitch IntPort
310 1 Marcelo Valsecchi
CLI for Open vSwitch
311 1 Marcelo Valsecchi
Practicing Open vSwitch
312 1 Marcelo Valsecchi
Configuration requirements
313 1 Marcelo Valsecchi
Solutions
314 1 Marcelo Valsecchi
Sample virtual networks
315 1 Marcelo Valsecchi
Network #1 – Proxmox in its simplest form
316 1 Marcelo Valsecchi
Network #2 – the multi-tenant environment
317 1 Marcelo Valsecchi
Network #3 – academic institution
318 1 Marcelo Valsecchi
A multi-tenant virtual environment
319 1 Marcelo Valsecchi
A multi-tenant network diagram
320 1 Marcelo Valsecchi
Summary
321 1 Marcelo Valsecchi
9. The Proxmox VE Firewall
322 1 Marcelo Valsecchi
Exploring the Proxmox VE firewall
323 1 Marcelo Valsecchi
Components of the Proxmox firewall
324 1 Marcelo Valsecchi
Zones
325 1 Marcelo Valsecchi
Security groups
326 1 Marcelo Valsecchi
IPSet
327 1 Marcelo Valsecchi
Rules
328 1 Marcelo Valsecchi
Protocols
329 1 Marcelo Valsecchi
Macros
330 1 Marcelo Valsecchi
The pve-firewall and pvefw-logger services
331 1 Marcelo Valsecchi
Configuration files of a firewall
332 1 Marcelo Valsecchi
Configuring the data center-specific firewall
333 1 Marcelo Valsecchi
Configuring the Datacenter firewall through the GUI
334 1 Marcelo Valsecchi
Creating the Datacenter firewall rules
335 1 Marcelo Valsecchi
Creating the Datacenter IPSet
336 1 Marcelo Valsecchi
Creating aliases
337 1 Marcelo Valsecchi
Configuring the Datacenter firewall through the CLI
338 1 Marcelo Valsecchi
[OPTIONS]
339 1 Marcelo Valsecchi
[ALIASES]
340 1 Marcelo Valsecchi
[IPSET <name>]
341 1 Marcelo Valsecchi
[RULES]
342 1 Marcelo Valsecchi
[group <name>]
343 1 Marcelo Valsecchi
Configuring a host-specific firewall
344 1 Marcelo Valsecchi
Creating host firewall rules
345 1 Marcelo Valsecchi
Options for the host zone firewall
346 1 Marcelo Valsecchi
Enable a firewall
347 1 Marcelo Valsecchi
The SMURFS filter
348 1 Marcelo Valsecchi
The TCP flags filter
349 1 Marcelo Valsecchi
NDP
350 1 Marcelo Valsecchi
nf_conntrack_max
351 1 Marcelo Valsecchi
nf_conntrack_tcp_timeout_established
352 1 Marcelo Valsecchi
log_level_in/out
353 1 Marcelo Valsecchi
tcp_flags_log_level
354 1 Marcelo Valsecchi
smurf_log_level
355 1 Marcelo Valsecchi
Configuring the host firewall through the CLI
356 1 Marcelo Valsecchi
Configuring a VM-specific firewall
357 1 Marcelo Valsecchi
Creating VM firewall rules
358 1 Marcelo Valsecchi
Creating aliases
359 1 Marcelo Valsecchi
Creating IPSets
360 1 Marcelo Valsecchi
Options for a VM zone firewall
361 1 Marcelo Valsecchi
Enable DHCP
362 1 Marcelo Valsecchi
The MAC filter
363 1 Marcelo Valsecchi
Input/output policy
364 1 Marcelo Valsecchi
Configuring a VM-specific firewall through the CLI
365 1 Marcelo Valsecchi
Integrating a Suricata IDS/IPS
366 1 Marcelo Valsecchi
Installing/configuring Suricata
367 1 Marcelo Valsecchi
Limitations of Suricata in Proxmox
368 1 Marcelo Valsecchi
Summary
369 1 Marcelo Valsecchi
10. Proxmox High Availability
370 1 Marcelo Valsecchi
Understanding HA
371 1 Marcelo Valsecchi
HA in Proxmox
372 1 Marcelo Valsecchi
How Proxmox HA works
373 1 Marcelo Valsecchi
Requirements for HA setup
374 1 Marcelo Valsecchi
At least three nodes
375 1 Marcelo Valsecchi
Shared storage
376 1 Marcelo Valsecchi
Fencing
377 1 Marcelo Valsecchi
BIOS power-on feature
378 1 Marcelo Valsecchi
Configuring Proxmox HA
379 1 Marcelo Valsecchi
The HA menu
380 1 Marcelo Valsecchi
Status
381 1 Marcelo Valsecchi
The Resources menu
382 1 Marcelo Valsecchi
The Groups menu
383 1 Marcelo Valsecchi
ID
384 1 Marcelo Valsecchi
Node
385 1 Marcelo Valsecchi
The restricted checkbox
386 1 Marcelo Valsecchi
The nofailback checkbox
387 1 Marcelo Valsecchi
The Fencing menu
388 1 Marcelo Valsecchi
Testing Proxmox HA configuration
389 1 Marcelo Valsecchi
The Proxmox HA simulator
390 1 Marcelo Valsecchi
Configuring the Proxmox HA simulator
391 1 Marcelo Valsecchi
Summary
392 1 Marcelo Valsecchi
11. Monitoring the Proxmox Cluster
393 1 Marcelo Valsecchi
An introduction to monitoring
394 1 Marcelo Valsecchi
Proxmox built-in monitoring
395 1 Marcelo Valsecchi
Datacenter Status
396 1 Marcelo Valsecchi
Node Status
397 1 Marcelo Valsecchi
Zabbix as a monitoring solution
398 1 Marcelo Valsecchi
Installing Zabbix
399 1 Marcelo Valsecchi
Configuring Zabbix
400 1 Marcelo Valsecchi
Configuring a host to monitor
401 1 Marcelo Valsecchi
Displaying data using a graph
402 1 Marcelo Valsecchi
Configuring the disk health notification
403 1 Marcelo Valsecchi
Installing smart monitor tools
404 1 Marcelo Valsecchi
Configuring the Zabbix agent
405 1 Marcelo Valsecchi
Creating a Zabbix item in the GUI
406 1 Marcelo Valsecchi
Creating a trigger in the GUI
407 1 Marcelo Valsecchi
Creating graphs in the GUI
408 1 Marcelo Valsecchi
Configuring SNMP in Proxmox
409 1 Marcelo Valsecchi
Object Identifiers
410 1 Marcelo Valsecchi
Management Information Base
411 1 Marcelo Valsecchi
Adding an SNMP device in Zabbix
412 1 Marcelo Valsecchi
Monitoring the Ceph cluster with the Proxmox GUI
413 1 Marcelo Valsecchi
Monitoring a Ceph cluster with third-party options
414 1 Marcelo Valsecchi
Summary
415 1 Marcelo Valsecchi
12. Proxmox Production-Level Setup
416 1 Marcelo Valsecchi
Defining the production level
417 1 Marcelo Valsecchi
Key components
418 1 Marcelo Valsecchi
Stable and scalable hardware
419 1 Marcelo Valsecchi
Redundancy
420 1 Marcelo Valsecchi
Node level
421 1 Marcelo Valsecchi
Utility level
422 1 Marcelo Valsecchi
Network level
423 1 Marcelo Valsecchi
HVAC level
424 1 Marcelo Valsecchi
Storage level
425 1 Marcelo Valsecchi
Current load versus future growth
426 1 Marcelo Valsecchi
Budget
427 1 Marcelo Valsecchi
Simplicity
428 1 Marcelo Valsecchi
Tracking hardware inventory
429 1 Marcelo Valsecchi
Hardware selection
430 1 Marcelo Valsecchi
Sizing CPU and memory
431 1 Marcelo Valsecchi
Single socket versus multi-socket
432 1 Marcelo Valsecchi
Hyper-threading – enable versus disable
433 1 Marcelo Valsecchi
Start small with VM resources
434 1 Marcelo Valsecchi
Balancing node resources
435 1 Marcelo Valsecchi
Ceph cluster production
436 1 Marcelo Valsecchi
Forget about hardware RAID
437 1 Marcelo Valsecchi
Solid State Drive for Ceph Journal
438 1 Marcelo Valsecchi
Network bandwidth
439 1 Marcelo Valsecchi
Liquid cooling
440 1 Marcelo Valsecchi
Total immersion in oil
441 1 Marcelo Valsecchi
Total immersion in 3M Novec
442 1 Marcelo Valsecchi
Direct contact liquid cooling
443 1 Marcelo Valsecchi
Real-world Proxmox scenarios
444 1 Marcelo Valsecchi
Scenario 1 – an academic institution
445 1 Marcelo Valsecchi
Scenario 2 – multi-tier storage cluster with a Proxmox cluster
446 1 Marcelo Valsecchi
Scenario 3 - Virtual infrastructure for a multi-tenant cloud service provider
447 1 Marcelo Valsecchi
Scenario 4 – nested virtual environment for a software development company
448 1 Marcelo Valsecchi
Scenario 5 – virtual infrastructure for a public library
449 1 Marcelo Valsecchi
Scenario 6 – multi-floor office virtual infrastructure with virtual desktops
450 1 Marcelo Valsecchi
Scenario 7 – virtual infrastructure for the hotel industry
451 1 Marcelo Valsecchi
Scenario 8 – virtual infrastructure for geological survey organization
452 1 Marcelo Valsecchi
Summary
453 1 Marcelo Valsecchi
13. Back Up and Restore Virtual Machines
454 1 Marcelo Valsecchi
Proxmox backup options
455 1 Marcelo Valsecchi
A full backup
456 1 Marcelo Valsecchi
Full backup modes
457 1 Marcelo Valsecchi
Snapshot
458 1 Marcelo Valsecchi
Suspend
459 1 Marcelo Valsecchi
Stop
460 1 Marcelo Valsecchi
Backup compression
461 1 Marcelo Valsecchi
None
462 1 Marcelo Valsecchi
LZO
463 1 Marcelo Valsecchi
GZIP
464 1 Marcelo Valsecchi
Snapshots
465 1 Marcelo Valsecchi
Configuring backup storage
466 1 Marcelo Valsecchi
Show VM configuration from backup
467 1 Marcelo Valsecchi
Configuring full backup
468 1 Marcelo Valsecchi
Creating a schedule for backup
469 1 Marcelo Valsecchi
Node
470 1 Marcelo Valsecchi
Storage
471 1 Marcelo Valsecchi
Day of week
472 1 Marcelo Valsecchi
Start Time
473 1 Marcelo Valsecchi
Selection mode
474 1 Marcelo Valsecchi
Send email to
475 1 Marcelo Valsecchi
Email notification
476 1 Marcelo Valsecchi
Compression
477 1 Marcelo Valsecchi
Mode
478 1 Marcelo Valsecchi
Enable
479 1 Marcelo Valsecchi
Creating a manual backup
480 1 Marcelo Valsecchi
Creating snapshots
481 1 Marcelo Valsecchi
Restoring a virtual machine
482 1 Marcelo Valsecchi
Backup/restore through the CLI
483 1 Marcelo Valsecchi
Backup using the CLI
484 1 Marcelo Valsecchi
Restore using the CLI
485 1 Marcelo Valsecchi
Unlocking a VM after a backup error
486 1 Marcelo Valsecchi
Virtual machine replication
487 1 Marcelo Valsecchi
Creating a replication task through the GUI
488 1 Marcelo Valsecchi
Target
489 1 Marcelo Valsecchi
Schedule
490 1 Marcelo Valsecchi
Rate limit (MB/s)
491 1 Marcelo Valsecchi
Enabled
492 1 Marcelo Valsecchi
Creating a replication task through the CLI
493 1 Marcelo Valsecchi
Replication process
494 1 Marcelo Valsecchi
Backup configuration file
495 1 Marcelo Valsecchi
The bwlimit option
496 1 Marcelo Valsecchi
The lockwait option
497 1 Marcelo Valsecchi
The stopwait option
498 1 Marcelo Valsecchi
The stdexcludes option
499 1 Marcelo Valsecchi
The mailto option
500 1 Marcelo Valsecchi
The script option
501 1 Marcelo Valsecchi
The exclude-path option
502 1 Marcelo Valsecchi
The pigz option
503 1 Marcelo Valsecchi
Summary
504 1 Marcelo Valsecchi
14. Updating/Upgrading Proxmox
505 1 Marcelo Valsecchi
Introducing Proxmox updates
506 1 Marcelo Valsecchi
Updating Proxmox through the GUI
507 1 Marcelo Valsecchi
Updating Proxmox through the CLI
508 1 Marcelo Valsecchi
Difference between upgrade and dist-upgrade
509 1 Marcelo Valsecchi
Recovering from the grub2 update issue
510 1 Marcelo Valsecchi
Updating after a subscription change
511 1 Marcelo Valsecchi
Rebooting dilemma after Proxmox updates
512 1 Marcelo Valsecchi
Applying update without reboot
513 1 Marcelo Valsecchi
Summary
514 1 Marcelo Valsecchi
15. Proxmox Troubleshooting
515 1 Marcelo Valsecchi
Proxmox node issues
516 1 Marcelo Valsecchi
Issue – fresh Proxmox install stuck with /dev to be a fully populated error during no
517 1 Marcelo Valsecchi
de reboot
518 1 Marcelo Valsecchi
Issue – rejoining a node to a Proxmox node with the same old IP address
519 1 Marcelo Valsecchi
Issue – Proxmox installation completed but grub is in an endless loop after reboot
520 1 Marcelo Valsecchi
Issue – LSI MegaRAID 9240-8i/9240-4i causes an error during booting of the Prox
521 1 Marcelo Valsecchi
mox node
522 1 Marcelo Valsecchi
Downloading and updating the LSI driver
523 1 Marcelo Valsecchi
Updating the Supermicro BIOS
524 1 Marcelo Valsecchi
Issue – the Upgrade button is disabled on the Proxmox GUI, which prevents the nod
525 1 Marcelo Valsecchi
e upgrade
526 1 Marcelo Valsecchi
Issue – Proxmox cannot start due to the getpwnam error
527 1 Marcelo Valsecchi
Issue – cannot log in to the GUI as root after reinstalling Proxmox on the same node
528 1 Marcelo Valsecchi
The main cluster issues
529 1 Marcelo Valsecchi
Issue – Proxmox virtual machines are running, but the Proxmox GUI shows that eve
530 1 Marcelo Valsecchi
rything is offline
531 1 Marcelo Valsecchi
Issue – kernel panic when disconnecting USB devices, such as a keyboard, mouse,
532 1 Marcelo Valsecchi
or UPS
533 1 Marcelo Valsecchi
Issue – virtual machines on Proxmox will not shut down if shutdown is initiated fro
534 1 Marcelo Valsecchi
m the Proxmox GUI
535 1 Marcelo Valsecchi
Issue – kernel panic with HP NC360T (Intel 82571EB chipset) only in Proxmox VE
536 1 Marcelo Valsecchi
3.2
537 1 Marcelo Valsecchi
Issue – the Proxmox cluster is out of quorum and cluster filesystem is in read-only
538 1 Marcelo Valsecchi
mode
539 1 Marcelo Valsecchi
Issue – VM will not respond to shutdown or restart
540 1 Marcelo Valsecchi
Issue – Proxmox GUI not responding after Firefox update
541 1 Marcelo Valsecchi
Issue – the Proxmox GUI is not showing RRD graphs
542 1 Marcelo Valsecchi
Storage issues
543 1 Marcelo Valsecchi
Issue – deleting a damaged LVM from Proxmox with the error read failed from 0 to
544 1 Marcelo Valsecchi
4096
545 1 Marcelo Valsecchi
Issue – Proxmox cannot mount NFS share due to the timing out error
546 1 Marcelo Valsecchi
Issue – how to delete leftover NFS shares in Proxmox or what to do when the NFS s
547 1 Marcelo Valsecchi
tale file handle error occurs?
548 1 Marcelo Valsecchi
Issue – Proxmox issues —mode session exit code 21 errors while trying to access th
549 1 Marcelo Valsecchi
e iSCSI target
550 1 Marcelo Valsecchi
Issue – cannot read an iSCSI target even after it has been deleted from Proxmox stor
551 1 Marcelo Valsecchi
age
552 1 Marcelo Valsecchi
Issue – a Ceph node is removed from the Proxmox cluster, but OSDs still show up i
553 1 Marcelo Valsecchi
n PVE
554 1 Marcelo Valsecchi
Issue – the no such block device error during creation of an OSD through the Proxm
555 1 Marcelo Valsecchi
ox GUI
556 1 Marcelo Valsecchi
Issue – the fstrim command does not trim unused blocks for the Ceph storage
557 1 Marcelo Valsecchi
Issue – the RBD couldn’t connect to cluster (500) error when connecting Ceph with
558 1 Marcelo Valsecchi
Proxmox
559 1 Marcelo Valsecchi
Issue – changing the storage type from IDE to VirtIO after the VM has been set up a
560 1 Marcelo Valsecchi
nd the OS has been installed
561 1 Marcelo Valsecchi
Issue – the pveceph configuration not initialized (500) error when you click on the
562 1 Marcelo Valsecchi
Ceph tab in the Proxmox GUI
563 1 Marcelo Valsecchi
Issue – the CephFS storage disappears after a Proxmox node reboots
564 1 Marcelo Valsecchi
Issue – VM cloning does not parse in the Ceph storage
565 1 Marcelo Valsecchi
Issue – VM disk images stored on ZFS is extremely slow
566 1 Marcelo Valsecchi
Network connectivity issues
567 1 Marcelo Valsecchi
Issue – no connectivity on Realtek RTL8111/8411 rev. 06 network interfaces
568 1 Marcelo Valsecchi
Issue – network performance is slower with the E1000 virtual network interfaces
569 1 Marcelo Valsecchi
Issue – patch port for Open vSwitch in Proxmox not working
570 1 Marcelo Valsecchi
Issue – trying to add a node to a newly created Proxmox cluster when nodes do not f
571 1 Marcelo Valsecchi
orm quorum
572 1 Marcelo Valsecchi
Issue – implemented IPv6 but firewall rules do not get applied
573 1 Marcelo Valsecchi
KVM virtual machine issues
574 1 Marcelo Valsecchi
Issue – Windows 7/XP machine converted to Proxmox KVM hangs during boot
575 1 Marcelo Valsecchi
Issue – Windows 7 VM does not reboot, instead it shuts down, requiring a manual b
576 1 Marcelo Valsecchi
oot from Proxmox
577 1 Marcelo Valsecchi
Issue – the qemu-img command does not convert the .vmdk image files created with
578 1 Marcelo Valsecchi
the .ova template in Proxmox VE 5.0
579 1 Marcelo Valsecchi
Issue – online migration of a virtual machine fails with a failed to sync data error
580 1 Marcelo Valsecchi
Issue – no audio in Windows KVM
581 1 Marcelo Valsecchi
Issue – the VirtIO virtual disk is not available during the Windows Server installatio
582 1 Marcelo Valsecchi
n
583 1 Marcelo Valsecchi
LXC container issues
584 1 Marcelo Valsecchi
Issue – a Proxmox node hangs when trying to stop or restart an LXC container
585 1 Marcelo Valsecchi
Issue – the noVNC console only shows a cursor for LXC containers
586 1 Marcelo Valsecchi
Backup/restore issues
587 1 Marcelo Valsecchi
Issue – a Proxmox VM is locked after backup crashes unexpectedly
588 1 Marcelo Valsecchi
Issue – how can Proxmox back up only the primary OS virtual disk instead of all th
589 1 Marcelo Valsecchi
e virtual disks for a VM?
590 1 Marcelo Valsecchi
Issue – backup of virtual machines stops prematurely with an operation not permitte
591 1 Marcelo Valsecchi
d error
592 1 Marcelo Valsecchi
Issue – a backup task takes a very long time to complete, or it crashes when multipl
593 1 Marcelo Valsecchi
e nodes are backing up to the same backup storage
594 1 Marcelo Valsecchi
Issue – backup of virtual machines aborts a backup task prematurely
595 1 Marcelo Valsecchi
Issue – backup storage has a lot of .dat files and .tmp folders using the storage space
596 1 Marcelo Valsecchi
VNC/SPICE console issues
597 1 Marcelo Valsecchi
Issue – the mouse pointer is not shared with SPICE (virt-viewer) on Windows 8 VM
598 1 Marcelo Valsecchi
Issue – remote viewer is unable to connect to a SPICE-enabled virtual machine on t
599 1 Marcelo Valsecchi
he Windows OS
600 1 Marcelo Valsecchi
Firewall issues
601 1 Marcelo Valsecchi
Issue – rules are created and a firewall is enabled for vNIC, but rules do not get appl
602 1 Marcelo Valsecchi
ied
603 1 Marcelo Valsecchi
Issue – a firewall is enabled for a VM and the necessary rules are created, but nothin
604 1 Marcelo Valsecchi
g is being filtered for that VM
605 1 Marcelo Valsecchi
Summary
606 1 Marcelo Valsecchi
16. Rescuing Proxmox
607 1 Marcelo Valsecchi
Recovering from OS drive failure
608 1 Marcelo Valsecchi
Physical drive failure
609 1 Marcelo Valsecchi
OS data corruption
610 1 Marcelo Valsecchi
Migrating VMs from a faulty node
611 1 Marcelo Valsecchi
Reinstalling Proxmox
612 1 Marcelo Valsecchi
Recovering from a quorum failure
613 1 Marcelo Valsecchi
Recovering from a node failure
614 1 Marcelo Valsecchi
Recovering from a network failure
615 1 Marcelo Valsecchi
Loss of connectivity between Proxmox nodes
616 1 Marcelo Valsecchi
Loss of connectivity between Proxmox nodes and users
617 1 Marcelo Valsecchi
Loss of connectivity between Proxmox and storage nodes
618 1 Marcelo Valsecchi
Recovering from Ceph failure
619 1 Marcelo Valsecchi
Best practices for a healthy Ceph cluster
620 1 Marcelo Valsecchi
Stuck inconsistent PGs in Ceph
621 1 Marcelo Valsecchi
Stuck inactive incomplete PGs in Ceph
622 1 Marcelo Valsecchi
Error while moving a Ceph journal to another drive
623 1 Marcelo Valsecchi
Ceph node running out of resources during recovery
624 1 Marcelo Valsecchi
Summary
625 1 Marcelo Valsecchi
Preface
626 1 Marcelo Valsecchi
Based on the foundation laid out by the first edition and second edition, this
627 1 Marcelo Valsecchi
book, Mastering Proxmox, Third Edition, brings updated information and
628 1 Marcelo Valsecchi
details of the new features of Proxmox VE 5.0. Since the first edition of this
629 1 Marcelo Valsecchi
book was published, Proxmox has been through many changes. With this
630 1 Marcelo Valsecchi
third edition, I am confident that readers will be able to upgrade their skills
631 1 Marcelo Valsecchi
while building and managing even better Proxmox clusters.
632 1 Marcelo Valsecchi
This book shows the inner workings of Proxmox, including virtual network
633 1 Marcelo Valsecchi
components, shared storage systems, the Proxmox fire