Giter VIP home page Giter VIP logo

bonny_doon's Introduction

Bonny Doon - create OVM/OVS Vagrant boxes using Packer

Overview

This repo contains Packer templates and artefacts for building OVM and OVS Vagrant boxes, using a VirtualBox provider.

It is assumed that you have access to the OVM and OVS ISOs (available for free with a free account at http://edelivery.oracle.com)

This system has been tested with OVM 3.2.1 and OVM 3.3.1.

This system is for creating new boxes, not for upgrades from one version of OVM to another.

Preparation

Two ISOs need to be available. The OVM install ISO needs to be available on the local file system (including NFS), but the OVS install ISO can be either local or available via ftp or http

The OVM install iso must be available as ./ovm.iso

Box Creation

Oracle VM Manager

The Oracle VM Manager will be installed on an Oracle Linux 6 minimal image.

The installation discovers the OVM version and calls the appropriate scripts.

Install the manager

Simply execute vagrant up and the system will create a VM and install OVM manager on it, using the ovm.iso provided.

Create the box

Create a Vagrant box ovm-X.X.X.box thus (you need to ensure the file isn't already present, and to substitute appropriate values for =X.X.X):

rm -f ovm-X.X.X-virtualbox.box
vagrant package --output ovm-X.X.X.box

Oracle VM Server

3.2.1

Create the box using Packer, thus:

packer build -var-file ovs-3.2.1.json template.json

This will create the box ovs-3.2.1.box

3.3.1

Create the box using Packer, thus:

packer build -var-file ovs-3.3.1.json template.json

This will create the box ovs-3.3.1.box

Box Distribution

The boxes can be distributed both to a local vagrant (vagrant box add ovm-X.X.X.box; vagrant box add ovs-X.X.X.box) and to some storage where they can be accessed via a URL.

Box use

Boxes for a specific OVM release are designed to be used together, but require some “run time” configuration to make that happen.

Create your Vagrant project by recursively copying in the contents of the OVM_Project/ directory (a Vagrantfile and a scripts/ directory).

Modify the Vagrantfile to suit your needs. Specific modifications are likely to include:

config.vm.box
The OVS box to be used
config.vm.box_url
URL used for loading the OVS box if not already loaded into Vagrant
ovm.vm.box
The OVM box to be used
ovm.vm.box_url
URL used for loading the OVM box if not already loaded into Vagrant

Other modifications are likely to include:

  • Renaming the internal networks used to avoid conflict with other users on the same host using the same internal network name
  • Adding more Adapters to the VMs (total of 8, of which 3 are already configured) to allow for more networks on the servers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.