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

PDF
2 docker engine_hands_on
 
PDF
macOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswift
PDF
Creación de máquinas virtuales basada en kernel usando qemu y virsh
ZIP
Embedded Linux Odp
PPTX
Puppet - Instant Data Center
ODP
VirtualBox Ubuntu Host Windows Guest
PPTX
Environments line-up! Vagrant & Puppet 101
PDF
using Virtualbox NAT and shared folder
2 docker engine_hands_on
 
macOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswift
Creación de máquinas virtuales basada en kernel usando qemu y virsh
Embedded Linux Odp
Puppet - Instant Data Center
VirtualBox Ubuntu Host Windows Guest
Environments line-up! Vagrant & Puppet 101
using Virtualbox NAT and shared folder

What's hot (19)

PDF
Building packages through emulation by Sean Bruno
PDF
Beyond Golden Containers: Complementing Docker with Puppet
PDF
Running virtual box from the linux command line
PDF
Dockerの準備
PDF
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
PDF
Backup with Bareos and ZFS - by Christian Reiß
PDF
Ether Mining 101
PDF
Ether mining 101 v2
PDF
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
PDF
F2e security
PPTX
Beyond Golden Containers: Complementing Docker with Puppet
PPTX
Virtualization and automation of library software/machines + Puppet
PPTX
Docker 1.9 release party - Docker Ha Noi
PDF
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
PDF
Complementing Docker with Puppet
PDF
JavaScript, Meet Cloud : Node.js on Windows Azure
PDF
Unixtoolbox
PDF
MySQL Sandbox 3
PDF
rush, the Ruby shell and Unix integration library
Building packages through emulation by Sean Bruno
Beyond Golden Containers: Complementing Docker with Puppet
Running virtual box from the linux command line
Dockerの準備
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Backup with Bareos and ZFS - by Christian Reiß
Ether Mining 101
Ether mining 101 v2
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
F2e security
Beyond Golden Containers: Complementing Docker with Puppet
Virtualization and automation of library software/machines + Puppet
Docker 1.9 release party - Docker Ha Noi
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
Complementing Docker with Puppet
JavaScript, Meet Cloud : Node.js on Windows Azure
Unixtoolbox
MySQL Sandbox 3
rush, the Ruby shell and Unix integration library
Ad

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

PDF
DevSecCon Asia 2017: Guillaume Dedrie: A trip through the securitiy of devops...
PDF
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
KEY
PDF
Introduction to Vagrant
PDF
ITB2015 - Winning with Vagrant, Puppet and Chef
PDF
Create Development and Production Environments with Vagrant
PPTX
Vagrant
PDF
Preparation study of_docker - (MOSG)
PDF
Azure VM base images with Packer, Ansble and Vagrant
PDF
Making Developers Productive with Vagrant, VirtualBox, and Docker
PDF
Vagrant For DevOps
PDF
Virtualization with Vagrant (ua.pycon 2011)
ODP
OpenSolaris 2009.06 Workshop
PDF
Taking the Friction Out of Ticket Investigation (Standardized Debugging Envir...
PDF
Automating with ansible (Part B)
PPT
Fake IT, until you make IT
PDF
DevOps(2) : Vagrant - (MOSG)
PPTX
DevOps Hackathon - Session 1: Vagrant
PDF
Intro to vagrant
PDF
How I hack on puppet modules
DevSecCon Asia 2017: Guillaume Dedrie: A trip through the securitiy of devops...
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Introduction to Vagrant
ITB2015 - Winning with Vagrant, Puppet and Chef
Create Development and Production Environments with Vagrant
Vagrant
Preparation study of_docker - (MOSG)
Azure VM base images with Packer, Ansble and Vagrant
Making Developers Productive with Vagrant, VirtualBox, and Docker
Vagrant For DevOps
Virtualization with Vagrant (ua.pycon 2011)
OpenSolaris 2009.06 Workshop
Taking the Friction Out of Ticket Investigation (Standardized Debugging Envir...
Automating with ansible (Part B)
Fake IT, until you make IT
DevOps(2) : Vagrant - (MOSG)
DevOps Hackathon - Session 1: Vagrant
Intro to vagrant
How I hack on puppet modules
Ad

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Electronic commerce courselecture one. Pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Machine learning based COVID-19 study performance prediction
Programs and apps: productivity, graphics, security and other tools
Unlocking AI with Model Context Protocol (MCP)
Review of recent advances in non-invasive hemoglobin estimation
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Spectral efficient network and resource selection model in 5G networks
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Electronic commerce courselecture one. Pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
Chapter 3 Spatial Domain Image Processing.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Teaching material agriculture food technology

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