Skip to main content

Module vms

Module vms 

Source

Structs§

CidPids
Contains potentially live cid and pids
Vm
Info for a vm
VmConfig
Holds some metainfo about a particular VM as well as SSH and QEMU-specific info
VmId
A virtual machine identifier
VmReservation
A freshly reserved state dir for a new VM

Enums§

VmState

Constants§

CID_FILENAME
File with the VM’s vsock CID in the VM’s state dir
DAEMON_LOG_FILENAME
File with the daemonized vmexec’s stdout and stderr in the VM’s state dir
QEMU_PID_FILENAME
File with QEMU’s pid in the VM’s state dir
SESSION_LOG_FILENAME
File with the VM’s terminal output in the VM’s state dir
VMEXEC_PID_FILENAME
File with vmexec’s pid in the VM’s state dir
VM_CONFIG_FILENAME
File containing VM config in the VM’s state dir

Functions§

get_vm
Look up a single VM by id
get_vms
Get a list of VmConfigs and their paths
reap_dead_vm_dirs
Reap dead VMs that didn’t get cleaned up
reserve_vm
Reserve a state dir for a new VM
stop_vm
Stop a VM