You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patching resolv.conf is undesired because I plant to mount a readonly rootfs in production and having working boot_args would be great but I think I can workaround this during preparation of the rootfs.
Checks
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? => no
The text was updated successfully, but these errors were encountered:
Network configuration via the kernel command line is not a firecracker feature but a (guest) kernel feature. If it works correctly, the kernel writes the DNS resolvers into /proc/net/pnp. To actually make use of this information, you would need to make /etc/resolv.conf a symlink to /proc/net/pnp (or otherwise get the content into resolv.conf).
Firecracker's documentation on the topic is a little thin. The kernel documentation (on nfsroot, of all things) has more information.
Hi @Seikilos . Thanks for reporting the issue. Setting the nameserver via boot_args does indeed not work for the rootfs we use. We have removed the approach from the docs: #5214 . Users would need to use alternative ways to set it, perhaps like the one @s-hamann kindly suggested. Please let us know if you believe we can do something else on our side.
@kalyazin I've been preparing the rootfs anyway so I patched resolv.conf along the way. So yes, this fixes it.
The symlink solution is something I will keep in mind.
So feel free to close this issue, or prioritise it lower, or update the documentation on this topic.
(Actually updating the docs with a small hint seams reasonable in any case :) )
Describe the bug
I configured working firecracker jailed instance but passing a dns entry to
boot_args
has no effect.ping google.com
fails.To Reproduce
Used below config to start jailed firecracker:
./jailer --id $VM_ID --exec-file ./firecracker --uid $USER_ID --gid $GROUP_ID --netns /var/run/netns/$NET_NS -- --config-file fc-config.json
Used this configuration for the vm:
Entered the vm and typed
ping google.com
Pinging an IP works:
Patching the nameserver into
/etc/resolf.conf
works:It appears that either I misunderstood what the advanced network config section here is doing for DNS or there might be a bug. 🤷
Expected behaviour
Passing a DNS IP via boot_args should make dns resolution work
Environment
Additional context
Patching resolv.conf is undesired because I plant to mount a readonly rootfs in production and having working boot_args would be great but I think I can workaround this during preparation of the rootfs.
Checks
The text was updated successfully, but these errors were encountered: