containerized-qdevice is a docker image that uses corosync to act as a qdevice for a two node proxmox cluster
- Provides a corosync qdevice for two-node Proxmox clusters.
- Lightweight and easy to deploy using Docker.
- Ensures quorum in a two-node cluster setup.
- Docker installed on the host machine.
- A two-node Proxmox cluster configured with corosync.
-
Create the authorized_keys file with the public key of the Proxmox Node from where you add the qdevice to the cluster. It is only needed for the initial setup.
-
Run the container:
services: qdevice: image: ghcr.io/BluePhi09/containerized-qdevice ports: - 22:22 - 5403:5403 volumes: - ./authorized_keys:/root/authorized_keys.old - authorized_keys:/root/.ssh/ - corosync_data:/etc/corosync - ssh_data:/etc/ssh restart: unless-stopped volumes: - corosync_data - authorized_keys - ssh_data
-
Install corosync-qdevice on all proxmox nodes for the qdevice setup to work:
apt update apt install corosync-qdevice
-
Configure the Proxmox cluster to use the qdevice:
pvecm qdevice setup 192.168.30.226
- The container uses the host network to communicate with the Proxmox cluster.
- Ensure that the required ports for corosync are open and accessible.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project was heavily inspired by the work done in Sysadminfromhell/corosyncdevice. Many ideas and concepts were adapted and built upon to create this solution. A big thank you to the original authors for their contributions to the community!
This project is not officially affiliated with Proxmox and/or Docker. Use it at your own risk.