intermediate2 min readPart 1 of 1

Proxmox Cluster QDevice Raspberry Pi

In the video below, we show you how to setup a qdevice for a Proxmox cluster

TechLogHub
·

Prerequisites

  • •Basic Linux knowledge
  • •Virtualization fundamentals

What You'll Learn

  • Configure and manage Proxmox VE
  • Understand Proxmox VE architecture and features

Proxmox Cluster QDevice Raspberry Pi

Sep 9, 2022

· 2 mins read

_

#### In the video below, we show you how to setup a qdevice for a Proxmox cluster

A cluster needs at least 2 voting servers for activity and so you should have a minimum of 3 servers in the cluster in case one becomes unavailable

If you only had two nodes and one failed, you will find certain things don’t work including being able to login to the cluster

Proxmox allows you to setup what is known as a qdevice and add this into your cluster instead of a third node

Basically it just provides the extra vote needed

The qdevice needs to run Debian and this could be something as simple as a Raspberry Pi or a VM on a NAS for instance

This is very useful if you only need 2 nodes in a Proxmox cluster to provide redundancy for your VMs, because it can save wasting money on a third server which would likely do nothing more than just vote

Hardware Suggestions:

GeekPi Raspberry Pi 4 4GB

Steps Taken

  • Set up qdevice e.g. Raspberry Pi:
  • Install the corosync-qnetd package

     sudo apt install corosync-qnetd

    Allow root SSH Login

     sudo nano /etc/ssh/sshd_config

     PermitRootLogin yes

    NOTE: Although root access via SSH isn’t recommended, Proxmox will use it’s root account to login to the qdevice and so the root passwords must also match

    Restart service

     sudo systemctl restart ssh

    Change root password

     sudo passwd root

  • Set up PVE Nodes:
  • Install the corosync-qdevice package on all nodes

     apt install corosync-qdevice

    NOTE: All nodes in the cluster will need to be configured and online to do this

  • Add the qdevice
  •  pvecm qdevice setup ‘qdevice_ip_address’

    Where ‘qdevice_ip_address’ is the IP address of the qdevice we want to add

    As part of this, the ssh keys from the cluster will be copied over to the qdevice

    Check the results

     pvecm status

    Sharing is caring!_

    Please enable JavaScript to view the comments powered by Disqus.

    virtualizationproxmoxhypervisorhome-labclusterqdevice

    Keep the references coming

    One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.