Skip to content

Virtual machines

Mayadyn creates and runs virtual machines (VMs) in your cloud accounts. The console calls them Machines. Every VM has the same shape on every cloud, and the same unified sizes and images.

The catalog maps unified names to each cloud. See it with Create machine in the console, mayadyn catalog, or the list_catalog agent tool.

Size vCPU Memory OCI GCP
xsmall 2 4 GB VM.Standard.E4.Flex, 1 OCPU e2-medium
small (default) 2 8 GB VM.Standard.E4.Flex, 1 OCPU e2-standard-2
medium 4 16 GB VM.Standard.E4.Flex, 2 OCPUs e2-standard-4
large 8 32 GB VM.Standard.E4.Flex, 4 OCPUs e2-standard-8
Image Name SSH user Available on
ubuntu-24.04 (default) Ubuntu 24.04 LTS ubuntu OCI, GCP
ubuntu-22.04 Ubuntu 22.04 LTS ubuntu OCI, GCP
oracle-linux-9 Oracle Linux 9 opc OCI
debian-12 Debian 12 debian GCP

You can also give a native shape or machine type as the size, or a native image id as the image. They are passed to the cloud unchanged. A dry run warns: “size … is not in the catalog; it is passed to the cloud as a native value”. On OCI, a native image must be an Oracle platform image or an image in the connection’s compartment. Mayadyn does not know the SSH user of a native image.

Cloud Regions offered first
OCI me-jeddah-1 Jeddah, me-dubai-1 Dubai, me-abudhabi-1 Abu Dhabi, eu-frankfurt-1 Frankfurt, uk-london-1 London, us-ashburn-1 Ashburn
GCP me-central2 Dammam, me-central1 Doha, europe-west3 Frankfurt, europe-west2 London, us-east4 Ashburn, us-central1 Iowa

These are not a limit: any region your account can use works. On GCP a region means its -a zone; give a zone (e.g. me-central2-b) to choose another. The console groups machines by the city they run in.

You need the write scope (Operator or above), and a connection whose status is Working.

Console

  1. Open Machines and choose Create machine.

  2. Fill in:

    Field Notes
    Cloud account The connection to create it on.
    Machine name Lowercase letters, digits and dashes, starting with a letter, at most 63, not ending in a dash. Unique per connection and region.
    Region Defaults to the connection’s default region.
    Size Default small.
    Image Default ubuntu-24.04.
    SSH public key Optional. The contents of a .pub file, e.g. ~/.ssh/id_ed25519.pub. Without it you cannot log in.
  3. Choose Review. This is a dry run: Mayadyn checks the name, region, size and image, and shows “Will be created on <provider> in <region>” with the native size and image (At the provider). Nothing is created.

  4. Choose Create machine.

CLI

Terminal window
mayadyn vms create --connection oci-jeddah --name web-1 --size small --image ubuntu-24.04 \
--ssh-key ~/.ssh/id_ed25519.pub --label team=web --dry-run
mayadyn vms create --connection oci-jeddah --name web-1 --size small --image ubuntu-24.04 \
--ssh-key ~/.ssh/id_ed25519.pub --label team=web --wait

Without --ssh-key, the CLI sends ~/.ssh/id_ed25519.pub, id_ecdsa.pub or id_rsa.pub, whichever it finds first. Passing a private key file is refused.

Creating takes about 30 seconds to 3 minutes. The machine shows Creating, then Running.

Retrying a create is safe: the console and CLI attach an idempotency key, so a retry returns the same operation instead of making a second machine. See Operations.

  • The key must be an OpenSSH public key line, starting with ssh- (e.g. ssh-ed25519, ssh-rsa) or ecdsa-.
  • It is installed for the image’s SSH user (ubuntu, opc or debian).
  • Mayadyn never sees or stores your private key.

Labels are key=value pairs set on the VM in the cloud. Set them with --label k=v (repeatable) in the CLI, labels in the API, or the labels argument of the create_vm agent tool. The console’s form has no labels field.

  • Keys: start with a lowercase letter, then lowercase letters, digits, _ or -; up to 63 characters.
  • Values: lowercase letters, digits, _ or -; up to 63 characters.
  • At most 32 labels.

Mayadyn also sets managed-by and mayadyn-operation on every VM it creates.

  • Console: choose Log in on the machine. It shows ssh <user>@<public ip> with a Copy button.
  • CLI: mayadyn vms get <id> prints the same line.

SSH (TCP 22) is open from anywhere on the network Mayadyn creates; see Networking Mayadyn creates.

Needs the write scope.

  • Console: Stop on a Running machine, Start on a Stopped one.
  • CLI: mayadyn vms stop <id> --wait, mayadyn vms start <id> --wait.

Stopping keeps the disk. On OCI a stop is graceful first; if the machine has not stopped after 3 minutes it is powered off, so a stop can take up to about 4 minutes.

Deleting removes the VM and its boot disk from your cloud. It cannot be undone. Needs the destroy scope (Admin or Owner).

Console

  1. Choose Delete on the machine. It is offered when the machine is Running, Stopped, Error, Unknown or Deleted, not while it is changing state.
  2. Type the machine’s name to confirm and choose Delete.

CLI

Terminal window
mayadyn vms delete <id> --dry-run
mayadyn vms delete <id> --wait
  • Console: Machines lists every machine, grouped by city. Filter by Cloud. The page refreshes itself, faster while something is changing.
  • CLI: mayadyn vms list [--provider oci|gcp] [--region R] [--state S] [--connection C].

Machines made outside Mayadyn appear after a sync (Machines → Sync, or mayadyn connections sync <name>).

State Console Meaning
provisioning Creating Being created.
starting Starting Being started.
running Running Running.
stopping Stopping Being stopped.
stopped Stopped Stopped; disk kept.
terminating Deleting Being deleted.
terminated Deleted Deleted.
error Error The cloud reports an error. Look at it in the cloud console; delete it and create it again.
unknown Unknown The state could not be read. Sync later.

Only one operation runs on a machine at a time. A second request gets conflict with the running operation’s id. Wait for it to finish (the console shows Operation in progress), then retry.

An app’s host machine is listed with your machines, but it belongs to the app. Starting, stopping or deleting it directly is refused (conflict: “… is the host of an app”). Manage it through the app: deploy or delete the app. See Apps.