mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 12:29:49 +00:00
add detailed explanation for Dragonball API Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
1.2 KiB
1.2 KiB
API
We provide plenty API for Kata runtime to interact with Dragonball
virtual machine manager.
This document provides the introduction for each of them.
ConfigureBootSource
Configure the boot source of the VM using BootSourceConfig
. This action can only be called before the VM has booted.
Boot Source Config
kernel_path
: Path of the kernel image.Dragonball
only supports compressed kernel image for now.initrd_path
: Path of the initrd (could be None)boot_args
: Boot arguments passed to the kernel (could be None)
SetVmConfiguration
Set virtual machine configuration using VmConfigInfo
to initialize VM.
VM Config Info
vcpu_count
: Number of vCPU to start. Currently we only support up to 255 vCPUs.max_vcpu_count
: Max number of vCPU can be added through CPU hotplug.cpu_pm
: CPU power management.cpu_topology
: CPU topology information (includingthreads_per_core
,cores_per_die
,dies_per_socket
andsockets
).vpmu_feature
:vPMU
feature level.mem_type
: Memory type that can be eitherhugetlbfs
orshmem
, default isshmem
.mem_file_path
: Memory file path.mem_size_mib
: The memory size in MiB. The maximum memory size is 1TB.serial_path
: Optional sock path.