Wednesday, December 3, 2014

Vagrant packaging

* 1 Install vagrant 1.6.5
https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
# dpkg -i vagrant_1.6.5_x86_64.deb

* init
oyj@oyjmint ~/vt/vag_dev $ vagrant init ubuntu/trusty64
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.


* Up vagrant
oyj@oyjmint ~/vt/vag_dev $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/trusty64'
    default: URL: https://vagrantcloud.com/ubuntu/trusty64
==> default: Adding box 'ubuntu/trusty64' (v14.04) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box
==> default: Box download is resuming from prior download progress

* Packaging
oyj@oyjmint ~/vt/vag_dev $ vagrant package

* package.box will be created.^^;

When we want to name package
vagrant package --output filename.box

No comments:

Post a Comment