Getting Started
Purpose
Install cloud-netconfigd and verify metadata-driven networking on a cloud VM.
How to get there
- Topic id:
getting-started - Section: Onboarding → Getting Started
Guide
cloud-netconfig runs as a systemd daemon on Azure, AWS EC2, or GCP VMs. It watches instance metadata and netlink events, then configures supplementary interfaces, custom routing tables, and policy rules so multi-homed hosts route correctly.
Prerequisites
- A cloud VM with secondary network interfaces attached in the provider console.
- Rust toolchain and
makefor source builds, or a packaged release from GitHub. - sudo/root for install and route management.
Install and enable
git clone https://github.com/hypersdk/cloud-netconfig.git
cd cloud-netconfig
make build && sudo make install
sudo cp /etc/cloud-network/config.yaml /etc/cloud-network/cloud-network.yaml
sudo systemctl enable --now cloud-netconfigd
First verification
cnctl status all
curl -s http://127.0.0.1:5209/api/status | jq .
Troubleshooting
- Service fails on bare metal or non-cloud VMs — auto-detection requires provider metadata; use a supported cloud instance for testing.
- Config not loaded — ensure
cloud-network.yamlexists (see Configuration).
Next steps
Operate (CLI)
- After install, run
cnctl status allbefore changing production routing. - Confirm
/api/statusreturns"status":"running"and the expected provider string. - Empty / fail: Read
journalctl -u cloud-netconfigdfor metadata or netlink errors. - Success: Secondary NICs listed in config show addresses and policy routes in
ip rule/ip route show table.