Git Product home page Git Product logo

packer-centos-6's Introduction

Packer Build - CentOS 6 minimal Vagrant Box

DEPRECATED: This Packer build has been moved to a new consolidated project: https://github.com/geerlingguy/packer-boxes

The public box is still available and updated on Vagrant Cloud: geerlingguy/centos6, but the build configuration has been moved to the consolidated project.

packer-centos-6's People

Contributors

davidwittman avatar geerlingguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

packer-centos-6's Issues

Packer can't find ansible roles

I'm one of the unluckies trying this on windows.
Your instructions state: you can simply clone the required Ansible roles from GitHub directly (use Ansible Galaxy to get the GitHub repository URLs for each role listed in requirements.txt), and update the role_paths variable to match the location of the cloned role.

I took this to mean clone your two repos ansible-role-packer-rhel and ansible-role-nfs somewhere on the host machine, then change the ansible/main.yml file to point to the root of those clones.

Of course I wouldn't be here if that worked, so what am I doing wrong (besides trying this on windows?)

VMware builds failing due to 404 on vmware tools packages

Original problem:

vmware-iso: failed: [127.0.0.1] (item=[u'vmware-tools-hgfs', u'vmware-tools-esx-nox']) => {"changed": true, "failed": true, "item": ["vmware-tools-hgfs", "vmware-tools-esx-nox"], "msg": "http://packages.vmware.com/tools/esx/latest/rhel6/x86_64/kmod-vmware-tools-vmhgfs-2.0.21.0-2.6.32.71.el6.x86_64.5.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"\nTrying other mirror.\nTo address this issue please refer to the below knowledge base article \n\nhttps://access.redhat.com/articles/1320623\n\nIf above article doesn't help to resolve this issue please open a ticket with Red Hat Support.\n\n\n\nError Downloading Packages:\n  kmod-vmware-tools-vmhgfs-2.0.21.0-2.6.32.71.el6.x86_64.5.el6.x86_64: failure: kmod-vmware-tools-vmhgfs-2.0.21.0-2.6.32.71.el6.x86_64.5.el6.x86_64.rpm from vmware-tools: [Errno 256] No more mirrors to try.\n\n", "rc": 1, "results": ["Loaded plugins: fastestmirror\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: mirror.sesp.northwestern.edu\n * epel: mirror.csclub.uwaterloo.ca\n * extras: bay.uchicago.edu\n * updates: centos.mirrors.wvstateu.edu\nResolving Dependencies\n--> Running transaction check\n---> Package vmware-tools-esx-nox.x86_64 0:10.1.0-1.el6 will be installed\n--> Processing Dependency: vmware-tools-libraries-nox >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-vgauth >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-deployPkg >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-guestInfo >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-vix >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-vmbackup >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-grabbitmqProxy >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-services >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-autoUpgrade >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-hgfsServer >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-powerOps >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-foundation >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-plugins-timeSync >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-guestlib >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n--> Processing Dependency: vmware-tools-core >= 10.1.0 for package: vmware-tools-esx-nox-10.1.0-1.el6.x86_64\n---> Package vmware-tools-hgfs.x86_64 0:10.1.0-1.el6 will be installed\n--> Processing Dependency: vmware-tools-vmhgfs-kmp for package: vmware-tools-hgfs-10.1.0-1.el6.x86_64\n--> Running transaction check\n---> Package kmod-vmware-tools-vmhgfs.x86_64 0:2.0.21.0-2.6.32.71.el6.x86_64.5.el6 will be installed\n--> Processing Dependency: vmware-tools-vmhgfs-common >= 10.1.0 for package: kmod-vmware-tools-vmhgfs-2.0.21.0-2.6.32.71.el6.x86_64.5.el6.x86_64\n---> Package vmware-tools-core.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-foundation.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-guestlib.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-libraries-nox.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-autoUpgrade.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-deployPkg.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-grabbitmqProxy.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-guestInfo.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-hgfsServer.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-powerOps.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-timeSync.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-vix.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-plugins-vmbackup.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-services.x86_64 0:10.1.0-1.el6 will be installed\n---> Package vmware-tools-vgauth.x86_64 0:10.1.0-1.el6 will be installed\n--> Running transaction check\n---> Package vmware-tools-vmhgfs-common.x86_64 0:10.1.0-5.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package                             Arch   Version          Repository    Size\n================================================================================\nInstalling:\n vmware-tools-esx-nox                x86_64 10.1.0-1.el6     vmware-tools 3.1 k\n vmware-tools-hgfs                   x86_64 10.1.0-1.el6     vmware-tools  53 k\nInstalling for dependencies:\n kmod-vmware-tools-vmhgfs            x86_64 2.0.21.0-2.6.32.71.el6.x86_64.5.el6\n                                                             vmware-tools 102 k\n vmware-tools-core                   x86_64 10.1.0-1.el6     vmware-tools 4.1 M\n vmware-tools-foundation             x86_64 10.1.0-1.el6     vmware-tools 171 k\n vmware-tools-guestlib               x86_64 10.1.0-1.el6     vmware-tools  93 k\n vmware-tools-libraries-nox          x86_64 10.1.0-1.el6     vmware-tools 6.2 M\n vmware-tools-plugins-autoUpgrade    x86_64 10.1.0-1.el6     vmware-tools 6.2 k\n vmware-tools-plugins-deployPkg      x86_64 10.1.0-1.el6     vmware-tools  59 k\n vmware-tools-plugins-grabbitmqProxy x86_64 10.1.0-1.el6     vmware-tools 415 k\n vmware-tools-plugins-guestInfo      x86_64 10.1.0-1.el6     vmware-tools  26 k\n vmware-tools-plugins-hgfsServer     x86_64 10.1.0-1.el6     vmware-tools 5.7 k\n vmware-tools-plugins-powerOps       x86_64 10.1.0-1.el6     vmware-tools 7.5 k\n vmware-tools-plugins-timeSync       x86_64 10.1.0-1.el6     vmware-tools 9.9 k\n vmware-tools-plugins-vix            x86_64 10.1.0-1.el6     vmware-tools  99 k\n vmware-tools-plugins-vmbackup       x86_64 10.1.0-1.el6     vmware-tools  17 k\n vmware-tools-services               x86_64 10.1.0-1.el6     vmware-tools 388 k\n vmware-tools-vgauth                 x86_64 10.1.0-1.el6     vmware-tools 439 k\n vmware-tools-vmhgfs-common          x86_64 10.1.0-5.el6     vmware-tools  53 k\n\nTransaction Summary\n================================================================================\nInstall      19 Package(s)\n\nTotal download size: 12 M\nInstalled size: 35 M\nDownloading Packages:\n"]}

Switching to the same method of install as the CentOS 7 version, I got:

fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Error mounting /tmp/vmfusion: mount: /home/vagrant/linux.iso is not a block device (maybe try `-o loop'?)\n"}

So I had to fix an issue upstream in the geerlingguy.packer-rhel role with the mount, adding opts: loop...

Cleanup tries running Pip, but it's not present

From my build earlier today:

==> virtualbox-iso: Provisioning with shell script: scripts/cleanup.sh
    virtualbox-iso: /tmp/script_480.sh: line 4: pip: command not found
    virtualbox-iso: xargs: pip: No such file or directory

box does not include p9 module

It's be nice to be able to use the box with libvirt. The file sharing mode of choice with libvirt is p9fs. However, it seems that modules are missing. It'd be cool if the centos box includes the modules.

Build fails due to Ansible Galaxy certificate issue

Getting the following error when building due to outdated Python dependency in CentOS 6:

    virtualbox-iso: Executing Ansible Galaxy: cd /tmp/packer-provisioner-ansible-local/5b58c872-3afa-c650-98a1-4b651eb4b4a4 && ansible-galaxy install -r /tmp/packer-provisioner-ansible-local/5b58c872-3afa-c650-98a1-4b651eb4b4a4/requirements.yml -p /tmp/packer-provisioner-ansible-local/5b58c872-3afa-c650-98a1-4b651eb4b4a4/roles
    virtualbox-iso:  [WARNING]: - geerlingguy.packer-rhel was NOT installed successfully: Failed to
    virtualbox-iso: get data from the API server (https://galaxy.ansible.com/api/): Failed to
    virtualbox-iso: validate the SSL certificate for galaxy.ansible.com:443. Make sure your managed
    virtualbox-iso: systems have a valid CA certificate installed. If the website serving the url
    virtualbox-iso: uses SNI you need python >= 2.7.9 on your managed machine  (the python
    virtualbox-iso: executable used (/usr/bin/python2.6) is version: 2.6.6 (r266:84292, Aug 18
    virtualbox-iso: 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]) or you can install the
    virtualbox-iso: `urllib3`, `pyOpenSSL`, `ndg-httpsclient`, and `pyasn1` python modules to
    virtualbox-iso: perform SNI verification in python >= 2.6. You can use validate_certs=False if
    virtualbox-iso: you do not need to confirm the servers identity but this is unsafe and not
    virtualbox-iso: recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-
    virtualbox-iso: trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org,
    virtualbox-iso: /etc/ansible. The exception msg was: hostname u'galaxy.ansible.com' doesn't
    virtualbox-iso: match either of '*.c1e4.galaxy.openshiftapps.com',
    virtualbox-iso: 'c1e4.galaxy.openshiftapps.com'.
    virtualbox-iso: ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

SSH handshake failure

Hello. I'm getting ssh handshake failure error when using packer.

packer -v
0.12.2

Virtualbox
5.1.14r112924

==> virtualbox-iso: Starting HTTP server on port 8506
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2794)
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm packer-centos-6.8-x86_64 --memory 512
virtualbox-iso: Executing: modifyvm packer-centos-6.8-x86_64 --cpus 1
==> virtualbox-iso: Starting the virtual machine...
virtualbox-iso: The VM will be run headless, without a GUI. If you want to
virtualbox-iso: view the screen of the VM, connect via VRDP without a password to
virtualbox-iso: 127.0.0.1:5995
==> virtualbox-iso: Waiting 10s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

I didn't see the problem when packing centos7.

Add rsync to base install

It seems that vagrant wants to install rsync after bringing he machine up.
It'd be nice to get a ready-to-use machine, including rsync.

Remove VMware Fusion support

Since I haven't updated that box, nor even have Fusion anymore... I am not willing to maintain support for it in this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.