Proxmox Mastering » Histórico » Versión 1

Marcelo Valsecchi, 26.04.2019 17:40

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