SlideShare a Scribd company logo
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

More Related Content

What's hot (19)

PDF
Building packages through emulation by Sean Bruno
eurobsdcon
 
PDF
Beyond Golden Containers: Complementing Docker with Puppet
lutter
 
PDF
Running virtual box from the linux command line
Eric Javier Espino Man
 
PDF
Dockerの準備
koedoyoshida
 
PDF
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Kentaro Hatori
 
PDF
Backup with Bareos and ZFS - by Christian Reiß
NETWAYS
 
PDF
Ether Mining 101
Conor Svensson
 
PDF
Ether mining 101 v2
Conor Svensson
 
PDF
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
Naoto MATSUMOTO
 
PDF
F2e security
jay li
 
PPTX
Beyond Golden Containers: Complementing Docker with Puppet
lutter
 
PPTX
Virtualization and automation of library software/machines + Puppet
Omar Reygaert
 
PPTX
Docker 1.9 release party - Docker Ha Noi
Van Phuc
 
PDF
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
DevDay Dresden
 
PDF
Complementing Docker with Puppet
Docker, Inc.
 
PDF
JavaScript, Meet Cloud : Node.js on Windows Azure
Shiju Varghese
 
PDF
Unixtoolbox
LILIANA FERNANDEZ
 
PDF
MySQL Sandbox 3
Giuseppe Maxia
 
PDF
rush, the Ruby shell and Unix integration library
Adam Wiggins
 
Building packages through emulation by Sean Bruno
eurobsdcon
 
Beyond Golden Containers: Complementing Docker with Puppet
lutter
 
Running virtual box from the linux command line
Eric Javier Espino Man
 
Dockerの準備
koedoyoshida
 
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Kentaro Hatori
 
Backup with Bareos and ZFS - by Christian Reiß
NETWAYS
 
Ether Mining 101
Conor Svensson
 
Ether mining 101 v2
Conor Svensson
 
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
Naoto MATSUMOTO
 
F2e security
jay li
 
Beyond Golden Containers: Complementing Docker with Puppet
lutter
 
Virtualization and automation of library software/machines + Puppet
Omar Reygaert
 
Docker 1.9 release party - Docker Ha Noi
Van Phuc
 
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
DevDay Dresden
 
Complementing Docker with Puppet
Docker, Inc.
 
JavaScript, Meet Cloud : Node.js on Windows Azure
Shiju Varghese
 
Unixtoolbox
LILIANA FERNANDEZ
 
MySQL Sandbox 3
Giuseppe Maxia
 
rush, the Ruby shell and Unix integration library
Adam Wiggins
 

Similar to Solaris 11 base box for Vagrant using Packer (20)

PDF
DevSecCon Asia 2017: Guillaume Dedrie: A trip through the securitiy of devops...
DevSecCon
 
PDF
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Felipe
 
KEY
Vagrant
Michael Peacock
 
PDF
Introduction to Vagrant
Marcelo Pinheiro
 
PDF
ITB2015 - Winning with Vagrant, Puppet and Chef
Ortus Solutions, Corp
 
PDF
Create Development and Production Environments with Vagrant
Brian Hogan
 
PPTX
Vagrant
Evans Ye
 
PDF
Preparation study of_docker - (MOSG)
Soshi Nemoto
 
PDF
Azure VM base images with Packer, Ansble and Vagrant
Bas Meijer
 
PDF
Making Developers Productive with Vagrant, VirtualBox, and Docker
John Rofrano
 
PDF
Vagrant For DevOps
Lalatendu Mohanty
 
PDF
Virtualization with Vagrant (ua.pycon 2011)
Dmitry Guyvoronsky
 
ODP
OpenSolaris 2009.06 Workshop
Iban Nieto Castillero
 
PDF
Taking the Friction Out of Ticket Investigation (Standardized Debugging Envir...
Atlassian
 
PDF
Automating with ansible (Part B)
iman darabi
 
PPT
Fake IT, until you make IT
Bas Meijer
 
PDF
DevOps(2) : Vagrant - (MOSG)
Soshi Nemoto
 
PPTX
DevOps Hackathon - Session 1: Vagrant
Antons Kranga
 
PDF
Intro to vagrant
Mantas Klasavicius
 
PDF
How I hack on puppet modules
Kris Buytaert
 
DevSecCon Asia 2017: Guillaume Dedrie: A trip through the securitiy of devops...
DevSecCon
 
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Felipe
 
Introduction to Vagrant
Marcelo Pinheiro
 
ITB2015 - Winning with Vagrant, Puppet and Chef
Ortus Solutions, Corp
 
Create Development and Production Environments with Vagrant
Brian Hogan
 
Vagrant
Evans Ye
 
Preparation study of_docker - (MOSG)
Soshi Nemoto
 
Azure VM base images with Packer, Ansble and Vagrant
Bas Meijer
 
Making Developers Productive with Vagrant, VirtualBox, and Docker
John Rofrano
 
Vagrant For DevOps
Lalatendu Mohanty
 
Virtualization with Vagrant (ua.pycon 2011)
Dmitry Guyvoronsky
 
OpenSolaris 2009.06 Workshop
Iban Nieto Castillero
 
Taking the Friction Out of Ticket Investigation (Standardized Debugging Envir...
Atlassian
 
Automating with ansible (Part B)
iman darabi
 
Fake IT, until you make IT
Bas Meijer
 
DevOps(2) : Vagrant - (MOSG)
Soshi Nemoto
 
DevOps Hackathon - Session 1: Vagrant
Antons Kranga
 
Intro to vagrant
Mantas Klasavicius
 
How I hack on puppet modules
Kris Buytaert
 
Ad

Recently uploaded (20)

PDF
[GDGoC FPTU] Spring 2025 Summary Slidess
minhtrietgect
 
PPTX
Role_of_Artificial_Intelligence_in_Livestock_Extension_Services.pptx
DrRajdeepMadavi
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
PDF
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
PPTX
Essential Content-centric Plugins for your Website
Laura Byrne
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
“ONNX and Python to C++: State-of-the-art Graph Compilation,” a Presentation ...
Edge AI and Vision Alliance
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Evolution: How True AI is Redefining Safety in Industry 4.0
vikaassingh4433
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
[GDGoC FPTU] Spring 2025 Summary Slidess
minhtrietgect
 
Role_of_Artificial_Intelligence_in_Livestock_Extension_Services.pptx
DrRajdeepMadavi
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
NASA A Researcher’s Guide to International Space Station : Earth Observations
Dr. PANKAJ DHUSSA
 
Essential Content-centric Plugins for your Website
Laura Byrne
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
“ONNX and Python to C++: State-of-the-art Graph Compilation,” a Presentation ...
Edge AI and Vision Alliance
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Evolution: How True AI is Redefining Safety in Industry 4.0
vikaassingh4433
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Ad

Solaris 11 base box for Vagrant using Packer

  • 1. Solaris 11 Base Box MSOSUG 18th Feb 2014 Alan Chalmers http://resilvered.blogspot.com.au/ @bigal Wednesday, 19 February 14
  • 2. 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
  • 3. Base Box • A basic unit of OS for Vagrant • http://www.vagrantbox.es/ + others Wednesday, 19 February 14
  • 4. Vagrant anatomy Vagrant File Wednesday, 19 February 14 Vagrant File Project VM Vagrant File Base box Project VM Project VM
  • 5. 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
  • 6. Packer File • json • Builders • Provisioners • Post Processors Wednesday, 19 February 14
  • 7. 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
  • 8. builder          "vboxmanage":  [                [                    "modifyvm",                    "{{.Name}}",                    "-­‐-­‐memory",                    "1024"                ],                [                    "modifyvm",                    "{{.Name}}",                    "-­‐-­‐cpus",                    "1"                ]            ],            "virtualbox_version_file":  ".vbox_version",            "vm_name":  "packer-­‐solaris-­‐11"        } }   Wednesday, 19 February 14
  • 9. 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
  • 10. 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
  • 11. post-processor    "post-­‐processors":  [        {            "compression_level":  9,            "output":  "../builds/{{.Provider}}/solaris11.box",            "type":  "vagrant"        }    ], Wednesday, 19 February 14
  • 12. packer build packer build -only=virtualbox-iso solaris11.json Wednesday, 19 February 14
  • 13. Quick Demo • Questions to @bigal • http://resilvered.blogspot.com.au/ • https://github.com/Alanc-au/packer Wednesday, 19 February 14