Free consultation

Guides

Guide for org members

Your first virtual machine

In ten minutes, from a new org to a running server you reach over SSH. You need the Admin or Operator role.

Your org's network

Your provider created your org with a network ready to use:

Part Name What it does
VPC default Your private network, 10.0.0.0/16
Subnet public 10.0.1.0/24. A VM here reaches the internet with its own public IP
Subnet private 10.0.2.0/24. A VM here reaches the internet through the NAT gateway
NAT gateway default Lets private VMs out through your org's first public IP
Security group default Lets all traffic out and nothing in

Nothing reaches a VM until a security group allows it. So the first step is a rule for SSH.

1. Allow SSH from your office

  1. Open Networking › Security groups and choose Create security group.
  2. Pick the VPC default, name the group ssh, and choose Create.
  3. Open the group. Under Inbound, set Protocol to tcp, Port(s) to 22, and the Source CIDR to your office's public address range, for example 203.0.113.0/24. Choose Add.
  4. Choose Save rules.

The Quick add links (SSH, HTTP, HTTPS, RDP, Ping) add a rule from anywhere in one click; use them for public services such as a website.

2. Create the VM

Open Compute › Virtual machines and choose Create VM.

  1. Basics: a Name (a space becomes a hyphen), the Image (for example Debian 13) and an optional Description.
  2. Size: a ready size such as s1 (1 vCPU, 2 GiB) up to s16 (16 vCPU, 32 GiB), or Custom. Disk (GiB) must be at least the image's minimum; a disk can grow later but never shrink.
  3. Network: keep the VPC default and choose the subnet public. Leave Private IP on automatic. Under Security groups, tick ssh.
  4. Public IP: pick one of your free addresses and keep 1:1 NAT: the VM keeps its private address, and traffic to the public IP reaches it.
  5. Encryption: keep host42 makes a key (recommended). The VM's disk is encrypted with its own key. If you bring your own key instead, keep it safe: a lost key means lost data.
  6. Access and first boot: paste your SSH public keys, one per line. Leave Start after creation on.
  7. Choose Create.

The VM's page opens. Its state changes to running within a minute or two; the Jobs tab shows each step.

Org console · VM network
A running VM's Network tab: its interface in the public subnet, a public IP with 1:1 NAT, its security group, and buttons to forward a port or attach another interface

3. Connect

ssh debian@<the VM's public IP>

On the Debian 13 image the user is debian, and it accepts the SSH keys you gave.

4. The browser console

Console on the VM's page opens its screen in a new browser tab while the VM runs: useful when the network inside the VM is not right yet. To sign in there, the image's user needs a password; set one for the console in the VM's first-boot user data when you create it, and keep SSH on keys only. Read-only members cannot open the console.

No free public IP?

  • Put the VM in the private subnet instead. It reaches the internet through the NAT gateway.
  • To reach it from outside, open the VM's Network tab and choose Forward a port: pick the NAT gateway's Public IP, a Public port, the VM's interface and its Private port. The VM's security groups must allow that port.
  • Or ask your provider for more public IPs. Once you have one, Attach a public IP on the VM's Network tab adds it to a running VM.

Power and care

  • Start, Reboot, Shut down (asks the guest to shut down cleanly, again every 10 seconds for up to 3 minutes) and Power off (like pulling the plug).
  • The Snapshots tab keeps manual snapshots you can roll back to.
  • The Backups tab backs the VM up to your provider's NAS: see back up and restore a VM.
  • If the VM crashes or stops unexpectedly, the org's admins get a notice and an email.

Next: build a VPC with public and private subnets for a real application.