Closed hurtadosanti closed 7 months ago
I resolved the issue by adding the missing kernel modules to support the nat translation. I used the script https://github.com/moby/moby/blob/master/contrib/check-config.sh from the Moby project to identify and address the specific modules needed for the kernel, I based my work on this https://git.yoctoproject.org/meta-virtualization/tree/recipes-kernel/linux/linux-yocto/docker.cfg?h=kirkstone.
Additionally, I consulted the yocto documentation https://docs.yoctoproject.org/4.0.16/kernel-dev/common.html#configuring-the-kernel to append the linux-yocto kernel fragment for the qemu kernel settings.
Furthermore, the documentation shared by @TheYoctoJester at the Mender hub was invaluable in this context, https://hub.mender.io/t/adding-docker-and-docker-compose-to-a-yocto-build/6078.
Describe the bug After configuring
iotedge
on a new image, the connectivity checks fail for the<name>.azure-devices.net
on ports 5671 and 443. The host and a standard container can resolve<name>>.azure-devices.net
successfully. However, within a container based on the image: mcr.microsoft.com/azureiotedge-agent:1.4 the fqdn cannot be resolved.To Reproduce Steps to reproduce the behavior:
iotedge config mp --connection-string "connection string"
iotedge config apply -c '/etc/aziot/config.toml'
iotedge check
Expected behavior Most of the checks should have succeeded and the device should have a Runtime Response different than NA.
Logs
Build System (please complete the following information):
Target System (please complete the following information):
Additional context
From inside the container the /etc/resolv.conf contains: