Automated Oracle VM VirtualBox Ubuntu build using Packer.
Automated Oracle VM VirtualBox Ubuntu build using Packer.
Note: use these or newer versions for building images.
xorriso
, mkisofs
, hdiutil
(normally found in macOS) or oscdimg
(normally found in Windows as part of the Windows ADK) is required by Packer
pip install pipenv
pipenv shell
python -m lib.build --help
for usage information--vagrant
to produce Vagrant boxes
python -m lib.build ubuntu 18.04 root base mininet
python -m lib.build --debug --dry-run debian 10.6.10 root
Note: if root
is specified it’ll be the first thing to be built, otherwise a packer-{template}-{release}-root
named VM must exist with a snapshot attached to it called Root
.
repo
and/or admin:org
scoped permissionsgh auth login
and use one of the tokenspython -m lib.release
after the build to output the gh
command that creates the releasepython -m lib.release --owner <OWNER> --repo <REPO>
to specify which user/organization/repo to create the release at exactlyVagrant boxes are released through Vagrant Cloud.
vagrant cloud auth login --username <username> --token <token>
vagrant cloud box create <organization>/<box-name>
vagrant cloud publish <organization>/<box-name> <version> virtualbox <path-to-box>
Copyright 2020-2021, Kohányi Róbert (<kohanyi.robert@gmail.com>)
Copyright 2012-2019, Chef Software, Inc. (<legal@chef.io>)
Copyright 2011-2012, Tim Dysinger (<tim@dysinger.net>)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.