Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Unable to access MMDS from inside guest OS #942

Open
chrisyalamov opened this issue Aug 2, 2022 · 0 comments
Open

Unable to access MMDS from inside guest OS #942

chrisyalamov opened this issue Aug 2, 2022 · 0 comments

Comments

@chrisyalamov
Copy link

I'm not sure if this question is best suited to this repository or firecracker-microvm/firecracker but I'm hoping someone might be able to help out.

Using the socket (in /var/lib/firecracker/vm/{vm-id}/firecracker.sock, I'm able to successfully write to the metadata store. However, attempting to access this from inside the guest OS isn't behaving as expected.

Following Firecracker's MMDS Version 2 user guide, I've tried to obtain a session token by hitting the /latest/api/token endpoint:

curl -X PUT "http://169.254.169.254/latest/api/token" \
      -H "X-metadata-token-ttl-seconds: 21600"

which returns a 405 - Method Not Allowed error and the response body states that only GET and HEAD methods are allowed.

I tried following the Version 1 instructions instead, but I seem to get a 404 - Not Found error with this.

I'm able to hit some other endpoints (like GET / and GET /machine-config), so it's clear that the internal Firecracker API is functioning— does anyone know if there's a way to get the data from MMDS?

Possibly related issues/PRs:
#77 #132

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant