advertisement

Solaris 11 base box for Vagrant using Packer

33 %
67 %
advertisement
Information about Solaris 11 base box for Vagrant using Packer
Technology

Published on February 19, 2014

Author: AlanChalmers

Source: slideshare.net

Description

Solaris 11 base box for Vagrant using Packer.
advertisement

Solaris 11 Base Box MSOSUG 18th Feb 2014 Alan Chalmers http://resilvered.blogspot.com.au/ @bigal Wednesday, 19 February 14

Vagrant • a tool for building and distributing working environments • development started in 2010 • wrapper around virtualbox • supports additional hypervisors or providers • https://www.vagrantup.com/ Wednesday, 19 February 14

Base Box • A basic unit of OS for Vagrant • http://www.vagrantbox.es/ + others Wednesday, 19 February 14

Vagrant anatomy Vagrant File Wednesday, 19 February 14 Vagrant File Project VM Vagrant File Base box Project VM Project VM

Packer vmware and more virtual box amazon web services • Packer is a tool for creating identical machine images for multiple platforms from a single source configuration. • www.packer.io Wednesday, 19 February 14

Packer File • json • Builders • Provisioners • Post Processors Wednesday, 19 February 14

builder {    "builders":  [        {            "boot_command":  [  boot  command  goes  here]            "boot_wait":  "95s",            "disk_size":  40960,            "guest_os_type":  "OpenSolaris_64",            "iso_checksum":  "1d0efbffe1b194959c1a3d3c8b8d801411c54278",            "iso_checksum_type":  "sha1",            "iso_url":  "file:///ISO/Oracle/sol-­‐11_1-­‐text-­‐x86.iso",            "output_directory":  "packer-­‐solaris11-­‐virtualbox",            "shutdown_command":  "sudo  /usr/sbin/shutdown  -­‐g  0  -­‐y  -­‐i  5",            "ssh_password":  "1vagrant",            "ssh_port":  22,            "ssh_username":  "vagrant",            "type":  "virtualbox-­‐iso",   Wednesday, 19 February 14

builder          "vboxmanage":  [                [                    "modifyvm",                    "{{.Name}}",                    "-­‐-­‐memory",                    "1024"                ],                [                    "modifyvm",                    "{{.Name}}",                    "-­‐-­‐cpus",                    "1"                ]            ],            "virtualbox_version_file":  ".vbox_version",            "vm_name":  "packer-­‐solaris-­‐11"        } }   Wednesday, 19 February 14

builder "boot_command":  [                "27<enter><wait>",                "3<enter><wait10>",                "<wait10><wait10><wait10><wait10><wait10>",                "1<enter><wait10><wait10>",                "<f2><wait><wait><wait>",                "<f2><wait>",                "<f2><wait>",                "<f2><wait>",                "-­‐vagrant<wait><tab>",                "<f2><wait>",                "<tab><tab><tab><tab><tab><tab><tab><wait>",                "<f2><wait>", . .                "vagrant<enter><wait>",                "1vagrant<enter><wait>",                "sudo  bash<enter><wait>",        "1vagrant<enter><wait>",                "echo  'vagrant  ALL=(ALL)  NOPASSWD:  ALL'  >>  /etc/sudoers<enter><wait>",         "/usr/gnu/bin/sed   -­‐i   's/^.*requiretty/#Defaults   requiretty/'   /etc/ sudoers<enter><wait>",                "exit<enter><wait>"            ], Wednesday, 19 February 14

provisioner    "provisioners":  [        {             "execute_command":   "echo   'vagrant'  |   {{.Vars}}   sudo   -­‐S   -­‐E   bash  '{{.Path}}'",            "scripts":  [                "scripts/solaris/vmtools.sh",                "scripts/solaris/postinstall.sh"            ],            "type":  "shell"        }    ] Wednesday, 19 February 14

post-processor    "post-­‐processors":  [        {            "compression_level":  9,            "output":  "../builds/{{.Provider}}/solaris11.box",            "type":  "vagrant"        }    ], Wednesday, 19 February 14

packer build packer build -only=virtualbox-iso solaris11.json Wednesday, 19 February 14

Quick Demo • Questions to @bigal • http://resilvered.blogspot.com.au/ • https://github.com/Alanc-au/packer Wednesday, 19 February 14

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Using Vagrant with Solaris 11 - GitHub Pages

... solaris vagrant. I finally got Solaris 11 vagrant ... url = "iso/packer_solaris-11.1-amd64_virtualbox.box" v ... base box 'solaris-11.1' ...
Read more

BigAl/solaris-packer · GitHub - GitHub · Where software ...

solaris-packer - Packer files for Solaris Base Boxes. ... Files used to build Solaris Base Box for use with vagrant. ... Packer (0.6.0) Solaris 11_1 text ...
Read more

Using Packer to Create Vagrant Boxes - don't code today ...

Using Packer to create CentOS ... At this point you are ready to use your base box, it is a matter of using vagrant init with the path ... 11: 12: 13: 14 ...
Read more

Creating a Base Box - Vagrant by HashiCorp

We strongly recommend using Packer to create reproducible ... you have all the common software you absolutely need for your base box to work with Vagrant.
Read more

A list of base boxes for Vagrant - Vagrantbox.es

Vagrantbox.es. Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be ...
Read more

Vagrant Boxes - Packer by HashiCorp

Vagrant Boxes. Packer also has the ... and turn it into a Vagrant box. This is done using ... Since Packer can't currently make a Vagrant box for ...
Read more

GitHub - chef/bento: Packer templates for building minimal ...

solaris-11-x86.json: update solaris 11 box ... Packer templates for building Vagrant base ... $ vagrant box add bento/debian-8.1 Using a bento ...
Read more

Using Packer to Create Vagrant Boxes - DZone DevOps

Using Packer to Create Vagrant ... behind Vagrant. Packer allows you to ... to use your base box, it is a matter of using vagrant init with the path ...
Read more

Solaris 11 | LinkedIn

Solaris 11 at a glance: 2,581 LinkedIn members have this skill. Where they work. Oracle (12,957 members) IBM (11,311 members) Hewlett Packard Enterprise ...
Read more