Skip to content

Commit

Permalink
Merge branch 'main' into drop_snapshot_forward_compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bchalios authored Oct 24, 2023
2 parents 87f0d81 + d0aca48 commit 629aff2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ with a Ubuntu 22.04 rootfs from our CI:
ARCH="$(uname -m)"

# Download a linux kernel binary
wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.6/${ARCH}/vmlinux-5.10.197
wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.6/${ARCH}/vmlinux-5.10.198

# Download a rootfs
wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.6/${ARCH}/ubuntu-22.04.ext4
Expand Down Expand Up @@ -115,7 +115,7 @@ To instead build firecracker from source, you will need to have `docker` install
ARCH="$(uname -m)"

# Clone the firecracker repository
git clone https://github.com/firecracker-microvm/firecracker
git clone https://github.com/firecracker-microvm/firecracker firecracker_src

# Start docker
sudo systemctl start docker
Expand All @@ -127,10 +127,10 @@ sudo systemctl start docker
# This will produce the firecracker and jailer binaries under
# `./firecracker/build/cargo_target/${toolchain}/debug`.
#
sudo ./firecracker/tools/devtool build
sudo ./firecracker_src/tools/devtool build

# Rename the binary to "firecracker"
mv ./firecracker/build/cargo_target/${ARCH}-unknown-linux-musl/debug/firecracker firecracker
sudo cp ./firecracker_src/build/cargo_target/${ARCH}-unknown-linux-musl/debug/firecracker firecracker
```

### Starting Firecracker
Expand All @@ -143,11 +143,10 @@ process via HTTP requests:
API_SOCKET="/tmp/firecracker.socket"

# Remove API unix socket
rm -f $API_SOCKET
sudo rm -f $API_SOCKET

# Run firecracker
./firecracker/build/cargo_target/${ARCH}-unknown-linux-musl/debug/firecracker \
--api-sock "${API_SOCKET}"
sudo ./firecracker --api-sock "${API_SOCKET}"
```

In a new terminal (do not close the 1st one):
Expand Down Expand Up @@ -191,7 +190,7 @@ curl -X PUT --unix-socket "${API_SOCKET}" \
}" \
"http://localhost/logger"

KERNEL="./vmlinux-5.10.186"
KERNEL="./vmlinux-5.10.198"
KERNEL_BOOT_ARGS="console=ttyS0 reboot=k panic=1 pci=off"

ARCH=$(uname -m)
Expand Down

0 comments on commit 629aff2

Please # to comment.