Code Monkey home page Code Monkey logo

Comments (4)

ctberthiaume avatar ctberthiaume commented on June 17, 2024 1

@Geogboe The SSH issue is a separate problem that can affect Ubuntu 20.04 installs using any method of providing cloud-init config files. The Ubuntu subiquity installer starts an SSH server during the install process. Packer attempts to connect to this server, but is unsuccessful because the server doesn't have access to the user created on the newly installed system. Once the system reboots Packer can successfully log in with the installed user.

Last month there were enough retry attempts for Packer to wait out the install process without exiting early. I think the increase in security updates to install in Sep and Oct (the last step in the install process) increased the install time to a point where more SSH retry attempts are now required.

Back to the issue at hand, I still have not been able to use cd_content successfully, although for my purposes this isn't so critical as I moved to using http_contentinstead (just had to figure out that ip=dhcp is required in the boot command).

from packer-plugin-virtualbox.

vrevelas avatar vrevelas commented on June 17, 2024

I was also having this issue with Packer 1.7.4, but it seems to be fixed in 1.7.6?

from packer-plugin-virtualbox.

ctberthiaume avatar ctberthiaume commented on June 17, 2024

@vrevelas I just repeated the test with 1.7.6 and still get the same behavior.

One note on the original tests, for some reason now I need to increase SSH handshake attempts and SSH timeout to successfully build the image with cd_files. Not sure what has changed on my end to cause that.

ssh_handshake_attempts = "200"
ssh_timeout = "30m"

from packer-plugin-virtualbox.

Geogboe avatar Geogboe commented on June 17, 2024

@ctberthiaume Strangely, I saw the same issue with the hyper-v builder so it looks like these new plugins may be importing the same bug -- which seem to just be that cd_content wasn't declared in the interface.

While there seems to be a fix: #35 when I built the plugin from source it still doesn't work for me. So were you able to get it to work just by modifying your ssh values?

from packer-plugin-virtualbox.

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.