# VPS classes

Every VPS has a class. It decides whether the VPS can run its own VMs.

| Class                           | Name in `lt` | What you get            |
| ------------------------------- | ------------ | ----------------------- |
| **Normal**                      | `base`       | The standard VPS        |
| **KVM (nested virtualization)** | `kvm`        | Run your own VMs inside |

Normal is the default.

KVM is turned on per Account, on request. To ask for it, open a support ticket:

```sh
lt support "Please turn on KVM for my Account"
```

or use the **Support** page in the dashboard. Until KVM is on for your Account, creating a KVM VPS
or changing a VPS to KVM is refused with that pointer, and **Create VPS** shows KVM as unavailable.
A KVM VPS your Account already has keeps working: it stops and starts as before.

A KVM VPS has `/dev/kvm`, so you can run your own VMs inside it. A KVM VPS can't sleep:
`lt vps hibernate` answers "A kvm-class VPS can't hibernate." The platform also can't move it to
another server while it runs.

Some Accounts also have **Full memory** (`base-full`), which the LiveTerminal team turns on for an
Account that needs the best performance. On such an Account, new VPSs get Full memory unless you
pick another class. `lt account limits --json` lists the classes your Account can use (`classes`,
the default first).

## Choose a class

In the dashboard, pick the class in **Create VPS**. In your terminal:

```sh
lt vps create --name my-vps --class kvm --wait
```

Without `--class`, the VPS gets your Account's default class, or KVM when you chose a KVM
configuration (which needs KVM turned on for your Account).

## Change the class

To or from KVM, stop the VPS first. The new class applies at the next start:

```sh
lt vps stop my-vps --yes --wait
lt vps set-class my-vps kvm
lt vps start my-vps --wait
```

On an Account with Full memory, a running VPS switches between Normal and Full memory without a
restart (`lt vps set-class my-vps base-full`). If its server has no room for it right now, the
command says so; stop the VPS and start it again with the new class instead.

In the dashboard, use **Change class** on the VPS (on a running one, only between Normal and Full
memory). You can't change the class of a sleeping
VPS, or while another change to it is still running.