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

Configuring a USB passthrough


Like PCI devices, we can also pass USB devices directly into a virtual machine without power cycling a VM. We can connect varieties of USB devices, such as flash drives, webcams, scanners, and so on, directly into the VM. In this section, we are going to see how to passthrough a USB device into a KVM-based VM and OpenVZ container.

Note

Although a USB passthrough works, there have been many incidents of device errors when this passthrough has been used. Commit extensive tests over several days to ensure that it works in a test lab before deploying it in a production cluster. In some cases, an entire node needed to be rebooted to clear out errors due to a USB passthrough.

How to do it…

For a KVM-based VM, a USB passthrough can be configured through the Proxmox GUI. However, for OpenVZ containers, it can only be configured through a CLI.

The following steps describe how to configure a USB passthrough for a KVM-based VM:

  1. Log in to the Proxmox GUI and select the VM.

  2. Click...