Giter Club home page Giter Club logo

packer-debian-9's Introduction

Packer Build - Debian 9 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/debian9, but the build configuration has been moved to the consolidated project.

packer-debian-9's People

Contributors

arjenz avatar geerlingguy avatar it-praktyk 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

Watchers

 avatar  avatar  avatar  avatar  avatar

packer-debian-9's Issues

Update iso to debian 9.3

I modified the JSON to work with debian 9. I have no idea how to create a new pull request. Including source code mods:

"boot_wait": "5s",
      "disk_size": 81920,
      "guest_os_type": "debian8-64",
      "headless": true,
      "http_directory": "http",
      "iso_urls": [
        "iso/debian-9.1.0-amd64-xfce-CD-1.iso",
        "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.1.0-amd64-xfce-CD-1.iso"
      ],
      "iso_checksum_type": "sha256",
      "iso_checksum": "9558262f6c15b024d8c3ca140d1c70c310f11384e227329d08dab38c915a4306",
      "output_directory": "packer-debian-9-amd64-vmware",
      "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
      "ssh_password": "vagrant",
      "ssh_port": 22,
      "ssh_username": "vagrant",
      "ssh_wait_timeout": "10000s",
      "tools_upload_flavor": "linux",
      "vm_name": "packer-debian-9-amd64",
      "vmx_data": {
        "cpuid.coresPerSocket": "1",
        "ethernet0.pciSlotNumber": "32",
        "memsize": "1024",
        "numvcpus": "1"

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.

Installation of VMware tools stop because the ifconfig is not available

Standard installation of Debian 9 - based on preseed.cfg - doesn't contain the ifconfig command what cause that VMware Tools doesn't install correctly in non-interactive mode.

Installation stop with a question (checked under manual/interactive installation):

Setup is unable to find the "ifconfig" program on your machine. Please make sure it is installed. Do you want to specify the location of this program by hand? [yes]

The ifconfig command is included in the net-tools package.

During build, GPG error - NO_PUBKEY 93C4A3FD7BB9C367

    virtualbox-iso: Err:4 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease
    virtualbox-iso: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93C4A3FD7BB9C367
    virtualbox-iso: Reading package lists...
    virtualbox-iso: W: GPG error: http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93C4A3FD7BB9C367
    virtualbox-iso: E: The repository 'http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease' is not signed.

Not sure if that actually harms anything though. I'm building a base box right now to test.

Build fails because packer_builder_type=virtualbox-iso could not be found

When I run packer build --only=vmware-iso debian9.json, I get this error...

    virtualbox-iso: - downloading role 'packer-debian', owned by geerlingguy
    virtualbox-iso: - downloading role from https://github.com/geerlingguy/ansible-role-packer-debian/archive/1.3.0.tar.gz
    virtualbox-iso: - extracting geerlingguy.packer-debian to /tmp/packer-provisioner-ansible-local/5a83d261-3c58-9ef4-63e4-b21febc0ce1d/roles/geerlingguy.packer-debian
    virtualbox-iso: - geerlingguy.packer-debian (1.3.0) was installed successfully
    virtualbox-iso: - downloading role 'nfs', owned by geerlingguy
    virtualbox-iso: - downloading role from https://github.com/geerlingguy/ansible-role-nfs/archive/1.2.1.tar.gz
    virtualbox-iso: - extracting geerlingguy.nfs to /tmp/packer-provisioner-ansible-local/5a83d261-3c58-9ef4-63e4-b21febc0ce1d/roles/geerlingguy.nfs
    virtualbox-iso: - geerlingguy.nfs (1.2.1) was installed successfully
    virtualbox-iso: Executing Ansible: cd /tmp/packer-provisioner-ansible-local/5a83d261-3c58-9ef4-63e4-b21febc0ce1d && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/5a83d261-3c58-9ef4-63e4-b21febc0ce1d/main.yml --extra-vars \"packer_build_name=virtualbox-iso packer_builder_type=virtualbox-iso packer_http_addr=10.0.2.2:8753\"  -c local -i /tmp/packer-provisioner-ansible-local/5a83d261-3c58-9ef4-63e4-b21febc0ce1d/packer-provisioner-ansible-local038709384
    virtualbox-iso: ERROR! the playbook: packer_builder_type=virtualbox-iso could not be found
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error executing Ansible: Non-zero exit status: 1

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error executing Ansible: Non-zero exit status: 1

==> Builds finished but no artifacts were created.

vmware-iso is not build correctly on VMware Workstation 12.5.7 due to unrecognized guest_os_type

Under try of a box build using VMware Workstation Pro 12.5.7 on Linux (build-5813279) an error like below is displayed.

==> vmware-iso: Downloading or copying ISO
    vmware-iso: Downloading or copying: file:///iso/debian-9.0.0-amd64-xfce-CD-1.iso
    vmware-iso: Error downloading: stat /iso/debian-9.0.0-amd64-xfce-CD-1.iso: no such file or directory
    vmware-iso: Downloading or copying: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.0.0-amd64-xfce-CD-1.iso
==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Starting HTTP server on port 8530
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Error starting VM: VMware error: Error: Cannot connect to the virtual machine
==> vmware-iso: Step "StepRun" failed
==> vmware-iso: [c] Clean up and exit, [a] abort without cleanup, or [r] retry step (build may fail even if retry succeeds)? c
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: Error starting VM: VMware error: Error: Cannot connect to the virtual machine

When headless is set to false can observe that try of creating virtual machine is initiated (a machine is available on the machines list for a while - < 1s - and next disappears.

It's caused by unsupported
"guest_os_type": "debian9-64"
When this line is removed from the debian9.json file build starts as expected.

Did you test it using VMware Fusion?

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.