Skip to content

How to create a VM using the connectVM CLI client on connectVM Cloud cloud🔗

This article will cover creating a virtual machine on connectVM Cloud cloud using the connectVM CLI client exclusively. It contains basic information to get you started.

What We Are Going To Cover🔗

  • The connectVM command to create a VM
  • Selecting parameters of the new virtual machine
  • Image
  • Flavor
  • Key pair
  • Network(s)
  • Security group(s)
  • Creating a virtual machine with CLI only
  • Adding a floating IP to the existing VM
  • Using SSH to access the VM

Prerequisites🔗

No. 1 Account

You need a connectVM Cloud hosting account with access to the Horizon interface: https://console.connectvm.com/.

No. 2 connectVM CLI client configured

To have the connectVM CLI client configured and operational, see article: How to install connectVMClient for Linux on connectVM Cloud.

If the command

connectVM flavor list

shows a list of flavors, the connectVM command is operational.

No. 3 Available image to create a new VM from

In general, you can create a new virtual machine from these four sources:

  • operating system image
  • instance snapshot
  • volume
  • volume snapshot

In this article, we will use the first option, an operating system image, as a source of a new virtual machine. There are three ways you can obtain an image:

Images that are automatically included on connectVM Cloud cloud
There is a set of images that come predefined with the cloud. Typically, that default list of images will contain Ubuntu, CentOS, and Windows 2019/22 images, with various flavors. Other default images could be available as well, say, for AlmaLinux, OPNSense, OSGeolive, Rocky Linux and so on.
Images shared from other projects
Under connectVM, images can be shared between the projects. To have an alien image available in your project, you have to accept it first.
Images uploaded within your account

Finally, you can upload an image by yourself. Once uploaded, the image will be a first class citizen but it may not be automatically available on other accounts you might have.

See this article

How to upload your custom image using connectVM CLI on connectVM Cloud

for an example of uploading a new Debian image to the cloud.

No. 4 Available SSH key pair

These two articles should help generate and import the SSH key into the cloud:

  • /networking/Generating-a-sshkeypair-in-Linux-on-connectVM-Cloud and