Eclipse Mosquitto is an open-source message broker that implements the MQTT (Message Queuing Telemetry Transport) protocol. It is a lightweight and simple-to-use message broker that allows IoT devices and applications to communicate with each other by exchanging messages in real-time. Mosquitto is widely used in IoT applications, due to its low resource requirements and its compatibility with a wide range of devices and platforms
To create a new Proxmox VE MQTT LXC, run the command below in the Proxmox VE Shell.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/mqtt.sh)"
Default Settings: 512MiB RAM - 2GB Storage - 1vCPU
Mosquitto comes with a password file generating utility called mosquitto_passwd.
mosquitto_passwd -c /etc/mosquitto/passwd <user>
Ensure that the file is managed by the appropriate user and group.
chown mosquitto:mosquitto /etc/mosquitto/passwd
Now restart Mosquitto server.
systemctl restart mosquitto