-
Notifications
You must be signed in to change notification settings - Fork 17
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
New http_directory setting seems to break boot_wait #76
Comments
This is likely caused by this branch of code: packer-plugin-tart/builder/tart/step_run.go Lines 124 to 134 in 9ddd019
If you use You can set |
That would seem to explain the behaviour I'm seeing, but I've used
so I think either I'm missing something or there is something more that needs to be done here. Is it possible this is just some logic or optimization problem in the tart packer plugin itself since the VirtualBox packer plugin seems to have solved this? Also, isn't the host IP usually the same IP each time, usually the first or second IP on the VM network. For example, I had created an alternative config where I was running my own web server locally and passing this to the tart VM:
which I'd reverse engineered from tty2 console on a tart VM itself and this worked consistently for me... I just tried setting in the pkr.hcl:
and the whole VM just hangs for 18 minutes so far: $ packer build --force ubuntu-arm64.tart.http.pkr.hcl
ubuntu-22.04.tart-cli.ubuntu: output will be in this color.
<no_output> |
After leaving it for over an hour it was still stuck. Do I commented out the
It looks like it failed to detect the host IP after a long period and missing the boot loader countdown
perhaps this is why it's hanging and not sending the |
This is probably because the interface with I think you can fix this by binding to the IP-address that your macOS machine got from your LAN/WLAN, for example:
Note that this will make your HTTP server available from the LAN too. |
Regarding the root cause, do I understand correctly that even if you increase the |
So I tested setting the The only downside is that being a DHCP address, this is not a permanent solution to packer configs on github which will need to run across machines of unknown IP addresses, run by people on the internet or shared with colleagues etc. I mean I could easily script a search and replace of the local machine's IP address but it'd be such an ugly hack... aside from exposing the autoinstaller containing hashed passwords on the LAN... |
How would I set Ubuntu's AutoInstall isn't triggered because the keystrokes aren't sent and besides grub bootloader happens before autoinstaller... Apologies if I'm missing something simple there. |
When enabling
http_directory
in #75 it seems to breakboot_command
- the keystrokes aren't sent through to control the boot for 30 seconds which is too late, despiteboot_wait = "5s"
being set.I wonder if it's because of this line:
https://github.com/cirruslabs/packer-plugin-tart/pull/58/files#diff-ca2528fec399d3e12f23b8a1dbe42423edb6ac4e0b6f414d101cb2b14497a562R55
The text was updated successfully, but these errors were encountered: