VM Provisioning & Cloud-Init
Detailed guide to launching instances, configuring Cloud-Init automation scripts, and attaching to VPC networks.
Provisioning Workflow
To create a new instance, open Console -> VMs and click Create VM.
Configuration Fields:
- VM Name: a unique hostname identifier within your project (e.g.,
app-worker-01). - Region Zone: physical data center location.
- Hardware Preset: select vCPU, RAM, and root disk size (
std.1c2g/std.2c4g/std.4c8g). Root disk is not chosen separately. - VPC Network: choose a private network to assign an internal IP address.
- SSH Keys: select public keys to inject into the
ubuntuuser’s~/.ssh/authorized_keys. - Cloud-Init Script: optional YAML user-data script for bootstrapping the guest OS on first boot.
Bootstrapping with Cloud-Init
Use Cloud-Init to automatically update system packages, install software runtimes, or pull container images during initial startup:
#cloud-config
package_update: true
packages:
- docker.io
- nginx
- git
runcmd:
- systemctl enable --now docker
- usermod -aG docker ubuntu
[!TIP] Cloud-Init directives execute once during the instance’s initial first-boot sequence.