geerlingguy / packer-ubuntu-1404 Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Home Page: https://app.vagrantup.com/geerlingguy/boxes/ubuntu1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Home Page: https://app.vagrantup.com/geerlingguy/boxes/ubuntu1404
See related: geerlingguy/packer-boxes#11 (comment)
The newest version on https://vagrantcloud.com/geerlingguy/boxes/ubuntu1404 hangs when trying to load the HGFS module in vagrant, and never completes.
Because is a dynamic drive, something bigger, like 80GB would make more sense...
It looks like there was a bug in VB 5.0.0 that caused the paravirtualization provider to not be set properly when a box was exported. In the latest VB (5.0.2+) and Packer, it should set KVM explicitly, as it's the new default.
But if not, I'd like to add the configuration to the Packer config explicitly (see this Google Groups thread), because it would be nice to be able to revert geerlingguy/drupal-vm#212 and save a line of VirtualBox config.
See related: geerlingguy/packer-centos-6#15
Basically, Ubuntu 14.04's apt repos ship with a version of Python too old to support SNI. Easiest fix since 14.04 is so old and I don't want to try to replace system Python with something more advanced is to pass the -c
option to the ansible-galaxy
command like so:
"galaxycommand": "ansible-galaxy -c"
Since I haven't updated that box, nor even have Fusion anymore... I am not willing to maintain support for it in this project.
See, as an example: chef/bento@dbc16e9#diff-d14eea22fcac79c40f38dc6533c28999
This should be done here and in the other three Packer projects I maintain.
See: Error Waiting for HGFS kernel module to load
during vagrant up --provider=vmware_fusion
. This seems to be a problem with both this and the 12.04 version of the Packer-built box, and only occurs when using native shared folders (the problem goes away when using NFS).
It looks like the HGFS issue might be resolved, so I'm going to do some testing. See related: geerlingguy/packer-boxes#5
For the VMware Fusion box (at least), I get the following when performing apt commands inside the generated box:
The following packages were automatically installed and are no longer required:
libyaml-0-2 python-crypto python-httplib2 python-jinja2 python-markupsafe
python-paramiko python-pkg-resources python-support python-yaml sshpass
Use 'apt-get autoremove' to remove them.
It is available.
Hi, I used your build as a template for my own purposes.
I ended up reducing the boot command to the following:
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz",
" auto=true",
" priority=critical",
" initrd=/install/initrd.gz",
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" -- ",
"<enter>"
],
and putting the following in my preseed.cfg
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/layoutcode string us
Results are the same as your current configuration but pushes the decision to the preseed.cfg which is easier to maintain/manage.
Cheers!
PS Thanks for the great template to get me started! I've never used Ubuntu before.
Do it to it! http://releases.ubuntu.com/14.04/
I'm opening an issue here but it can be related to ansible-role-packer-debian.
I've updated the ubuntu1404.json to the newest iso
"iso_urls": [
"iso/ubuntu-14.04.5-server-amd64.iso",
"http://releases.ubuntu.com/14.04/ubuntu-14.04.5-server-amd64.iso"
],
"iso_checksum_type": "sha256",
"iso_checksum": "dde07d37647a1d2d9247e33f14e91acb10445a97578384896b4e1d985f754cc1",
and try build vmware box.
I receive an error
vmware-iso: TASK [geerlingguy.packer-debian : Run the VMware tools installer.] *************
vmware-iso: fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "/tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default", "delta": "0:00:00.075623", "end": "2017-05-20 06:33:49.173368", "failed": true, "rc": 1, "start": "2017-05-20 06:33:49.097745", "stderr": "", "stderr_lines": [], "stdout": "The installer has detected an existing installation of open-vm-tools packages \non this system and will not attempt to remove and replace these user-space \napplications. It is recommended to use the open-vm-tools packages provided by \nthe operating system. If you do not want to use the existing installation of \nopen-vm-tools packages and use VMware Tools, you must uninstall the \nopen-vm-tools packages and re-run this installer.\nThe packages that need to be removed are:\nopen-vm-tools\nThe installer will next check if there are any missing kernel drivers. Type yes\nif you want to do this, otherwise type no [yes] \n\nFor kernels >= 4.0.0, the open-vm-tools packages need to be of version 10.0.0 \nor higher for VMware Host Guest Filessystem (vmhgfs) to function with VMware \nTools. Please upgrade open-vm-tools packages and rerun this installer, or \nuninstall open-vm-tools packages. Alternatively, you can disable using vmhgfs \nwhen VMware Tools are configured.\n\nEnter yes to proceed. [no] \n\nExecution aborted.", "stdout_lines": ["The installer has detected an existing installation of open-vm-tools packages ", "on this system and will not attempt to remove and replace these user-space ", "applications. It is recommended to use the open-vm-tools packages provided by ", "the operating system. If you do not want to use the existing installation of ", "open-vm-tools packages and use VMware Tools, you must uninstall the ", "open-vm-tools packages and re-run this installer.", "The packages that need to be removed are:", "open-vm-tools", "The installer will next check if there are any missing kernel drivers. Type yes", "if you want to do this, otherwise type no [yes] ", "", "For kernels >= 4.0.0, the open-vm-tools packages need to be of version 10.0.0 ", "or higher for VMware Host Guest Filessystem (vmhgfs) to function with VMware ", "Tools. Please upgrade open-vm-tools packages and rerun this installer, or ", "uninstall open-vm-tools packages. Alternatively, you can disable using vmhgfs ", "when VMware Tools are configured.", "", "Enter yes to proceed. [no] ", "", "Execution aborted."]}
vmware-iso: to retry, use: --limit @/tmp/packer-provisioner-ansible-local/591fe151-7d7a-f700-ac81-1ae7390add50/main.retry
vmware-iso:
I tried find in which step the open-vm-tools packages is installed to prevent it but without success.
When I initialized unattended installation of Ubuntu - using boot parameter and preseed.cfg file open-vm-tools were not installed.
I don't understand :-(
Can you look on this too? Thank you.
I'd like to get this box updated as soon as possible; other boxes can wait for now.
Basically, validate the script to build the box, similar to what bento does: https://travis-ci.org/opscode/bento/builds/24882721
I have some roles in my private git instance. I've tried multiple ways to define the git repo w/ oAUTH keys for example and have been unsuccessful. How do you authenticate with a private git repo with Ansible galaxy
Hi Jeff,
We're switching to vmware as a provider for performance reasons. I tried to install your drupal-dev-vm, which currently points to https://atlas.hashicorp.com/geerlingguy/boxes/ubuntu1404, but that only offers the virtualbox provider. I'm not sure what it would take to support another provider, or if this repo is the one that you deploy to the Atlas, but if it's not difficult to support vmware, I'd love you to add it.
Thanks!
When I try and vagrant up --provider=vmware_fusion
with the following Vagrantfile: https://github.com/NuCivic/ansible-dev-vm/blob/move-to-geerlinguy140/Vagrantfile
I get:
$ vagrant up --provider=vmware_fusion
Bringing machine 'devbox' up with 'vmware_fusion' provider...
==> devbox: Box 'geerlingguy/ubuntu1404' could not be found. Attempting to find and install...
devbox: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
devbox: Box Version: >= 0
==> devbox: Adding box 'geerlingguy/ubuntu1404' (v0) for provider: vmware_desktop, vmware_fusion, vmware_workstation
devbox: Downloading: https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
The box you attempted to add doesn't match the provider you specified.
Provider expected: vmware_desktop, vmware_fusion, vmware_workstation
Provider of box: virtualbox
It says the provider of the box is virtualbox, even I I use the URL http://files.midwesternmac.com/boxes/VMware-ubuntu1404-104.box
Any idea what the issue is? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.