Git Product home page Git Product logo

packer-debian's Introduction

Packer Debian

Packer configuration to generate Debian VirtualBox image/Vagrant boxes.

Usage

To generate a VirtualBox image, edit debian- (replace by the desired version of Debian like stretch) file and adapt the variables fields:

    "variables": {
        "debian_version": "9.0.0",
    },

Once done, create your box file:

packer build debian-<version>

So for example:

packer build debian-stretch

That's it :-)

You can find the result on the vagrantcloud here: https://vagrantcloud.com/deimos_fr

packer-debian's People

Contributors

dasginganinja avatar deimosfr avatar jotschi avatar lawnmowerlatte 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

packer-debian's Issues

"facter: command not found" warnings

==> virtualbox-iso: Provisioning with shell script: scripts/jessie/networking.sh
virtualbox-iso: [sudo] password for vagrant: /tmp/script.sh: line 3: facter: command not found
virtualbox-iso: /tmp/script.sh: line 3: [: =: unary operator expected

...

==> virtualbox-iso: Provisioning with shell script: scripts/jessie/puppet.sh
virtualbox-iso: /tmp/script.sh: line 3: facter: command not found
virtualbox-iso: /tmp/script.sh: line 3: [: =: unary operator expected


Probably facter not installed. Only mentioned in ansible.sh which not execute.

Missing checksums cause failures

Checksums seem to be required based on hashicorp/packer#2722 I'm getting the same error reported there:

$ packer build debian-jessie
virtualbox-iso output will be in this color.

Warnings for build 'virtualbox-iso':

* A checksum type of 'none' was specified. Since ISO files are so big,
a checksum is highly recommended.

==> virtualbox-iso: Downloading or copying Guest additions
    virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Downloading or copying: http://cdimage.debian.org/cdimage/release/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso
==> virtualbox-iso: Starting HTTP server on port 8254
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Error attaching ISO: VBoxManage error: VBoxManage: error: Could not get the storage format of the medium '/Users/lawnmowerlatte/packer-debian/packer_cache/71496103e631b73270b67cf5011b37e64a93b062e305482536cc720ffea678c6.iso' (VERR_NOT_SUPPORTED)
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component MediumWrap, interface IMedium, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
==> virtualbox-iso: VBoxManage: error: Invalid UUID or filename "/Users/lawnmowerlatte/packer-debian/packer_cache/71496103e631b73270b67cf5011b37e64a93b062e305482536cc720ffea678c6.iso"
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error attaching ISO: VBoxManage error: VBoxManage: error: Could not get the storage format of the medium '/Users/lawnmowerlatte/packer-debian/packer_cache/71496103e631b73270b67cf5011b37e64a93b062e305482536cc720ffea678c6.iso' (VERR_NOT_SUPPORTED)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
VBoxManage: error: Invalid UUID or filename "/Users/lawnmowerlatte/packer-debian/packer_cache/71496103e631b73270b67cf5011b37e64a93b062e305482536cc720ffea678c6.iso"

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error attaching ISO: VBoxManage error: VBoxManage: error: Could not get the storage format of the medium '/Users/lawnmowerlatte/packer-debian/packer_cache/71496103e631b73270b67cf5011b37e64a93b062e305482536cc720ffea678c6.iso' (VERR_NOT_SUPPORTED)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp
VBoxManage: error: Invalid UUID or filename "/Users/lawnmowerlatte/packer-debian/packer_cache/71496103e631b73270b67cf5011b37e64a93b062e305482536cc720ffea678c6.iso"

==> Builds finished but no artifacts were created.

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.