Skip to main content

Creating a VM

info

Crusoe Cloud is currently in private beta. If you do not currently have access, please request access to continue.

Creating and uploading an SSH key

If you don't already have an SSH key, you will need to create one on your local machine. We recommend following GitHub's "Generating a new SSH key" documentation.

When creating a VM for the first time, you will be prompted to upload an SSH key, which the VM will use to authenticate future SSH attempts. It will be saved into your account with the name "Default" and accessible on subsequent VM creations from the UI. You can manage all SSH keys in the Console's Security page.

info

Crusoe Cloud supports all SSH public key formats that are accepted by OpenSSH. These include:

For more information on the authorized key format please see the OpenSSH docs.

Creating a new VM

Use the compute vms create command to create a VM of your choice. As an example, you can create a VM that uses a single Nvidia A40 GPU:

crusoe compute vms create \
--name my-vm \
--type a40.1x \
--location us-northcentral1-a \
--image ubuntu22.04:latest \
--keyfile ~/.ssh/id_ed25519.pub

name, type, location, and keyfile are required arguments.

You can find possible values for type and location by running crusoe compute vms types and crusoe locations list respectively.

If you don't specify an image, the VM will defailt to the latest version of ubuntu 22.04. Run crusoe compute images list for more options.

Access the VM via SSH

If VM creation succeeds, the VM will start and you will be provided with an IP address for you to SSH into:

ssh ubunutu@<ip> # or root@ (deprecated)
info

VMs in the us-northcentral location currently use the root user, while VMs in us-east1 currently use the ubuntu user. In the near future, we will use the default user for the underlying OS, typically ubuntu.

info

Note: It may take several minutes for the VM to start, and you may get Connection Refused errors until the VM starts. If you get an error immediately after creating or starting a VM, wait a minute or two and try again.

If VM creation fails or you are otherwise unable to access a running VM, ensure that you have billing enabled and that you have installed and configured the CLI properly. If it still isnt working, please contact support.