SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Building packages through emulation by Sean Bruno
Building packages through emulation by Sean BrunoBuilding packages through emulation by Sean Bruno
Building packages through emulation by Sean Brunoeurobsdcon
 
Beyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with PuppetBeyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with Puppetlutter
 
Running virtual box from the linux command line
Running virtual box from the linux command lineRunning virtual box from the linux command line
Running virtual box from the linux command lineEric Javier Espino Man
 
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015Kentaro Hatori
 
Backup with Bareos and ZFS - by Christian Reiß
Backup with Bareos and ZFS - by Christian ReißBackup with Bareos and ZFS - by Christian Reiß
Backup with Bareos and ZFS - by Christian ReißNETWAYS
 
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)
仮想化環境におけるバイナリー・ポータビリティの考察 (WebAssemblyの場合)Naoto MATSUMOTO
 
F2e security
F2e securityF2e security
F2e securityjay li
 
Beyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with PuppetBeyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with Puppetlutter
 
Virtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetVirtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetOmar Reygaert
 
Docker 1.9 release party - Docker Ha Noi
Docker 1.9 release party - Docker Ha NoiDocker 1.9 release party - Docker Ha Noi
Docker 1.9 release party - Docker Ha NoiVan Phuc
 
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...DevDay Dresden
 
Complementing Docker with Puppet
Complementing Docker with PuppetComplementing Docker with Puppet
Complementing Docker with PuppetDocker, Inc.
 
JavaScript, Meet Cloud : Node.js on Windows Azure
JavaScript, Meet Cloud : Node.js on Windows AzureJavaScript, Meet Cloud : Node.js on Windows Azure
JavaScript, Meet Cloud : Node.js on Windows AzureShiju Varghese
 
rush, the Ruby shell and Unix integration library
rush, the Ruby shell and Unix integration libraryrush, the Ruby shell and Unix integration library
rush, the Ruby shell and Unix integration libraryAdam Wiggins
 

Was ist angesagt? (19)

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

Ähnlich wie Solaris 11 base box for Vagrant using Packer

Azure VM base images with Packer, Ansble and Vagrant
Azure VM base images with Packer, Ansble and VagrantAzure VM base images with Packer, Ansble and Vagrant
Azure VM base images with Packer, Ansble and VagrantBas Meijer
 
Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Cosimo Streppone
 
Minicurso de Vagrant
Minicurso de VagrantMinicurso de Vagrant
Minicurso de VagrantLeandro Nunes
 
Create your very own Development Environment with Vagrant and Packer
Create your very own Development Environment with Vagrant and PackerCreate your very own Development Environment with Vagrant and Packer
Create your very own Development Environment with Vagrant and Packerfrastel
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardwayDave Pitts
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantBrian Hogan
 
Docker 基本概念與指令操作
Docker  基本概念與指令操作Docker  基本概念與指令操作
Docker 基本概念與指令操作NUTC, imac
 
Deploying WP Multisite to Heroku
Deploying WP Multisite to HerokuDeploying WP Multisite to Heroku
Deploying WP Multisite to HerokuJussi Kinnula
 
Vagrant - Team Development made easy
Vagrant - Team Development made easyVagrant - Team Development made easy
Vagrant - Team Development made easyMarco Silva
 
Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境Yuriko IKEDA
 
Vagrant for real
Vagrant for realVagrant for real
Vagrant for realCodemotion
 
Vagrant for real (codemotion rome 2016)
Vagrant for real (codemotion rome 2016)Vagrant for real (codemotion rome 2016)
Vagrant for real (codemotion rome 2016)Michele Orselli
 
Dev ninja -> vagrant + virtualbox + chef-solo + git + ec2
Dev ninja  -> vagrant + virtualbox + chef-solo + git + ec2Dev ninja  -> vagrant + virtualbox + chef-solo + git + ec2
Dev ninja -> vagrant + virtualbox + chef-solo + git + ec2Yros
 
Integrating icinga2 and the HashiCorp suite
Integrating icinga2 and the HashiCorp suiteIntegrating icinga2 and the HashiCorp suite
Integrating icinga2 and the HashiCorp suiteBram Vogelaar
 

Ähnlich wie Solaris 11 base box for Vagrant using Packer (20)

Azure VM base images with Packer, Ansble and Vagrant
Azure VM base images with Packer, Ansble and VagrantAzure VM base images with Packer, Ansble and Vagrant
Azure VM base images with Packer, Ansble and Vagrant
 
Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013
 
Minicurso de Vagrant
Minicurso de VagrantMinicurso de Vagrant
Minicurso de Vagrant
 
Create your very own Development Environment with Vagrant and Packer
Create your very own Development Environment with Vagrant and PackerCreate your very own Development Environment with Vagrant and Packer
Create your very own Development Environment with Vagrant and Packer
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardway
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with Vagrant
 
Docker 基本概念與指令操作
Docker  基本概念與指令操作Docker  基本概念與指令操作
Docker 基本概念與指令操作
 
Docker, c'est bonheur !
Docker, c'est bonheur !Docker, c'est bonheur !
Docker, c'est bonheur !
 
Deploying WP Multisite to Heroku
Deploying WP Multisite to HerokuDeploying WP Multisite to Heroku
Deploying WP Multisite to Heroku
 
Vagrant
VagrantVagrant
Vagrant
 
Vagrant - Team Development made easy
Vagrant - Team Development made easyVagrant - Team Development made easy
Vagrant - Team Development made easy
 
Write php deploy everywhere
Write php deploy everywhereWrite php deploy everywhere
Write php deploy everywhere
 
Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境
 
Vagrant for real
Vagrant for realVagrant for real
Vagrant for real
 
Vagrant for real (codemotion rome 2016)
Vagrant for real (codemotion rome 2016)Vagrant for real (codemotion rome 2016)
Vagrant for real (codemotion rome 2016)
 
Dev ninja -> vagrant + virtualbox + chef-solo + git + ec2
Dev ninja  -> vagrant + virtualbox + chef-solo + git + ec2Dev ninja  -> vagrant + virtualbox + chef-solo + git + ec2
Dev ninja -> vagrant + virtualbox + chef-solo + git + ec2
 
Integrating icinga2 and the HashiCorp suite
Integrating icinga2 and the HashiCorp suiteIntegrating icinga2 and the HashiCorp suite
Integrating icinga2 and the HashiCorp suite
 
EC2
EC2EC2
EC2
 
Linux configer
Linux configerLinux configer
Linux configer
 
Build Automation 101
Build Automation 101Build Automation 101
Build Automation 101
 

Kürzlich hochgeladen

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

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