https://github.com/tankibaj/packer-ubuntu-box-builder-for-vagrant
Build your own vagrant ubuntu box with packer for virtualbox
https://github.com/tankibaj/packer-ubuntu-box-builder-for-vagrant
Last synced: 5 months ago
JSON representation
Build your own vagrant ubuntu box with packer for virtualbox
- Host: GitHub
- URL: https://github.com/tankibaj/packer-ubuntu-box-builder-for-vagrant
- Owner: tankibaj
- Created: 2020-11-14T23:52:33.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-25T04:34:19.000Z (over 4 years ago)
- Last Synced: 2025-02-17T21:36:55.336Z (8 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vagrant Ubuntu Box
Build your own vagrant ubuntu box with packer for virtualbox.
Table of Contents
=================* [Building prerequisite](#building-prerequisite)
* [Virtualbox](#virtualbox)
* [VirtualBox Extension Pack](#virtualbox-extension-pack)
* [Packer](#packer)
* [Clone repository](#clone-repository)
* [ISO](#iso)
* [Build](#build)
* [Add Vagrant Box](#add-vagrant-box)## Building prerequisite
### Virtualbox
**macOS:** `brew install virtualbox`
**Ubuntu / Debian:** `sudo apt install virtualbox-6.1`
### VirtualBox Extension Pack
[Download](https://download.virtualbox.org/virtualbox/6.1.16/Oracle_VM_VirtualBox_Extension_Pack-6.1.16.vbox-extpack)
Run VirtualBox, then go to `Tools` > `Preferences` and select the `Extensions` tab. Click the add icon to `install VirtualBox Extension Pack`. Browse the `extension pack` file you have downloaded from the VirtualBox site.
### Packer
**macOS:** `brew install packer`
**Ubuntu / Debian:** `sudo apt install packer`
### Clone repository
```bash
https://github.com/tankibaj/Packer-Vagrant-Ubuntu-Box-Builder.git
```### ISO
Download ubuntu server iso and put into `iso` directory.
```bash
curl http://cdimage.ubuntu.com/releases/18.04/release/ubuntu-18.04.5-server-amd64.iso --output 'iso/ubuntu-18.04.5-server-amd64.iso'
```## Build
Please run following command to build Vagrant Box:
```bash
packer build ubuntu-18.04.5.json
```Your created Vagrant Box will be saved in `box` directory.
## Add Vagrant Box
```bash
vagrant box add box/ubuntu-18.04.5.box --name ubuntu18045
```Enjoy!!!!!!