Skip to content
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

Network issues with aarch64 on rpi board config #57

Closed
tweidinger opened this issue Oct 1, 2020 · 2 comments
Closed

Network issues with aarch64 on rpi board config #57

tweidinger opened this issue Oct 1, 2020 · 2 comments

Comments

@tweidinger
Copy link
Contributor

tweidinger commented Oct 1, 2020

Hi, first of all thanks for this plugin as it saved me a lot of hours before.

Currently I am setting up a raspberry pi 4 and got confronted with multiple issues.
Reference issues are in this repo: #16 in the solo-io repo: solo-io/packer-plugin-arm-image#58 solo-io/packer-plugin-arm-image#50 I found there was a workaround implemented
but this seems to be not the case in this repo.

The problem is affecting the discussed issue of using the provisioning to update
the system with network access.
I used https://github.com/mkaczanowski/packer-builder-arm/blob/master/boards/raspberry-pi-3/archlinuxarm.json as a reference.

    arm: nameserver 8.8.8.8
==> arm: error: failed retrieving file 'core.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org
==> arm: error: failed to update core (invalid url for server)
==> arm: error: failed retrieving file 'extra.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org
==> arm: error: failed to update extra (invalid url for server)
==> arm: error: failed retrieving file 'community.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org
==> arm: error: failed to update community (invalid url for server)
==> arm: error: failed retrieving file 'alarm.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org
==> arm: error: failed to update alarm (invalid url for server)
==> arm: error: failed retrieving file 'aur.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org
==> arm: error: failed to update aur (invalid url for server)
==> arm: error: failed to synchronize all databases
==> arm: error while running provision hook: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]
==> arm: optional `fuser -k` failed with exit status 1:
Build 'arm' errored after 25 seconds 349 milliseconds: build was halted

I printed the content of /etc/resolv.conf while provisioning and got the nameserver 8.8.8.8 result.
When trying to ping any domain I get arm: /usr/bin/ping: google.com: Temporary failure in name resolution.

I tried to implement workarounds with using the strategy from the solo-io repo and did manual mounts, without mounting the resolv.conf and instead mounting /run/systemd as additional mount. This gave me the same error.
Host sytem: Archlinux 5.7 kernel inside kvm.
Internet access on host system is working.

Any ideas to proceed?

@mkaczanowski
Copy link
Owner

I can repro this locally, so smth had to change...

I am wondering if this is qemu update, libc or kernel. Interestingly it works fine for beaglebone:

sudo packer build boards/beaglebone-black/archlinuxarm.json

I'll have to do some troubleshooting

@mkaczanowski
Copy link
Owner

mkaczanowski commented Oct 16, 2020

The issue is gone with latest Archlinux update.

I've added the Vagrantfile to help troubleshoot further (often platform-specific) issues: ca89d63

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

No branches or pull requests

2 participants