Comments (2)
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.
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)
- Support for Remote Builds HOT 1
- Attaching additional disks during build HOT 3
- VNC password is not printed in debug log
- No cleanup after failure HOT 7
- Fails after VM start with "Failed to lock auxiliary storage" HOT 5
- PACKER_HTTP_ADDR is unset for shell provisioner
- Duplicated code between step_run and step_create_linux_vm HOT 3
- macOS 12 VM does not respond to VNC input HOT 3
- 2.7.0 crashes when trying to use via packer HOT 8
- Software Update doesn't work in VMs from tart packer plugin HOT 2
- Cannot extend the image with "Error: -69519: The target disk is too small for this operation" HOT 3
- Keyboard layout problem with boot_command HOT 2
- Occasional Timeout waiting for SSH HOT 1
- Document new http file serving example
- IPSW data source HOT 2
- Tart push post processor
- Plugin version 1.5.3 breaking on disk resize
- Allow --resolver option when getting VM's IP HOT 1
- `{{ .HTTPIP }}` and `{{ .HTTPPort }}` are substituted as `<no value>` in `boot_command` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-tart.