Feature Comparison
VMs offer capabilities not available in Docker-based instances:- Init manager support (e.g.,
systemd), required for running Docker, Kubernetes, Snap, or other containerization tools inside your instance - Process tracing (
ptrace) support
- Slower creation and boot times
- Higher disk overhead
- Smaller selection of available machines
- Fewer preconfigured templates
- Only SSH launch mode is currently supported
Creating a VM
Use one of the templates below to get started. These templates automatically filter for VM-capable machines and will launch a VM when you rent:Environment variables in VMs are written to
/etc/environment.Customizing VM Templates
VM images are packaged as Docker images from thedocker.io/vastai/kvm repository. All VM templates must use one of these images, specified with the fully qualified name (e.g., docker.io/vastai/kvm:ubuntu_terminal).
Docker Options
VM templates support the following flags in the Docker options field, which behave the same as in Docker-based instances:
For more details on these options, see Docker Environment.
Launch Modes
Currently only SSH is supported. See the SSH guide for connection details.Differences from Docker-Based Instances
- Data copy: The cloud copy utility for VMs only supports migrating the entire VM, individual folder copies are not available.
- Copy scope: Copy is only supported between two VMs, not between VMs and external cloud storage providers.
- Copy command: Use
vastai copy $SRC $DESTto copy between VMs. Note:vastai vm copyis not available as a CLI command.