Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial debug tips doc #338

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
document ssh connection
  • Loading branch information
lrvick committed Jul 7, 2023
commit 968113ba72e2fd4d7125cd276be3ac0af8d9f0f4
16 changes: 10 additions & 6 deletions docs/debug-tips.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
## Setup nitro dev box

1. launch latest debian AMI
2. Configure custom nitro kernel
1. Launch latest Debian AMI
2. Connect to instance
```
while sleep 1; do ssh admin@<IP_HERE>; done
```
3. Configure custom nitro kernel

Assumes kernel "6.1" is latest. Adjust accordingly.
```
ssh -A admin@<IP_HERE>
sudo -s
apt install -y tmux dpkg-dev pahole inotify-tools neovim build-essential linux-source-6.1.0
cd /usr/src
@@ -17,7 +22,7 @@
dpkg -i ../linux-image-6.1.37-nitro_6.1.37-1_amd64.deb
reboot
```
3. Setup latest docker
4. Setup latest docker
```
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
@@ -29,9 +34,8 @@
sudo apt update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```
4. Configure Nitro Enclave tooling
5. Configure Nitro Enclave tooling
```
ssh -A admin@<IP_HERE>
git clone https://github.com/aws/aws-nitro-enclaves-cli.git
cd aws-nitro-enclaves-cli
make