forked from myugan/firecracker-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
31 lines (28 loc) · 882 Bytes
/
config.py
File metadata and controls
31 lines (28 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from dataclasses import dataclass
@dataclass
class MicroVMConfig:
"""Configuration defaults for Firecracker microVMs."""
data_path: str = "/var/lib/firecracker"
binary_path: str = "/usr/local/bin/firecracker"
snapshot_path: str = "/var/lib/firecracker/snapshots"
kernel_file: str = None
rootfs_size: str = "5G"
rootfs_format: str = "ext4"
initrd_file: str = None
init_file: str = "/sbin/init"
base_rootfs: str = None
overlayfs: bool = False
overlayfs_file: str = None
ip_addr: str = "172.16.0.2"
mmds_enabled: bool = False
mmds_ip: str = "169.254.169.254"
user_data: str = None
vcpu: int = 1
memory: int = 512
verbose: bool = False
ssh_user: str = "root"
expose_ports: bool = False
host_port: int = None
dest_port: int = None
vsock_enabled: bool = False
vsock_guest_cid: int = 3