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

Modification to ctriface to accommodate SSH #923

Open
BenjaminChun opened this issue Jan 23, 2024 · 0 comments
Open

Modification to ctriface to accommodate SSH #923

BenjaminChun opened this issue Jan 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BenjaminChun
Copy link

Describe the bug
I would like to SSH into a running container in a microVM. After importing the networking package from this repo which is taken from the remote-firecracker-snapshots-poc branch and some changes to the ctriface folder, I encountered a host not found error that blocks me from completing the SSH.

To Reproduce
Rent ONE node on cloudlab, and all the steps below are done in a single node:

  1. Clone this repository and also this one
  2. Navigate to vHive first cd ./vHive , we will cover fc-ctrd at step 10 onwards
  3. Change branch to debug branch git checkout debug
  4. Set up the cloudlab node source ./scripts/cloudlab/setup_node.sh
  5. Navigate to ctriface folder cd ./ctriface
  6. Run make helplah
  7. If step 5 fails due to missing golang - source ../scripts/install_go.sh then run step 5 again.
  8. While script runs, the following 2 lines should appear
VM available at IP: 172.18.0.22
sleeping for 3mins in startvm state
  1. Note the IP addr as we will ssh using that IP
  2. Start another terminal and navigate to firecracker-containerd cd firecracker-containerd
  3. Change branch by git checkout firecracker-v1.4.1-vhive-integration-debug
  4. Change directory by cd ./tools/image-builder
  5. Change permission of key by chmod 600 ./firecracker_rsa
  6. Perform SSH with ssh -vvv -i ./firecracker_rsa root@<ip addr from step 8>

Expected behavior
After running make helplah script should be able to run but might end without cleaning/with some errors, but this is expected as we are interrupting the flow by sleeping in the middle of execution while the go context is still counting down.
SSH is supposed to go through at step 14 however no host found error is encountered.

Logs
Logs extracted are attached as a gist.

Notes
Currently, we support only Ubuntu 18 (x86) bare-metal hosts, however
we encourage the users to reports Issues that appear in different settings.
We will try to help and potentially include these scenarios into our CI
if given enough interest from the community.

@BenjaminChun BenjaminChun added the bug Something isn't working label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant