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
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ Firecracker consists of a single micro Virtual Machine Manager binary that will
11
11
* Add memory to the microVM.
12
12
* Add one or more network interfaces to the microVM.
13
13
* Add one or more read/write disks (block devices) to the microVM.
14
+
* Configure the logging system (i.e. path on host for log file, log level, etc).
14
15
* Start the microVM using a given kernel image and root file system.
15
16
* Stop the microVM.
16
17
@@ -20,6 +21,7 @@ Firecracker consists of a single micro Virtual Machine Manager binary that will
20
21
* Emulated keyboard (i8042) and serial console (UART). The microVM serial console input and output are connected to those of the Firecracker process (this allows direct console access to the guest OS).
21
22
* The capability of mapping an existing host tun-tap device as a virtIO/net device into the microVM.
22
23
* The capability of mapping an existing host file as a virtIO/block device into the microVM.
24
+
* Logging capabilities.
23
25
* Default demand fault paging & CPU oversubscription.
24
26
25
27
## Limits and Performance
@@ -51,6 +53,9 @@ To run microVMs with Firecracker, you will need to have:
51
53
## Runtime Dependencies
52
54
* Firecracker needs rw access to `/dev/kvm`. You can grant these rights, e.g., to all users, with: `sudo chmod a+rw /dev/kvm`.
53
55
56
+
## Testing
57
+
* In-tree integration tests, that can be run locally or as part of a continuous integration system, are provided. See `tests/README.md` for more information.
58
+
54
59
## Start Firecracker & the Micro VM
55
60
56
61
The python-based toy example below will start a Firecracker microVM with 2 vCPUs, 256 MiB or RAM, two network interfaces and two disks (rootfs and temp).
@@ -121,6 +126,17 @@ requests.put(
121
126
}
122
127
)
123
128
129
+
# Configure logging system.
130
+
requests.put(
131
+
firecracker.logger_url,
132
+
json={
133
+
'path': '/tmp/firecracker0001/file.log',
134
+
'level': 'Info',
135
+
'show_level': True,
136
+
'show_log_origin': True,
137
+
}
138
+
)
139
+
124
140
# Specify a boot source: a kernel image.
125
141
# Currently, only linux kernel images are supported.
0 commit comments