Skip to main content

Compute Instances

Okustera Compute provides high-performance, enterprise-grade virtual machines backed by hardware-accelerated virtualization and distributed NVMe storage.

Whether running monolithic applications, container hosts, or custom backend services, Okustera Compute delivers predictable performance, automated cloud-init provisioning, and integrated browser-based out-of-band management tools.

Okustera Compute Instances Console


Key Capabilities​

  • Hardware-Accelerated Virtualization: Dedicated CPU virtualization with near-bare-metal performance and strict tenant isolation.
  • Standard Flavors: Pre-configured instance profiles optimized for general-purpose, compute-intensive, and high-memory workloads.
  • Automated Cloud-Init: Inject SSH keys, execute custom bootstrap scripts, install packages, and configure static networking on first boot.
  • Persistent Boot-from-Volume: Fast ephemeral root disks or persistent, distributed NVMe boot volumes with live snapshotting.
  • Interactive VNC/SPICE Web Console: Direct browser access to graphical or text consoles for out-of-band troubleshooting if SSH or guest networking is unavailable.
  • Live Serial Boot Logs: View and inspect kernel boot logs (console-log) directly from the Cloud Portal to diagnose cloud-init or OS boot issues rapidly.
  • Instance Lifecycle Controls: Instant Start, Stop, Soft Reboot, Hard Reboot, Pause, Unpause, and Rebuild from the Cloud Portal or REST API.

Instance Flavors​

Flavor NamevCPURAMRoot DiskRecommended Workloads
m1.tiny1512 MB1 GBLightweight test agents, DNS forwarders
m1.small12 GB20 GBMicroservices, bastion hosts, dev servers
m1.medium24 GB40 GBWeb apps, CI/CD runners, small databases
m1.large48 GB80 GBProduction web services, medium databases
m1.xlarge816 GB160 GBEnterprise backend clusters, analytics nodes

Managing Instances in the Cloud Portal​

The Okustera Cloud Portal (/compute) provides full lifecycle control over your virtual machines:

1. Launching an Instance​

  1. Navigate to Compute → Instances in the left sidebar.
  2. Click Launch Instance:
    • Name: Enter a hostname (e.g., web-server-01).
    • Image: Select a certified image from the Image Catalog (e.g., Ubuntu-24.04-LTS) or your custom image.
    • Flavor: Choose a resource profile (e.g., m1.medium).
    • Network: Select your private VPC Subnet.
    • Security Groups: Attach one or more stateful firewall security groups (e.g., default, web-sg).
    • SSH Keypair: Select an existing keypair or import a new public SSH key.
    • User Data (Cloud-Init): Optionally paste a bash bootstrap script or cloud-config YAML.
  3. Click Launch Instance. The server boots in under 15 seconds.

2. Accessing the Out-of-Band VNC Web Console​

If your instance becomes unreachable over SSH (for example, due to a guest firewall misconfiguration):

  1. In the Instances list, click the instance name.
  2. Click Web Console.
  3. An interactive VNC/SPICE console opens directly in your browser for out-of-band recovery.

3. Viewing Live Serial Boot Logs​

To diagnose cloud-init provisioning errors or kernel boot messages:

  1. In the instance details panel, click Console Log.
  2. The portal streams serial console output emitted by the operating system kernel and cloud-init during startup.

Provisioning via Terraform​

Manage compute instances declaratively using the official Okustera Terraform provider:

# 1. SSH Keypair
resource "okustera_ssh_keypair" "deployer" {
name = "deployer-key"
public_key = file("~/.ssh/id_ed25519.pub")
}

# 2. Compute Instance
resource "okustera_compute_instance" "web_server" {
name = "web-server-01"
image_name = "Ubuntu-24.04-LTS"
flavor_name = "m1.medium"
key_name = okustera_ssh_keypair.deployer.name
network_id = okustera_network.tenant_vpc.id
security_groups = [
okustera_security_group.web_sg.name
]

user_data = <<-EOF
#!/bin/bash
apt-get update && apt-get install -y nginx
systemctl enable --now nginx
EOF
}

# 3. Allocate & Associate Public Floating IP
resource "okustera_floating_ip" "web_fip" {
pool = "public"
}

resource "okustera_floating_ip_associate" "web_fip_assoc" {
floating_ip = okustera_floating_ip.web_fip.address
instance_id = okustera_compute_instance.web_server.id
}

Managing Instances via REST API​

Automate instance provisioning and lifecycle actions directly using the Okustera REST API:

# 1. List instances in the current project
curl -X GET https://portal.okustera.com/api/v1/compute/instances \
-H "Authorization: Bearer <YOUR_API_TOKEN>"

# 2. Launch a new instance
curl -X POST https://portal.okustera.com/api/v1/compute/instances \
-H "Authorization: Bearer <YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "web-server-01",
"image_name": "Ubuntu-24.04-LTS",
"flavor_name": "m1.medium",
"key_name": "deployer-key",
"network_id": "<YOUR_VPC_NETWORK_ID>"
}'

# 3. Trigger a soft reboot
curl -X POST https://portal.okustera.com/api/v1/compute/instances/<INSTANCE_ID>/action \
-H "Authorization: Bearer <YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"action": "reboot"}'

# 4. Retrieve serial console boot logs
curl -X GET https://portal.okustera.com/api/v1/compute/instances/<INSTANCE_ID>/console-log \
-H "Authorization: Bearer <YOUR_API_TOKEN>"

REST API Reference​

  • GET /api/v1/compute/instances — List all instances in the current tenant project.
  • POST /api/v1/compute/instances — Launch a new virtual machine instance.
  • GET /api/v1/compute/instances/{id} — Inspect instance state, IP addresses, and flavor.
  • DELETE /api/v1/compute/instances/{id} — Terminate and delete an instance.
  • POST /api/v1/compute/instances/{id}/action — Execute a lifecycle action (reboot, start, stop, pause, unpause, rebuild).
  • GET /api/v1/compute/instances/{id}/console — Retrieve an interactive VNC/SPICE console URL.
  • GET /api/v1/compute/instances/{id}/console-log — Retrieve live serial boot logs.
  • GET /api/v1/compute/flavors — List available compute resource flavors.