Code Monkey home page Code Monkey logo

Comments (2)

edigaryev avatar edigaryev commented on June 22, 2024

I don't quite understand why.

Because there's no SSH when the VM is running in the recovery mode, and thus no provisioning capability

If we were to run the VM multiple times in a single packer build (let's say first with --recovery, and then without), it would be hard go grasp to which stage the boot_command and other configuration options will apply.

This is the reason we have a separate Packer configuration solely for disabling SIP, for example.

from packer-plugin-tart.

roblabla avatar roblabla commented on June 22, 2024

Because there's no SSH when the VM is running in the recovery mode, and thus no provisioning capability

Sure, but it's possible to reboot from recovery mode into normal mode, and have ssh from there. My boot_command does that, and I was very surprised when the provisioners weren't being run. I find the current behavior way more surprising, because my expectation is that packer will always try to run the provisioners 👀.

At the very least, I think this deserves to be documented somewhere (like here), because right now it's just a complete head-scratcher without reading the source ^^'.


For my use-case, I'm toying with the idea of making a custom provisioner that reboots the VM in recovery mode, does its shenanigans over VNC, and reboots it back to normal, essentially moving from having recovery: true in the builder to having a proper provisioning step that can be inserted with any other.

from packer-plugin-tart.

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.