You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: how-to/how-to-set-sandbox-config-kata.md
+41-4Lines changed: 41 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,11 @@
3
3
Kata Containers gives users freedom to customize at per-pod level, by setting
4
4
a wide range of Kata specific annotations in the pod specification.
5
5
6
+
Some annotations may be [restricted](#restricted-annotations) by the
7
+
configuration file for security reasons, notably annotations that could lead the
8
+
runtime to execute programs on the host. Such annotations are marked with _(R)_ in
9
+
the tables below.
10
+
6
11
# Kata Configuration Annotations
7
12
There are several kinds of Kata configurations and they are listed below.
8
13
@@ -38,6 +43,8 @@ There are several kinds of Kata configurations and they are listed below.
38
43
|`io.katacontainers.config.hypervisor.block_device_cache_noflush`|`boolean`| Denotes whether flush requests for the device are ignored |
39
44
|`io.katacontainers.config.hypervisor.block_device_cache_set`|`boolean`| cache-related options will be set to block devices or not |
40
45
|`io.katacontainers.config.hypervisor.block_device_driver`| string | the driver to be used for block device, valid values are `virtio-blk`, `virtio-scsi`, `nvdimm`|
46
+
|`io.katacontainers.config.hypervisor.cpu_features`|`string`| Comma-separated list of CPU features to pass to the CPU (QEMU) |
47
+
|`io.katacontainers.config.hypervisor.ctlpath` (R) |`string`| Path to the `acrnctl` binary for the ACRN hypervisor |
41
48
|`io.katacontainers.config.hypervisor.default_max_vcpus`| uint32| the maximum number of vCPUs allocated for the VM by the hypervisor |
42
49
|`io.katacontainers.config.hypervisor.default_memory`| uint32| the memory assigned for a VM by the hypervisor in `MiB`|
43
50
|`io.katacontainers.config.hypervisor.default_vcpus`| uint32| the default vCPUs assigned for a VM by the hypervisor |
@@ -48,7 +55,7 @@ There are several kinds of Kata configurations and they are listed below.
48
55
|`io.katacontainers.config.hypervisor.enable_mem_prealloc`|`boolean`| the memory space used for `nvdimm` device by the hypervisor |
49
56
|`io.katacontainers.config.hypervisor.enable_swap`|`boolean`| enable swap of VM memory |
50
57
|`io.katacontainers.config.hypervisor.entropy_source`| string| the path to a host source of entropy (`/dev/random`, `/dev/urandom` or real hardware RNG device) |
51
-
|`io.katacontainers.config.hypervisor.file_mem_backend`| string | file based memory backend root directory |
|`io.katacontainers.config.hypervisor.kernel`| string | the kernel used to boot the container VM |
@@ -68,12 +75,14 @@ There are several kinds of Kata configurations and they are listed below.
68
75
|`io.katacontainers.config.hypervisor.memory_offset`| uint32| the memory space used for `nvdimm` device by the hypervisor |
69
76
|`io.katacontainers.config.hypervisor.memory_slots`| uint32| the memory slots assigned to the VM by the hypervisor |
70
77
|`io.katacontainers.config.hypervisor.msize_9p`| uint32 | the `msize` for 9p shares |
71
-
|`io.katacontainers.config.hypervisor.path`| string | the hypervisor that will run the container VM |
78
+
|`io.katacontainers.config.hypervisor.path` (R) | string | the hypervisor that will run the container VM |
79
+
|`io.katacontainers.config.hypervisor.pcie_root_port`| specify the number of PCIe Root Port devices. The PCIe Root Port device is used to hot-plug a PCIe device (QEMU) |
72
80
|`io.katacontainers.config.hypervisor.shared_fs`| string | the shared file system type, either `virtio-9p` or `virtio-fs`|
73
81
|`io.katacontainers.config.hypervisor.use_vsock`|`boolean`| specify use of `vsock` for agent communication |
82
+
|`io.katacontainers.config.hypervisor.vhost_user_store_path` (R) |`string`| specify the directory path where vhost-user devices related folders, sockets and device nodes should be (QEMU) |
74
83
|`io.katacontainers.config.hypervisor.virtio_fs_cache_size`| uint32 | virtio-fs DAX cache size in `MiB`|
75
84
|`io.katacontainers.config.hypervisor.virtio_fs_cache`| string | the cache mode for virtio-fs, valid values are `always`, `auto` and `none`|
- For networking, ACRN supports either MACVTAP or TAP. If MACVTAP is not enabled in the Service OS, please follow the below steps to update the kernel:
Copy file name to clipboardExpand all lines: how-to/how-to-use-virtio-mem-with-kata.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Please use following unofficial version of the Linux kernel and QEMU that suppor
20
20
The Linux kernel is at https://github.com/davidhildenbrand/linux/tree/virtio-mem-rfc-v4.
21
21
The Linux kernel config that can work with Kata Containers is at https://gist.github.com/teawater/016194ee84748c768745a163d08b0fb9.
22
22
23
-
The QEMU is at https://github.com/teawater/qemu/tree/kata-virtio-mem. (The original source is at https://github.com/davidhildenbrand/qemu/tree/virtio-mem. Its base version of QEMU cannot work with Kata Containers. So merge the commit of `virtio-mem` to upstream QEMU.)
23
+
The QEMU is at https://github.com/teawater/qemu/tree/kata-virtio-mem. (The original source is at https://github.com/davidhildenbrand/qemu/tree/virtio-mem-vfio. Its base version of QEMU cannot work with Kata Containers. So merge the commit of `virtio-mem` to upstream QEMU.)
24
24
25
25
Set Linux and the QEMU that support `virtio-mem` with following line in the Kata Containers QEMU configuration `configuration-qemu.toml`:
0 commit comments