{"id":14986119,"url":"https://github.com/ftao1/packer-builds","last_synced_at":"2025-04-11T21:31:24.131Z","repository":{"id":242559402,"uuid":"809468647","full_name":"ftao1/packer-builds","owner":"ftao1","description":"Packer repo to build Rocky Linux as a Vagrant box for VirtualBox","archived":false,"fork":false,"pushed_at":"2024-06-11T16:22:37.000Z","size":115,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T18:45:38.615Z","etag":null,"topics":["jenkins","packer","rocky-linux","vagrant","virtualbox"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ftao1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-02T19:16:37.000Z","updated_at":"2024-12-20T14:34:56.000Z","dependencies_parsed_at":"2024-06-09T18:27:40.238Z","dependency_job_id":null,"html_url":"https://github.com/ftao1/packer-builds","commit_stats":null,"previous_names":["ftao1/packer_builds","ftao1/packer-builds"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fpacker-builds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fpacker-builds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fpacker-builds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftao1%2Fpacker-builds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ftao1","download_url":"https://codeload.github.com/ftao1/packer-builds/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248482941,"owners_count":21111404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jenkins","packer","rocky-linux","vagrant","virtualbox"],"created_at":"2024-09-24T14:12:21.424Z","updated_at":"2025-04-11T21:31:23.778Z","avatar_url":"https://github.com/ftao1.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HashiCorp Packer Builds for Rocky Linux\n\nThis is a Packer project to build Rocky Linux 9.4 Vagrant box on VirtualBox.\n\n## Assumptions\n\nThis project assumes no existing installed software (listed below) and everything will be created from scratch.\n\n## Requirements\n\nThe following software must be installed on your local machine before you can use Packer to build this Vagrant box:\n\n  - [Packer](http://www.packer.io/)\n  - [Vagrant](http://vagrantup.com/)\n  - [VirtualBox](https://www.virtualbox.org/)\n  - [Rocky Linux](https://rockylinux.org/)\n\nAlthough not strictly necessary this is a recommended tree structure to get things going:\n\n```bash\n├── README.md\n└── rocky94\n    ├── http\n    │   └── ks-rocky94.cfg\n    ├── iso\n    │   └── Rocky-9.4-x86_64-dvd.iso\n    ├── output\n    │   └── Rocky94.box\n    ├── rocky94.pkr.hcl\n    └── scripts\n        ├── cleanup.sh\n        ├── vagrant.sh\n        └── virtualbox.sh\n```\nUnless you have a very fast Internet link I would suggest the Rocky Linux ISO is pre-downloaded prior to running.\n\n## VirtualBox homelab setup\n\nFor the homelab setup on VirtualBox I recommend that a separate host-only network is setup so you can have a private network of VMs.\nYou will need to create a new host-only network - vboxnet0 - and create the IP range the network will use such as 172.16.0.0/24.\nAlso be sure to enable DHCP for the network to make things easy.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./assets/vbox.jpg\" alt=\"Screenshot\"\u003e\n\u003c/div\u003e\n\n## Post Install Scripts\n\n  - **ks-rocky94.cfg** - This is the kickstart file for the VM build\n  - **rocky94.pkr.hcl** - This is the main packer file\n  - **cleanup.sh** - Cleanup script after the VM has been created\n  - **vagrant.sh** - Setup the vagrant user\n  - **virtualbox.sh** - Mount the VBoxGuestAdditions.iso\n\n## Output\n\nOnce the packer build is complete the Vagrant box file will be saved to the **output** directory.\n\n## Usage\n\nMake sure all the required software (listed above) is installed, then cd into the **rocky94** directory and run:\n\n    $ packer build -force -timestamp-ui rocky94.pkr.hcl\n\n## Adding the Vagrant box file\n\nYou will need to add the box file to the Vagrant system before you can use it with Vagrant. Do the following:\n\n    $ cd output\n    $ vagrant box add Rocky94 Rocky94.box\n\n## License\n\nMIT\n\n## Author\n\nThese configurations are maintained by F.Tao.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftao1%2Fpacker-builds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fftao1%2Fpacker-builds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftao1%2Fpacker-builds/lists"}