@@ -76,7 +76,7 @@ with a Ubuntu 22.04 rootfs from our CI:
76
76
ARCH=" $( uname -m) "
77
77
78
78
# Download a linux kernel binary
79
- wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.6/${ARCH} /vmlinux-5.10.197
79
+ wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.6/${ARCH} /vmlinux-5.10.198
80
80
81
81
# Download a rootfs
82
82
wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.6/${ARCH} /ubuntu-22.04.ext4
@@ -115,7 +115,7 @@ To instead build firecracker from source, you will need to have `docker` install
115
115
ARCH=" $( uname -m) "
116
116
117
117
# Clone the firecracker repository
118
- git clone https://github.com/firecracker-microvm/firecracker
118
+ git clone https://github.com/firecracker-microvm/firecracker firecracker_src
119
119
120
120
# Start docker
121
121
sudo systemctl start docker
@@ -127,10 +127,10 @@ sudo systemctl start docker
127
127
# This will produce the firecracker and jailer binaries under
128
128
# `./firecracker/build/cargo_target/${toolchain}/debug`.
129
129
#
130
- sudo ./firecracker /tools/devtool build
130
+ sudo ./firecracker_src /tools/devtool build
131
131
132
132
# Rename the binary to "firecracker"
133
- mv ./firecracker /build/cargo_target/${ARCH} -unknown-linux-musl/debug/firecracker firecracker
133
+ sudo cp ./firecracker_src /build/cargo_target/${ARCH} -unknown-linux-musl/debug/firecracker firecracker
134
134
```
135
135
136
136
### Starting Firecracker
@@ -143,11 +143,10 @@ process via HTTP requests:
143
143
API_SOCKET=" /tmp/firecracker.socket"
144
144
145
145
# Remove API unix socket
146
- rm -f $API_SOCKET
146
+ sudo rm -f $API_SOCKET
147
147
148
148
# Run firecracker
149
- ./firecracker/build/cargo_target/${ARCH} -unknown-linux-musl/debug/firecracker \
150
- --api-sock " ${API_SOCKET} "
149
+ sudo ./firecracker --api-sock " ${API_SOCKET} "
151
150
```
152
151
153
152
In a new terminal (do not close the 1st one):
@@ -191,7 +190,7 @@ curl -X PUT --unix-socket "${API_SOCKET}" \
191
190
}" \
192
191
" http://localhost/logger"
193
192
194
- KERNEL=" ./vmlinux-5.10.186 "
193
+ KERNEL=" ./vmlinux-5.10.198 "
195
194
KERNEL_BOOT_ARGS=" console=ttyS0 reboot=k panic=1 pci=off"
196
195
197
196
ARCH=$( uname -m)
0 commit comments