Skip to content

[Bug] example rootfs incurs 5s DNS lookup delay #5512

@hanwen-flow

Description

@hanwen-flow

Describe the bug

Following the instructions at https://github.com/firecracker-microvm/firecracker/blob/main/docs/getting-started.md, I successfully booted up a FC VM, with enabled network.

However, all DNS lookups take 5 seconds,

root@ubuntu-fc-uvm:~# time curl -I http://google.com
HTTP/1.1 301 Moved Permanently
...
X-Frame-Options: SAMEORIGIN


real	0m5.105s

To Reproduce

  1. Start Firecracker via the ubuntu-24.04 recipe listed on docs/getting-started.md. (including configuring 8.8.8.8 as resolver)
  2. try ping google.com. Observe a long delay before results are printed.

Expected behaviour

immediate response

Environment

  • firecracker v1.13.1
  • Host kernel 6.8.0-87-generic , guest kernel 6.1.141
  • Rootfs used: ubuntu-24.04
  • Architecture: x64
  • Any other relevant software versions:

Additional context

it makes my integration tests run slower

run a workflow that involves downloading things

I know that parallel ipv4 and ipv6 DNS lookups can cause problems if ipv6 isn't configured correctly. That would make it a problem of the example root image, but it might still be of interest to fix. I tried disabling ipv6 in the kernel, but it didn't help.

Checks

  • [x ] Have you searched the Firecracker Issues database for similar problems?
  • Have you read the existing relevant Firecracker documentation?
  • Are you certain the bug being reported is a Firecracker issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Awaiting authorIndicates that an issue or pull request requires author actionType: BugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions