Giter Site home page Giter Site logo

Comments (5)

meringu avatar meringu commented on August 16, 2024 2

Looks like my problem was due to the /etc/resolv.conf file being symlinked to /run/systemd/resolve/stub-resolv.conf, however the /run/systemd was missing entirely.

When my raspberry PI is booted, /run/systemd is present, but not when using this packer builder for some reason.

I mounted the /run/systemd folder with the chroot_mounts option, by adding ["bind", "/run/systemd", "/run/systemd"] to the default options.

After this, my resolv.conf was linked up again, and DNS was working.

@gianlazz, I'd recommend checking out the state of your /etc/resolv.conf file, as it could be the reason your DNS resolution isn't working.

from packer-plugin-arm-image.

gianlazz avatar gianlazz commented on August 16, 2024

Actually the mirrors seem to resolve just fine on my machine but rather that the emulated pi image doesn't seem to be able to connect to the internet.

from packer-plugin-arm-image.

yuval-k avatar yuval-k commented on August 16, 2024

this builder works by creating a chroot environment - is there any reason for chroot environment on your machine to no have network access?

from packer-plugin-arm-image.

meringu avatar meringu commented on August 16, 2024

I'm getting a similar issue in Ubuntu pre-installed for Pi. Ubuntu recommend mounting the resolv.conf in these docs: https://help.ubuntu.com/community/BasicChroot Is this something that could help in this case?

from packer-plugin-arm-image.

yuval-k avatar yuval-k commented on August 16, 2024

closing as answered. added additional_chroot_mounts to make this use case easier.

from packer-plugin-arm-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.