-
Notifications
You must be signed in to change notification settings - Fork 200
Error with quickstart and suggestion on docker dependency #472
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
Comments
This is the last command that worked in the quickstart.
System details (on Packet/Equinix Metal)
I could run the rest of the commands, but then the
Running the commands again gave: https://gist.github.com/alexellis/e9d0671e4c9602fca598d7cc9f4f58c7 Would someone from the team be able to make a suggestion? |
Here are the equivalent setup instructions for Ubuntu for the initial setup of Docker and Go 1.15. curl -4 -o go.tgz -SL https://golang.org/dl/go1.15.8.linux-amd64.tar.gz
mkdir /usr/local/go
tar -xvf go.tgz --strip-components=1 -C /usr/local/go
sudo apt update && sudo apt install -qy make git curl e2fsprogs util-linux bc gnupg
export PATH=$PATH:/usr/local/go/bin
sudo usermod -aG docker $(whoami)
curl -sLS https://get.docker.com | sh
sudo apt install build-essential -qy The rest should be identical from This quick start for firecracker itself did work, despite the issues I had above with firecracker-containerd https://github.com/firecracker-microvm/firecracker/blob/master/docs/getting-started.md#running-firecracker |
Sorry for the confusion. If you just want to build firecracker-containerd, you can do that without Docker. However the root filesystem creation and automated test related targets depend on Docker right now. |
@kzys I installed Docker, but as you can see there are vsock errors after following the instructions with Ubuntu. I appreciate you responding, but this doesn't unblock me. Can you verify that this project is functioning on Ubuntu Linux? |
Hey @alexellis!
The quickstart is designed to let you build and run on the same Linux host where you're testing Firecracker. We use separate binaries to avoid conflicts with Docker. I looked in the gist you provided and found this line, which looks to be the relevant culprit:
It looks like the agent binary was not built with the Can you try rebuilding the image and reinstalling it to the correct location (should be You might also find the getting started guide to be helpful as it steps through the requirements in more detail. It's late for me here, but I'm happy to help more in the morning (my time). Sam |
Thanks for the pointers. I just followed the quick-start verbatim, with the modification for a newer Docker CE version and a newer Golang version. When running this step, I get the following error:
|
Running this block gave me an error again, just like when I did this with Ubuntu Linux. I have a feeling that the instructions are not complete or are missing a step.
|
After re-running several of the commands I got a VM to launch through This message was printed out by containerd, but I don't know if it's an error
|
That's great. I think the getty one is fine. Let me take a look. Regarding your previous comments;
|
FYI, the getty error is fixed in master. Thanks for reporting! |
🙏 thank you I'm having issues with CNI, I had hoped to find a quickstart that I could drop in and use with the faasd code. I would appreciate some pointers or examples. I tried to create a minimal example that someone on the team can run to see the issues with using CNI and the PID netns (the PID isn't found because it appears to be from the VM, and not readable from where containerd is running on the host) Thanks to @samuelkarp for giving some pointers on Slack. I'm at a bit of a dead-end now though. |
When you said:
Could you provide those (tested) instructions in the repository? The quick start mandates the use of Docker https://github.com/firecracker-microvm/firecracker-containerd/blob/main/docs/quickstart.md As a side-note, can firecracker work with a newer version of Go than 1.13 (which is used in the quickstart)? |
Hitting the same issue, I found what the culprit might be. The getting started guide gives commands that for the majority of the tasks executes on the host machine. If passed the There lies the catch, for the build of agent, |
Hi @alexellis, since you closed this ticket, should I abandon my pull request ? |
There are two things this issue is about:
I was chatting to @estesp about trying to get faasd (based upon containerd) to work with firecracker, however I was surprised to see that Docker is required to do a build of the containerd binary.
Quite often Docker and containerd ship with different binaries that aren't compatible, so is the idea that I should build on my workstation and copy over to a server which has a stand-alone version of the tools on it?
I'd much prefer being able to build then deploy to the same Linux host where I'll be testing out firecracker. This indirection is causing some friction and confusion for me.
Hope this is useful feedback on some level.
The text was updated successfully, but these errors were encountered: