Proxmox Qdevice
This repository will allow you build and deploy a docker container for use with a proxmox cluster as an external qdevice. Properly configured proxmox clusters require an odd number servers in the cluster. In the event that you have an even number of proxmox servers (like 2, such as I have), you need an another device to vote. Proxmox supports this by allow you to configure a qdevice for an external vote.
Normally running an even number of servers in a cluster isn't a problem, but I've had situations where I've booted both promox servers at the same time. In that case, the first server to come online doesn't have a quarum (1 of 2) so the images won't start. The 2nd server will (2 of 2). With an external qdevice thats already up, the first device to come up has quarom (2 of 3).
For more information on proxmmox clusters, external qdevices, and how to configure/use them, go here.
Run this container on a device that is NOT a virtual instance on one of your proxmox servers.
Build and upload to RouterOS device (x86):
- Build
docker build -t proxmox-qdevice .
- Save
docker save proxmox-qdevice:latest -o proxmox-qdevice.tar
- Upload to RouteOS device
scp -P 22 proxmox-qdevice.tar admin@10.0.0.1:
Run on RouterOS
-
Prepare network, vlans, veth (name: veth-qdevice), etc.
-
Add ENV
ssh
/container envs
add comment=env-qdevice key=NEW_ROOT_PASSWORD list=env-qdevice value=SSH_PASSWD_FOR_CONTAINER
- Create container
/container
add dns=DNS_ADDRESS envlists=env-qdevice file=proxmox-qdevice.tar hostname=qdevice interface=veth-qdevice layer-dir="" logging=yes name=proxmox-qdevice \
root-dir=/containers/proxmox-qdevice/root start-on-boot=yes
- Start
/container/start proxmox-qdevice
- Test
/system ssh CONTAINER-IP user=root port=22