Skip to content
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

Example Linux Packer build VNC timeout and Failure to halt on interrupt #40

Closed
tomjn opened this issue Dec 26, 2022 · 1 comment · Fixed by #66
Closed

Example Linux Packer build VNC timeout and Failure to halt on interrupt #40

tomjn opened this issue Dec 26, 2022 · 1 comment · Fixed by #66
Assignees

Comments

@tomjn
Copy link

tomjn commented Dec 26, 2022

While attempting to build the linux example to see what the output was I encountered an issue where it was waiting for VNC credentials that never arrived.

I tried to cancel the action via cmd+c and it printed cancelling build after recieving interrupt, but was frozen. I had to kill the process in activity monitor before packer could continue

packer-plugin-tart/example on  main 
❯ packer init ubuntu-22.04-vanilla.pkr.hcl 

packer-plugin-tart/example on  main 
❯ packer validate ubuntu-22.04-vanilla.pkr.hcl
The configuration is valid.

packer-plugin-tart/example on  main 
❯ packer build ubuntu-22.04-vanilla.pkr.hcl
tart-cli.tart: output will be in this color.

==> tart-cli.tart: Creating virtual machine...
==> tart-cli.tart: Starting the virtual machine for installation...
==> tart-cli.tart: Waiting for the VNC server credentials from Tart...
Cancelling build after receiving interrupt
Build 'tart-cli.tart' errored after 2 hours 13 minutes: unexpected EOF

==> Wait completed after 2 hours 13 minutes
Cleanly cancelled builds after being interrupted.

packer-plugin-tart/example on  main took 2h52m8s 
❯ 
@tomjn
Copy link
Author

tomjn commented Dec 26, 2022

I suspect there's a missing step that isn't documented or assumed is too obvious to mention, possibly that I need ISO images that weren't mentioned? If that's the case then packer should have failed at an earlier step but doesn't, and I should still be able to cancel the build.

I already had issues trying to figure out what to do as using . resulted in lots of errors, I was only able to proceed by explicitly using the ubuntu HCL file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants