# Create Virtual Machine | Cycle.io

Canonical URL: https://cycle.io/docs/portal/create-virtual-machine

## Create Virtual Machine.

Users can take advantage of the virtual machine create wizard to create a new virtual machine.

To get there:

1.  Environments from the main, left-hand navigation.
2.  Select environment from first column.
3.  Next to the **Deploy Container** on the top right hand side of environment dashboard, click the **V** arrow to open the submenu and click on **Deploy Virtual Machine**.
    
    ![Virtual Machine Create Wizard Page 1](https://cycle.io/_cdn/docs-c6a3bccf-vm-create-page-1-2062x1566-webp.webp)
    

### Virtual Machine Create Wizard

Create new virtual machines using this wizard. Values that show up in the form with a red asterisk next to them are required.

#### Basics

| Field | Description |
| --- | --- |
| Name | A human-readable name for the virtual machine. |
| SSH Keys | SSH keys that can be used to connect to the virtual machine via SSH. An add button is available if the environment-level SSH key is not already added. |

##### Adding SSH Key Inline

First click the Add button to open the form and paste in the public key after giving the key a name.

![Add SSH Key Form Filled](https://cycle.io/_cdn/docs-9aa4ffb6-add-ssh-key-1472x928-webp.webp)

Select the newly added key from the dropdown.

Keys can be added ahead of time through the [environment SSH Key form](https://cycle.io/docs/portal/managing-an-environment#virtual-machine-ssh-keys)

#### Image

The image section of the virtual machine wizard is where the user defines the image to be used to create the virtual machine. The platform supports both a selection of official base images as well as importing from a URL. In the near future, the platform will support IPXE boot.

##### Cycle Base Image

| Field | Description |
| --- | --- |
| Base Image | The distribution of the virtual machine. |
| Version | The version of the distribution picked in the base image. |

##### Image from URL

| Field | Description |
| --- | --- |
| URL | The URL to download the image from. |

When using a URL be aware of the boot method preferred. By default, the platform will try to use [UEFI](https://uefi.org/specifications), but BIOS can be specified with a query parameter **?boot=bios**.

For example:

```
https://download.fedoraproject.org/pub/fedora/linux/releases/42/Workstation/x86_64/iso/Fedora-Workstation-Live-42-1.1.x86_64.iso?boot=bios
```

The above will tell the platform, boot using BIOS instead of UEFI.

#### Resources

RAM can be allocated. During the initial launch of the beta, CPU resources are set to a maximum but are not assigned to the VM. This includes CPUSet, which is not defined here as it is not yet implemented.

##### CPU

| Field | Description |
| --- | --- |
| Cores | The number of cores the virtual machine has access to (maximum). |

##### RAM

| Field | Description |
| --- | --- |
| Limit | The amount of RAM the virtual machine has access to. If allocate the RAM is reserved. |

#### Storage

##### Managing Storage and Volumes

Using the wizard, any virtual machine can add additional storage volumes. These volumes can be local (on the server) or [external volumes](https://cycle.io/docs/portal/external-volumes).

One thing to note is that the base volume can also be configured to be an external volume. This is key for organizations that need minimal downtime when migrating or recovering their VMs across different machines/instances.

To add an additional volume, add an identifier.

To configure volume settings click on the pencil icon near the end of the row.

![virtual machine create wizard icon explainer](https://cycle.io/_cdn/docs-1efcb395-vm-storage-volume-804x337-webp.webp)

This opens a mini-modal where external volumes can be configured if desired OR local volumes can be further refined.

To set the external volume click on the external volume option and select the server from the dropdown. The block device checkbox needs to be checked. The file system type external volume is not compatible with virtual machines.

![virtual machine external volume config](https://cycle.io/_cdn/docs-86c9459f-vm-update-storage-volume-615x399-webp.webp)

When done configuring, close the modal to save and move on with configuration settings for the rest of the virtual machine.

##### Base Disk

| Field | Description |
| --- | --- |
| Base Disk | The amount maximum amount of disk space the VM can take on the host. |

##### Additional Storage

Pool options are implemented in the same way as [container storage pool](https://cycle.io/docs/portal/container-volumes#storage-pool). Unlike the container implementation, the additional storage volumes provisioned on virtual machines are just raw block devices that must be formatted before being used.

| Field | Description |
| --- | --- |
| Identifier | An identifier used internally by the platform. |
| Pool Options | See [storage pools](https://cycle.io/docs/platform/container-volumes#storage-pools) in the platform documentation. |
| Size | The size of the block device to add. |
| Cache Mode | How writes move from the VM to the server’s disk. Defaults to `writeback`. The cache mode for additional volumes is set after the VM is created. See Disk Cache Mode below. |

##### Disk Cache Mode

Additional disks have a cache mode that controls how writes move from the VM to the server’s disk. The base disk doesn’t have this setting. The default is `writeback`. Set it in the volume’s settings (the pencil icon on the volume row).

| Mode | Host page cache | VM sees a write cache | When to use |
| --- | --- | --- | --- |
| `none` | Bypassed | Yes | Databases and write-heavy VMs. Avoids double caching. Data is durable once the VM flushes. |
| `writeback` | Used | Yes | General use. Fast reads and writes. Data is durable once the VM flushes. |
| `writethrough` | Used | No  | Every write is flushed before it completes. Safest, slowest writes. |
| `directsync` | Bypassed | No  | Like writethrough, but skips the host cache. |
| `unsafe` | Used | Yes | Ignores flushes. Fastest, but a server crash can lose or corrupt data. Only for disposable data. |

#### Network

| Field | Description |
| --- | --- |
| Hostname | The hostname for the virtual machine, usable for local environemnt DNS resolution via [discovery](https://cycle.io/docs/platform/discovery-service). |
| Public Network | The level of network access the virtual machine will have. |

For public networking for a virtual machine, there are several options available:

**Assigning public IPs** - This option assigns a static IP to the virtual machine, making it ideal for DMZ-setups that require a fixed external entrypoint. This is achieved through the [gateway service](https://cycle.io/docs/platform/gateway-service). To enable, allocate IPs from the virtual machine dashboard, with traffic routed through the gateway service. This simpler approach is well-suited for services that need controlled external access while maintaining network isolation.

**Use load balancer to route traffic** - This option allows traffic to be run though the load balancer, similar to how traffic is routed to a container. Ports will be assigned in the [virtual machine config](https://cycle.io/docs/portal/virtual-machine-network) to facilitate traffic. This is useful to facilitate high availability or more advanced load handling capabilities.

Dive deeper into these platform concepts:

-   [Public Access Via Gateway](https://cycle.io/docs/platform/gateway-service)
-   [Public Access Via Load Balancer](https://cycle.io/docs/platform/native-load-balancer)

#### Deployment

| Field | Description |
| --- | --- |
| Node Tags (Any and All) | [Constrain which servers](https://cycle.io/docs/platform/servers#server-tags) qualify to receive instances of this virtual machine. |

### Review and Create

After completing the wizard there is an opportunity to review before submitting. If all fields are not correct, use the Back button to navigate back to the section to be changed and then back to review.

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
