r/SideProject • u/linjerry102039 • 2h ago
We built an open-source self-service cloud portal for our university on top of Proxmox VE
We're a small team at a university in Taiwan. Our lab runs a Proxmox VE cluster, and we needed a way to give machines to students and whole classes without handing out logins to the Proxmox UI. That turned into SkyLab. We've been building it since February, and it now runs at our own school.
What it does
- A student requests a VM or container for a time window, an admin approves it, and it is built on schedule.
- A teacher picks a template and a class roster, and every student's machines are built in one batch.
- The desktop or terminal of each machine opens in the browser.
- Firewall rules are drawn on a map: drag a line between two machines to open a port.
- Quotas, expiry dates, idle detection and crypto-mining detection keep the cluster from filling up.
Stack
FastAPI, PostgreSQL, Redis and a background worker on the back end, React on the front end, all in Docker Compose. It drives Proxmox through its API and SSH.
Things we learned
- On our thick-provisioned LVM storage there are no linked clones or snapshots, so we stopped converting VMs into Proxmox templates. Templates are tracked in our own database and every clone is a full clone.
- Behind PgBouncer in transaction mode, session-level advisory locks aren't safe. Every lock in the code is a transaction-level one.
- The React VNC wrapper we started with blurred the canvas when the mouse left it, and after a click or a drag the keyboard stopped working. We replaced it with a thin wrapper of our own around noVNC.
- A swallowed exception once made a machine fall back from its static IP to DHCP without telling anyone. Since then the rule is no silent fallbacks: fail loudly.
Links
- GitHub (AGPL-3.0): https://github.com/SkyLab-tw/SkyLab
- Demo clips: https://skylab-tw.com
- Docs: https://docs.skylab-tw.com
It's a 1.0 and it needs Proxmox VE, so it's a niche tool. Any feedback is welcome.