Comments (13)
I ran into this problem just now. I noticed that when vagrant is typing out the preseed url for xenial, the url gets a line split after the ub
, so that the url is broken. The line split doesn't happen on precise. I can take a screencap if you want. Hope that helps your debugging.
from packer-build.
I haven't had much opportunity to look at this yet--your help is very much appreciated. At first glance, this would appear to be an issue with Packer itself rather than the templates. It may be possible that this bug has already been fixed in the 5+ months between Packer 0.8.6 and Packer 0.9.0. I am somewhat doubtful that the problem lies in the ubiquity installer on wily and xenial.
I currently use VirtualBox 5.0.14 on Mac OS X (El Capitan), VirtualBox 4.3.36 on Linux (Debian 8.x) and qemu-kvm 2.1.2 on Linux (Debian 8.x) for testing.
from packer-build.
Oh, I did confirm that the "ubuntu.seed" file (or whatever it was named; look in the preseed folder) packed inside the official Wily and Xenial server amd64 ISO files is identical to the ones that I am using (plus my added customizations).
from packer-build.
I just tried this using qemu-kvm and the same newline after "ub" occurred there too for Wily.
from packer-build.
My versions are VirtualBox 5.0.8r103449 and Vagrant 1.8.1 on OSX, haven't tried this on Linux yet. I've got some errands to run, but I might be able to building packer from source to see if that fixes things.
from packer-build.
Sounds good.
Typing in the boot command manually results in the same failure so maybe it is something else.
from packer-build.
Hey @tylert, do you have a WIP branch that resolves #4? I just built a new packer, and I figured I'd check with you before trying to update the xenial.json myself.
Of course, if you think that your manual test shows that the bug is upstream Ubuntu, maybe the bug isn't actually in Packer? Think I should hold off on further testing for now?
from packer-build.
Issue #4 is mostly since I am waiting for precisely 1 new Packer feature to enter the mainline stable version--to stop it from renaming the ISOs that it downloads; For me, the hashed filenames are not optimal--I want the original filenames preserved. If you also want this functionality, you may pull my "foo" branch and use that. Otherwise, you may perform all your Xenial tests for issue #2 against the "master" branch. I didn't have much luck getting HEAD of Packer to work correctly when I tried last week but you may have more luck than me.
My quick-and-dirty initial manual tests above were simply to fire things up using packer, let it try and fail to send the key presses and then to jump in at the keyboard to type them in again (using the packer template boot command string as a guide). I think we can rule out the issue being in the virtualbox-iso or qemu packer builders themselves, however, it doesn't mean the problem isn't elsewhere in the packer code (i.e.: the code responsible for sending the keypresses or the code that sends the file over http perhaps). I only confirmed that the Wily ubiquity installer seems to behave the same when using packer + qemu and packer + vbox.
A better test might be to make the "base-64.seed" preseed file available via http (perhaps using the sow.py python script provided) and to attempt to bypass packer completely to try to rule that out. As in, get VirtualBox to boot the wily server ISO + manually type in the boot command string to fetch the preseed file over http. If you don't have a quick way to do this, you may do so if you have Python installed by typing:
cd packer-build
./sow.py
Anyway, thanks for taking the time to help out.
from packer-build.
Well, ok, this would actually appear to be a regression in the Ubuntu installer...
- https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1505839
- https://bugs.launchpad.net/bugs/1537252
- boxcutter/ubuntu#22
The workaround/fix is to change the boot_command string to stop it from dropping to text mode interface and use the F6 append string to send it a crap ton of "bs" keypresses instead before sending it the normal boot strings.
from packer-build.
Fixed in master.
from packer-build.
Hey @tylert, thanks for the update! And thanks for maintaining a tool that does exactly the thing I need :)
from packer-build.
Heh... Glad somebody is using it :)
from packer-build.
Specifically, this is fixed by 32d9faa
from packer-build.
Related Issues (20)
- ubuntu/xenial/base-uefi.json freezes on GRUB menu HOT 3
- UEFI Booting on VirtualBox HOT 2
- gpus? HOT 1
- vagrant-libvirtd: possible hint HOT 1
- Bionic fails to build with Packer HOT 1
- Post-processor build failure on bionic HOT 3
- Crash with Bionic Beaver and Packer 1.2.4 HOT 3
- Build failed running post-processor: shell-local HOT 3
- Packer fix error (when running with packer 1.4.2) HOT 2
- Missing qemu.sh and vbox.sh HOT 1
- LUKS unattended builds do not complete automatically HOT 6
- Thanks for the inspiration! HOT 1
- Error getting SSH address 500 QEMU guest agent is not running HOT 3
- [preseed debian] Skip past "Force UEFI Install" installer prompt HOT 1
- qemuargs build options HOT 4
- [DEBUG] SSH handshake err
- Templating of external files is not yet complete in conversion from YAML to HCL HOT 14
- Debian UEFI build HOT 4
- 'packer validate' throws errors HOT 4
- Errors in building packer 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-build.