项目作者: nitinda

项目描述 :
Packer - ubuntu 18.04 Vagrant Box With Desktop
高级语言: Shell
项目地址: git://github.com/nitinda/packer-ubuntu-virtualbox.git
创建时间: 2019-12-20T10:27:51Z
项目社区:https://github.com/nitinda/packer-ubuntu-virtualbox

开源协议:MIT License

下载


Packer - Ubuntu Virual Box With Desktop

_Stability: Stable_

This is a stable example. It should successfully build out of the box


This example creates a **_Ubuntu Virtual Box**._

Pre-built Vagrant Box:

This example build configuration installs and configures ubuntu desktop amd64.


Requirements

The following software must be installed/present on your local machine before you can use Packer to build the Vagrant box file:


Usage

Make sure all the required software (listed above) is installed, then cd to the directory containing this README.md file, and run:

  • Ubuntu 18
  1. $ cd ubuntu-18
  2. $ ubuntu-packer-build.sh 18.03 or 18.04 <VagrantCloud User/login> <VagrantCloud Password>
  • Ubuntu 20
  1. $ cd ubuntu-20
  2. $ ubuntu-packer-build.sh <VagrantCloud User/login> <VagrantCloud Password>

After a few minutes, Packer should tell you the box was generated successfully, and the box was uploaded to Vagrant Cloud.

> Note: This configuration includes a post-processor that pushes the built box to Vagrant Cloud (which requires a VAGRANT_CLOUD_TOKEN environment variable to be set); remove the vagrant-cloud post-processor from the Packer template to build the box locally and not push it to Vagrant Cloud. You don’t need to specify a version variable either, if not using the vagrant-cloud post-processor.

Testing built boxes

There’s an included Vagrantfile that allows quick testing of the built Vagrant boxes. From VagrantFile-Example/ directory, run one the following command after building the box:

  1. _$ cd VagrantFile-Example/_
  2. _$ vagrant up_

Authors

Module maintained by Module maintained by the - Nitin Das