Coder Social home page Coder Social logo

infamoussyn / packer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 260 KB

A public store of my packer templates and provisioning scripts. Packer offers a simplified process to build vagrant base boxes from an ISO file, to know exactly what you get.

Home Page: https://app.vagrantup.com/ainfamoussyn/

Shell 27.34% Ruby 72.66%
packer vagrant devops automation vmware vagrant-cloud vagrant-boxes virtualbox packer-template packer-vagrant

packer's People

Contributors

infamoussyn avatar

Watchers

 avatar  avatar

Forkers

pfillmore

packer's Issues

vmware-iso trusty64.json template

Build completes successfully and imports into vagrant without issue. However when the box is configured to have a GUI in the Vagrantfile - no login box appears.

github-actions hosted runner nest virtualisation roadblock

GH hosted runner does not nested virtualisation capability

Run cat /proc/cpuinfo
  cat /proc/cpuinfo
  shell: /usr/bin/bash -e {0}
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 85
model name	: Intel(R) Xeon(R) Platinum 8171M CPU @ [2](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:2).60GHz
stepping	: 4
microcode	: 0xffffffff
cpu MHz		: 2095.19[3](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:3)
cache size	: 36608 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 21
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse[4](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:4)_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx[5](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:5)12f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xsaves md_clear
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips	: 4190.38
clflush size	: [6](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:6)4
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 85
model name	: Intel(R) Xeon(R) Platinum 81[7](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:7)1M CPU @ 2.60GHz
stepping	: 4
microcode	: 0xffffffff
cpu MHz		: 2095.193
cache size	: 3660[8](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:8) KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 21
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xsaves md_clear
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips	: 41[9](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:9)0.[38](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:38)
clflush size	: 64
cache_alignment	: 64
address sizes	: [46](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:46) bits physical, [48](https://github.com/InfamousSYN/packer/runs/6150759698?check_suite_focus=true#step:3:48) bits virtual
power management:

HCL Template Migration: kali.json

Hashicorp have announced that that the JSON template packer is being sunsetted and new functionality will be implemented in the HCL template format.

Need to migrate JSON template: kali.json

ubuntu 18.04 template

Make a packer template to build Ubuntu 18.04 (Bionic Beaver) Vagrant base boxes. The Cookbook-Wireless project is targeted to build specifically on 18.04, this will help facilitate the other project.

create a `/debian/` branch

For provisioning script management, create a /debian/ branch for scripts to limit confusion in templates.

Sunset cloud templates

To reduce management overhead, the cloud templates will be sunset.

The automated cloud upload functionality will looked to be integrated into each of the templates to support CI/CD processes as part of a conditional statement.

vmware-iso xenial.json build fail

Error:

    vmware-iso: + echo ==> Disk usage after cleanup
    vmware-iso: + df -h
    vmware-iso: Filesystem                              Size  Used Avail Use% Mounted on
    vmware-iso: udev                                    981M     0  981M   0% /dev
    vmware-iso: + sync
    vmware-iso: tmpfs                                   201M  5.9M  195M   3% /run
    vmware-iso: /dev/mapper/vagrant--xenial64--vg-root   36G  4.1G   31G  12% /
    vmware-iso: tmpfs                                  1001M     0 1001M   0% /dev/shm
    vmware-iso: tmpfs                                   5.0M     0  5.0M   0% /run/lock
    vmware-iso: tmpfs                                  1001M     0 1001M   0% /sys/fs/cgroup
    vmware-iso: /dev/sda1                               472M  109M  339M  25% /boot
    vmware-iso: tmpfs                                   201M     0  201M   0% /run/user/1000
==> vmware-iso: Gracefully halting virtual machine...
    vmware-iso: Waiting for VMware to clean up after itself...
==> vmware-iso: Deleting unnecessary VMware files...
    vmware-iso: Deleting: output-vmware-iso\564d5619-ef9c-993d-496d-62ba4ae42b00.vmem
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: remove output-vmware-iso\564d5619-ef9c-993d-496d-62ba4ae42b00.vmem: Access is denied.

==> Some builds didn't complete successfully and had errors:
--> vmware-iso: remove output-vmware-iso\564d5619-ef9c-993d-496d-62ba4ae42b00.vmem: Access is denied.

==> Builds finished but no artifacts were created.

packer-github-action: setting environment variables for build

Methods that haven't worked

using ${{ }} method

       arguments: |
            -color=false
            -on-error=abort
            -only=virtualbox-iso
            -var iso_url=${{ env `ISO_URL` }}
            -var iso_checksum=${{ env `ISO_CHECKSUM` }}
            -var account_name=${{ env `ACCOUNT_NAME` }}
            -var account_key=${{ env `ACCOUNT_KEY` }}
            -var box_version=${{ env `BOX_VERSION` }}
            -var metadata=${{ env `METADATA` }}
            -var vagrantfile=${{ env `VAGRANTFILE` }}
          target: templates/kali.json
        env:
          PACKER_LOG: 1
          ACCOUNT_NAME: ${{ secrets.vagrantcloud_username }}
          ACCOUNT_KEY: ${{ secrets.vagrantcloud_api }}
          BOX_VERSION: "1.0.0"
          ISO_URL: "https://cdimage.kali.org/kali-images/kali-weekly/kali-linux-2022-W16-installer-amd64.iso"
          ISO_CHECKSUM: "eface812076f925f59c448596894b11075bf40212752f704ad333998c9c28d9f"
          METADATA: "include/vagrant/metadta/virtualbox/metadata.json"
          VAGRANTFILE: "include/vagrant/Vagrantfile/virtualbox/linux/Vagrantfile"

using xref'd method

          arguments: |
            -color=false
            -on-error=abort
            -only=virtualbox-iso
            -var iso_url=ISO_URL
            -var iso_checksum=ISO_CHECKSUM
            -var account_name=ACCOUNT_NAME
            -var account_key=ACCOUNT_KEY
            -var box_version=BOX_VERSION
            -var metadata=METADATA
            -var vagrantfile=VAGRANTFILE
          target: templates/kali.json
        env:
          PACKER_LOG: 1
          ACCOUNT_NAME: ${{ secrets.vagrantcloud_username }}
          ACCOUNT_KEY: ${{ secrets.vagrantcloud_api }}
          BOX_VERSION: "1.0.0"
          ISO_URL: "https://cdimage.kali.org/kali-images/kali-weekly/kali-linux-2022-W16-installer-amd64.iso"
          ISO_CHECKSUM: "eface812076f925f59c448596894b11075bf40212752f704ad333998c9c28d9f"
          METADATA: "include/vagrant/metadta/virtualbox/metadata.json"
          VAGRANTFILE: "include/vagrant/Vagrantfile/virtualbox/linux/Vagrantfile"

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.