Starting and managing hardware virtual machine instances

Modified: 04 Oct 2017 16:56 UTC

Hardware virtual machines in Triton are started and managed using the same steps and API as infrastructure containers.

Before proceeding, you must have created an account on the Triton Compute Service portal and provided billing information.

Starting an instance from the portal

Login to the Triton Compute Service portal. From the Dashboard, click the Create Instance button, then select Hardware Virtual Machine. Follow the prompts on the screen to select the base software image, the RAM, disk and CPU resources for your instance, and set other details including the DNS names.

When finished, click the Launch button to create and start your instance.

Once created, you will notice your instance displayed in the grid within the Instances section of the Compute tab of the portal. The instance status will be indicated as either provisioning, running or stopped. If it is labeled as provisioning, the instance is still being set up. When finished, your new instance should be listed as running.

In order to access the container, you need the IP address. The primary IP address will be listed next to the container's name in your instances list. To get all of the IP addresses and other instance details, click on the name of your new container. The IP addresses will be listed under Summary.

Watch the screencast

Watch and see how quick it is to set up a hardware virtual machine in the Triton portal.

Starting and managing an instance with Triton CLI

Install the Triton CLI tool to create an instance in the command line.

With triton installed and configured, we can provision infrastructure instances by running triton instance create. Here is an example of installing debian:

triton instance create -w --name=myDebianServer debian-8 k4-highcpu-kvm-250M
Creating instance myDebianServer (efb971ac-e7dc-4b0b-898d-1c50b1882461, debian-8@20161025)
Created instance myDebianServer (efb971ac-e7dc-4b0b-898d-1c50b1882461) in 39s

This command has four parameters:

  1. We gave our instance a name using --name=myDebianServer
  2. We used -w to wait the instance to be created.
  3. We used debian-8 as our image. To list all available images, run triton image ls.
  4. We set k4-highcpu-kvm-250M as our package. To list all available packages, run triton packages. HVM instances cannot use g4 packages.

When an image is created, it will automatically be in a running state. To view all of your instances, run triton instance list.

SHORTID   NAME                        IMG                    STATE    FLAGS  AGE
efb971ac  myDebianServer              debian-8@20161025      running  K      2m

To get the IP address of your new instance, run triton instance get with the instance ID.

triton instance get efb971ac

The terminal will return a large list of infrastructure details. The IP address will be listed next to primaryIp.

Learn more about working with instances