Book Image

Proxmox Cookbook

By : Wasim Ahmed, Ravi K Jangid
Book Image

Proxmox Cookbook

By: Wasim Ahmed, Ravi K Jangid

Overview of this book

Proxmox VE's intuitive interface, high availability, and unique central management system puts it on par with the world’s best virtualization platforms. Its simplicity and high quality of service is what makes it the foremost choice for most system administrators. Starting with a step-by-step installation of Proxmox nodes along with an illustrated tour of Proxmox graphical user interface where you will spend most of your time managing a cluster, this book will get you up and running with the mechanisms of Proxmox VE. Various entities such as Cluster, Storage, and Firewall are also covered in an easy to understand format. You will then explore various backup solutions and restore mechanisms, thus learning to keep your applications and servers safe. Next, you will see how to upgrade a Proxmox node with a new release and apply update patches through GUI or CLI. Monitoring resources and virtual machines is required on an enterprise level, to maintain performance and uptime; to achieve this, we learn how to monitor host machine resources and troubleshoot common issues in the setup. Finally, we will walk through some advanced configurations for VM followed by a list of commands used for Proxmox and Ceph cluster through CLI. With this focused and detailed guide you will learn to work your way around with Proxmox VE quickly and add to your skillset.
Table of Contents (18 chapters)
Proxmox Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Backing up through the command line


VZdump is used to backup both KVM-based virtual machines and OpenVZ containers. In Proxmox, a backup can also be performed through the command line.

How to do it...

Data can be backed up in Proxmox using the following command:

# vzdump <vmid> [options] [options] ..

VZdump has a wide range of options that can be used to perform a backup task. Here are just some of the most commonly used options:

Option

Function

-all

This option will backup all VMs in a Proxmox node. The default is set as 0.

-bwlimit

This is to adjust the backup bandwidth in KBPS.

-mailto

This is the e-mail address to send backup logs to.

-maxfiles

This value is to set the maximum number of backup files to keep.

-mode

This is set as the backup mode. Available options are snapshot, stop, and suspend. The default is stop.

-compress

This is a set compression method. Available options are LZO and Gzip.

-remove

This is to remove older backups if more than the...