Set up your own DOM Cloud server instance inside a virtualized platform and control it with our cloud platform.
Our self hosted solution is for our customers who:
- Behind a corporate that mandates all data is self hosted to an on-premise server
- Wishing for more computing power or having the hardware their your control
With Caveats:
- This approach is generally more complex than simply using our cloud servers
- Requires good knowledge of Linux and its networking components to make everything works
- You're resposible to everything a server needs to do, including keeping the software up to date
Here's feature comparison:
Compare Features | Cloud | Self-Hosted |
---|---|---|
Getting Started | Easy | Easy but Challenging |
Who own the Infra? | Us | You |
Who monitor Infra? | Us | You |
Has Public IP | ✅ | Depends on your ISP |
Use nsp/nss.domcloud.co NS |
✅ | ❌ |
Can use domcloud.dev |
✅ | If not behind NAT |
Storage/Network Limit | Calculated | Unlimited |
Can have root Access |
❌ | ✅ |
Self-hosted email | ❌ | Possible but discouraged |
The most recent one built on 2024-09-26:
- domcloud-x86_64.qcow2 4.41 GB
- domcloud-x86_64.vmdx 2.84 GB
- checksum
Select based on Virtualization platform e.g. Proxmox and QEMU uses QCOW2
while VMWare and VirtualBox uses VMDK
. aarch64
builds is not available yet, you can simply the scripts we mention below.
If you don't want to download our custom prebuilt images, you can run these from freshly installed Rocky Linux Minimal ISO instead:
# make sure to run this inside root privilenge:
curl -sSL https://github.com/domcloud/container/raw/refs/heads/master/install.sh | bash
curl -sSL https://github.com/domcloud/container/raw/refs/heads/master/preset.sh | bash
We use Hashicorp Packer to build images. We ran it inside privilenged docker. Simply run make build-image
. With KVM acceleration the build should be done around one hour.
The image consist of Rocky Linux Minimal ISO + Some scripts that installs Virtualmin and additional services to make it exactly like how a DOM Cloud server works. See install.sh and preset.sh to see the install scripts.
To run the final image using QEMU:
qemu-system-x86_64 -hda domcloud-x86_64.qcow2 -smp 2 -m 2048 -net nic -net user,hostfwd=tcp::2022-:22,hostfwd=tcp::2080-:80,hostfwd=tcp::3443-:443,hostfwd=tcp::2443-:2443 -cpu max -accel kvm
# Windows: -cpu Broadwell -accel whpx,kernel-irqchip=off
This VM expose these ports:
- 22 for SSH
- 53 for DNS
- 80 and 443 for HTTP/HTTPS
- 2443 for Webmin
There's http://localhost
Handled by NGINX to that runs our bridge software. This software orchestrates your VM based on (To be undocumented) REST APIs.
Go to https://localhost:2443
in your browser to open webmin. Additionally, go to http://localhost/status/check
and http://localhost/status/test
To see if all services running and configured correctly.
Enter credential root
with rocky
as password for SSH and Webmin login.
The root password includes the root
webmin access is rocky
. The bridge
HTTP secret and webmin login is also set to rocky
.
Please assign your 80
and 443
to your static public IP address.
If you don't have a public IP address or you're just running the whole VM behind NAT or your personal laptop, please have a domain and install Cloudfare Zero Trust HTTP Tunnel to port 80
inside the VM.
You have 4 passwords to change:
- Root password, change it with
passwd
- Webmin root password, change it with
/usr/libexec/webmin/changepass.pl /etc/webmin root "<password>"
- User
bridge
password, change it withpasswd bridge
bridge
HTTP Secret key, change it in/home/bridge/public_html/.env
and restart itsudo systemctl restart bridge
.
Note that the bridge
HTTP Secret key is used to be communitated with DOM Cloud software. More below.
Go to https://localhost:2443
and log in with user root
.
- Finish the post installation wizard
- Go to
Virtualmin
->System Settings
->Re-Check Configuration
The VM is built with QEMU. The networking IP addresses definitely changed and you need to adjust it.
- Identify your IP addresses, run
nmcli dev show ens3
orip addr show scope global
in terminal. - Go to
Virtualmin
->Addresses and Networking
->Change IP Addresses
- Enter old IP
10.0.2.15
and new IP. ClickChange Now
.
The bridge default domain name is defaulted to localhost
so you can open it via your laptop. But to connect it to DOM Cloud, you must put it to a domain. You can run this in SSH:
virtualmin change-domain --username bridge --new-domain mynewdomain.com
Run yum update --nobest
.
Goto Servers
section in DOM Cloud Portal Dashboard to connect to our cloud portal.
Why still connecting to our cloud portal?
- Bridge is
headless
. There are no UI, just pure APIs. The APIs are used to communicate to your instance. - All tools works out of the box, including Deployment systems, templates and GitHub integration
- Deployments for self-hosted instances doesn't use storage/data network/instance limit
- You get some cloud features like backups, domcloud.dev domain, team collab, etc
- Can be connected for free