-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Packer VirtualBox builds failing under macOS High Sierra 10.13.2 #35
Comments
So super strange thing, too...
Then it proceeds with installation and gets ready for the preseed file... so something's going funny with the interpretation of the keycodes, but only when they come from Packer. Maybe my terminal environment is jacking up the text somehow?? |
I'm dropping my own .bash_profile customizations in a new shell, and will see if this makes any difference. Could there be some other text encoding going on between Packer and the shell? |
Don't know if this is related in any way, but hashicorp/packer#2855. I'm switching way back to Packer 0.12.2, which I know has worked on this particular computer in the past, and will see if there's any positive difference. Next test will be running the exact same config on my personal laptop (same config, same OS, different hardware). And if that doesn't work, I'll try it on Fedora. If that doesn't work, Windows... gotta find somewhere this works. |
Also, right when the commands are passed, while watching Apple's Console app, I see the message:
And a second before that some messages like:
And interestingly, a few of these:
Then a little later,
|
Trying Packer 1.1.3 with Virtualbox latest dev build 5.2.97 (119762 - from https://www.virtualbox.org/wiki/Testbuilds) |
Hmm, found this in the VirtualBox log (in the VM folder, in my case
Found https://www.virtualbox.org/ticket/8058, but it doesn't seem necessarily related... checking all the created VM settings seems to indicate things are set up correctly. Edit—here is the entire log for the moment when Packer sends across its VBoxManage commands:
And here is the same log, for when I execute the command myself:
Diff:
Nothing interesting there; though running both 1c and 9c resulted in the exact same on-screen behavior as I noticed when Packer ran it. I'm going to try just 1c (return key down, without the up) and see if it's any different. |
Strange, if I just hit 1c... but not 9c, then the install starts going—but I think that's because it keeps hitting enter on the 'install ubuntu' screen then every dialog that comes afterwards. Okay, changing the game a bit and will try on another computer. |
Welp. Ran it on my personal laptop. Same exact versions of everything... and no issues whatsoever. I wonder if the work laptop has some sort of networking or other kind of proxying system installed that's screwing with commands and VirtualBox? Maybe some cache somewhere? Well, since I can't reproduce this issue on another computer, I'm probably going to wipe my work laptop and reinstall. Probably faster to do that (~3-4 hours, all automated) than debug exactly where this error is coming from. |
Hello, did you manage to resolve this problem? Also noticed packer slowness. Might it be due to meltdown and spectre patches or something like that? |
So, super strange thing: I can't build this box—or any of my other Debian/Ubuntu boxes, for that matter—on my work laptop, running macOS 10.13.2. So far I've only debugged on that laptop, running both VirtualBox 5.2.4 and VirtualBox 5.1.30, along with both Packer 1.0.3, and 1.1.3.
For some reason, Packer itself is really slow no matter the version, so I'm wondering if there's something on the system hindering the build.
The
boot_command
was highly suspect (Ubuntu's always done weird things with it anyways...), because for some reason in one case the installer would drop to a blank screen (nothing on it), and then eventually it would drop back to language selection.In other cases (playing with the
<esc><wait><f6><wait>
etc game in the beginning of theboot_command
), I would get a popup for 'exit to the console installer' over and over again. Very odd behavior.So using
PACKER_LOG=1 packer build --only=virtualbox-iso ubuntu1604.json
, I found that just using the followingboot_command
:I would get the following output in the console on my host:
...but when switching off headless mode (so I could see the GUI), here's what I saw:
The text was updated successfully, but these errors were encountered: