Skip to content

Instantly share code, notes, and snippets.

@kikitux
Created January 1, 2014 06:04
Show Gist options
  • Save kikitux/8205555 to your computer and use it in GitHub Desktop.
Save kikitux/8205555 to your computer and use it in GitHub Desktop.
$ head -n17 packer-vagrant-oracle65-install_crs_db.json
{
"variables": {
"ssh_name": "root",
"ssh_pass": "root",
"hostname": "vagrant-oracle65",
"outputfile": "oracle65.box",
"rootfs" : "ext4",
"swapsize": "6000",
"harddisk2_size": "32000",
"harddisk3_size": "32000",
"harddisk4_size": "32000",
"yumurl" : "http://192.168.56.1/stage/repo/OracleLinux/OL6/latest/x86_64",
"repofile" : "http://192.168.56.1/stage/vbox-yum-ol6.repo",
"compression" : 9,
"vagrantfile": "Vagrantfile-oracle65"
},
$ time packer build -var 'hostname=vagrant-oracle65' -var 'outputfile=oracle65.box' -var 'yumurl=' -var 'repofile=' packer-vagrant-oracle65-install_crs_db.json
virtualbox output will be in this color.
==> virtualbox: Downloading or copying Guest additions checksums
virtualbox: Downloading or copying: http://download.virtualbox.org/virtualbox/4.3.6/SHA256SUMS
==> virtualbox: Downloading or copying Guest additions
virtualbox: Downloading or copying: http://download.virtualbox.org/virtualbox/4.3.6/VBoxGuestAdditions_4.3.6.iso
==> virtualbox: Downloading or copying ISO
virtualbox: Downloading or copying: file:///S:%5Cpacker_laptop%5COracleLinux-R6-U5-Server-x86_64-dvd.iso
==> virtualbox: Starting HTTP server on port 8081
==> virtualbox: Creating virtual machine...
==> virtualbox: Creating hard drive...
==> virtualbox: Creating forwarded port mapping for SSH (host port 3213)
==> virtualbox: Executing custom VBoxManage commands...
virtualbox: Executing: modifyvm packer-vagrant-oracle65 --vram 32
virtualbox: Executing: modifyvm packer-vagrant-oracle65 --memory 4096
virtualbox: Executing: sharedfolder add packer-vagrant-oracle65 --name stagefiles --hostpath S:/packer_laptop/stagefiles --automount
virtualbox: Executing: createhd --filename output-vagrant-oracle65/packer-vagrant-oracle65-disk2.vdi --size 32000 --format VDI --variant Standard
virtualbox: Executing: storageattach packer-vagrant-oracle65 --storagectl SATA Controller --port 1 --device 0 --type hdd --medium output-vagrant-oracle65/packer-vagrant-oracle65-disk2.vdi
virtualbox: Executing: createhd --filename output-vagrant-oracle65/packer-vagrant-oracle65-disk3.vdi --size 32000 --format VDI --variant Standard
virtualbox: Executing: storageattach packer-vagrant-oracle65 --storagectl SATA Controller --port 2 --device 0 --type hdd --medium output-vagrant-oracle65/packer-vagrant-oracle65-disk3.vdi
virtualbox: Executing: createhd --filename output-vagrant-oracle65/packer-vagrant-oracle65-disk4.vdi --size 32000 --format VDI --variant Standard
virtualbox: Executing: storageattach packer-vagrant-oracle65 --storagectl SATA Controller --port 3 --device 0 --type hdd --medium output-vagrant-oracle65/packer-vagrant-oracle65-disk4.vdi
==> virtualbox: Starting the virtual machine...
==> virtualbox: Waiting 5s for boot...
==> virtualbox: Typing the boot command...
==> virtualbox: Waiting for SSH to become available...
==> virtualbox: Connected to SSH!
==> virtualbox: Uploading VirtualBox version info (4.3.6)
==> virtualbox: Uploading VirtualBox guest additions ISO...
==> virtualbox: Provisioning with shell script: C:\Users\alvarom.DATACOM\AppData\Local\Temp\packer-shell300286711
virtualbox: Verifying archive integrity... All good.
virtualbox: Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............
virtualbox: VirtualBox Guest Additions installer
virtualbox: Copying additional installer modules ...
virtualbox: Installing additional modules ...
virtualbox: Removing existing VirtualBox non-DKMS kernel modules←[60G[←[0;32m OK ←[0;39m]
virtualbox: Building the VirtualBox Guest Additions kernel modules
virtualbox: Building the main Guest Additions module←[60G[←[0;32m OK ←[0;39m]
virtualbox: Building the shared folder support module←[60G[←[0;32m OK ←[0;39m]
virtualbox: Building the OpenGL support module←[60G[←[0;32m OK ←[0;39m]
virtualbox: Doing non-kernel setup of the Guest Additions←[60G[←[0;32m OK ←[0;39m]
virtualbox: Starting the VirtualBox Guest Additions ←[60G[←[0;32m OK ←[0;39m]
virtualbox: Installing the Window System drivers←[60G[←[0;31mFAILED←[0;39m]
virtualbox: (Could not find the X.Org or XFree86 Window System.)
==> virtualbox: Provisioning with shell script: stagefiles/sdb_u01_btrfs.sh
virtualbox: btrfs-progs-0.20-1.5.git7854c8b.el6.x86_64
virtualbox:
virtualbox: WARNING! - Btrfs v0.20-rc1 IS EXPERIMENTAL
virtualbox: WARNING! - see http://btrfs.wiki.kernel.org before using
virtualbox:
virtualbox: fs created label (null) on /dev/sdb
virtualbox: nodesize 4096 leafsize 4096 sectorsize 4096 size 31.25GB
virtualbox: Btrfs v0.20-rc1
==> virtualbox: Provisioning with shell script: stagefiles/preinstall_crs_db.sh
virtualbox: installing oracle-rdbms-server-12cR1-preinstall
virtualbox: warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
virtualbox: Importing GPG key 0xEC551F03:
virtualbox: Userid : Oracle OSS group (Open Source Software group) <[email protected]>
virtualbox: Package: 6:oraclelinux-release-6Server-5.0.2.x86_64 (@anaconda-OracleLinuxServer-201311252058.x86_64/6.5)
virtualbox: From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
virtualbox: oinstall:x:54321:
virtualbox: dba:x:54322:oracle
virtualbox: id: grid: No such user
virtualbox: Changing password for user oracle.
virtualbox: passwd: all authentication tokens updated successfully.
virtualbox: Changing password for user grid.
virtualbox: passwd: all authentication tokens updated successfully.
virtualbox: unzipping /media/sf_stagefiles/linuxamd64_12c_database_1of2.zip
virtualbox: unzipping /media/sf_stagefiles/linuxamd64_12c_database_2of2.zip
virtualbox: unzipping /media/sf_stagefiles/linuxamd64_12c_grid_1of2.zip
virtualbox: unzipping /media/sf_stagefiles/linuxamd64_12c_grid_2of2.zip
==> virtualbox: Provisioning with shell script: stagefiles/install_crs_db.sh
virtualbox: stage grid found ..
virtualbox: oraInventory in /u01/app/oraInventory
virtualbox: Oracle Base for grid is /u01/app/grid
virtualbox: Oracle Home for grid is /u01/app/12.1.0.1/grid
virtualbox: Starting Oracle Universal Installer...
virtualbox:
virtualbox: Checking Temp space: must be greater than 120 MB. Actual 7557 MB Passed
virtualbox: Checking swap space: must be greater than 150 MB. Actual 5999 MB Passed
virtualbox: Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-23_02-22-10PM. Please wait ...You can find the lo
g of this install session at:
virtualbox: /u01/app/oraInventory/logs/installActions2013-12-23_02-22-10PM.log
virtualbox: The installation of Oracle Grid Infrastructure 12c was successful.
virtualbox: Please check '/u01/app/oraInventory/logs/silentInstall2013-12-23_02-22-10PM.log' for more details.
virtualbox:
virtualbox: As a root user, execute the following script(s):
virtualbox: 1. /u01/app/oraInventory/orainstRoot.sh
virtualbox: 2. /u01/app/12.1.0.1/grid/root.sh
virtualbox:
virtualbox:
virtualbox: Successfully Setup Software.
virtualbox: As install user, execute the following script to complete the configuration.
virtualbox: 1. /u01/app/12.1.0.1/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>
virtualbox:
virtualbox: Note:
virtualbox: 1. This script must be run on the same host from where installer was run.
virtualbox: 2. This script needs a small password properties file for configuration assistants that require passwords (refer to install
guide documentation).
virtualbox:
virtualbox:
virtualbox: Changing permissions of /u01/app/oraInventory.
virtualbox: Adding read,write permissions for group.
virtualbox: Removing read,write,execute permissions for world.
virtualbox:
virtualbox: Changing groupname of /u01/app/oraInventory to oinstall.
virtualbox: The execution of the script is complete.
virtualbox: Check /u01/app/12.1.0.1/grid/install/root_vagrant-oracle65_2013-12-23_14-24-39.log for the output of root script
virtualbox: Using configuration parameter file: /u01/app/12.1.0.1/grid/crs/install/crsconfig_params
virtualbox: LOCAL ADD MODE
virtualbox: Creating OCR keys for user 'grid', privgrp 'oinstall'..
virtualbox: Operation successful.
virtualbox: LOCAL ONLY MODE
virtualbox: Successfully accumulated necessary OCR keys.
virtualbox: Creating OCR keys for user 'root', privgrp 'root'..
virtualbox: Operation successful.
virtualbox: CRS-4664: Node vagrant-oracle65 successfully pinned.
virtualbox: 2013/12/23 14:24:45 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
virtualbox: ←[0m
virtualbox:
virtualbox: vagrant-oracle65 2013/12/23 14:25:06 /u01/app/12.1.0.1/grid/cdata/vagrant-oracle65/backup_20131223_142506.olr
virtualbox: ←[1m2013/12/23 14:25:06 CLSRSC-327: Successfully configured Oracle Grid Infrastructure for a Standalone Server
virtualbox: ←[0m
virtualbox: ←[0m
virtualbox: Parsing command line arguments:
virtualbox: Parameter "silent" = true
virtualbox: Parameter "responsefile" = /u01/app/12.1.0.1/grid/assistants/netca/netca.rsp
virtualbox: Done parsing command line arguments.
virtualbox: Oracle Net Services Configuration:
virtualbox: Profile configuration complete.
virtualbox: Oracle Net Listener Startup:
virtualbox: Listener started successfully.
virtualbox: Listener configuration complete.
virtualbox: Oracle Net Services configuration successful. The exit code is 0
virtualbox: Listener LISTENER is enabled
virtualbox: Listener LISTENER is running on node(s): vagrant-oracle65
virtualbox: stage database found ..
virtualbox: oraInventory in /u01/app/oraInventory
virtualbox: Oracle Base for grid is /u01/app/grid
virtualbox: Oracle Home for grid is /u01/app/12.1.0.1/grid
virtualbox: Starting Oracle Universal Installer...
virtualbox:
virtualbox: Checking Temp space: must be greater than 500 MB. Actual 7546 MB Passed
virtualbox: Checking swap space: must be greater than 150 MB. Actual 5999 MB Passed
virtualbox: Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-23_02-25-16PM. Please wait ...You can find the lo
g of this install session at:
virtualbox: /u01/app/oraInventory/logs/installActions2013-12-23_02-25-16PM.log
virtualbox: The installation of Oracle Database 12c was successful.
virtualbox: Please check '/u01/app/oraInventory/logs/silentInstall2013-12-23_02-25-16PM.log' for more details.
virtualbox:
virtualbox: As a root user, execute the following script(s):
virtualbox: 1. /u01/app/oracle/product/12.1.0.1/dbhome_1/root.sh
virtualbox:
virtualbox:
virtualbox: Successfully Setup Software.
virtualbox: Check /u01/app/oracle/product/12.1.0.1/dbhome_1/install/root_vagrant-oracle65_2013-12-23_14-27-35.log for the output of root
script
==> virtualbox: Gracefully halting virtual machine...
==> virtualbox: Preparing to export machine...
virtualbox: Deleting forwarded port mapping for SSH (host port 3213)
==> virtualbox: Exporting virtual machine...
==> virtualbox: Unregistering and deleting virtual machine...
==> virtualbox: Running post-processor: vagrant
==> virtualbox (vagrant): Creating Vagrant box for 'virtualbox' provider
virtualbox (vagrant): Copying: output-vagrant-oracle65\packer-vagrant-oracle65-disk1.vmdk
virtualbox (vagrant): Copying: output-vagrant-oracle65\packer-vagrant-oracle65-disk3.vmdk
virtualbox (vagrant): Copying: output-vagrant-oracle65\packer-vagrant-oracle65-disk4.vmdk
virtualbox (vagrant): Copying: output-vagrant-oracle65\packer-vagrant-oracle65-disk5.vmdk
virtualbox (vagrant): Copying: output-vagrant-oracle65\packer-vagrant-oracle65.ovf
virtualbox (vagrant): Renaming the OVF to box.ovf...
virtualbox (vagrant): Compressing box...
virtualbox (vagrant): Compressing: Vagrantfile
virtualbox (vagrant): Compressing: box.ovf
virtualbox (vagrant): Compressing: metadata.json
virtualbox (vagrant): Compressing: packer-vagrant-oracle65-disk1.vmdk
virtualbox (vagrant): Compressing: packer-vagrant-oracle65-disk3.vmdk
virtualbox (vagrant): Compressing: packer-vagrant-oracle65-disk4.vmdk
virtualbox (vagrant): Compressing: packer-vagrant-oracle65-disk5.vmdk
Build 'virtualbox' finished.
==> Builds finished. The artifacts of successful builds are:
--> virtualbox: VM files in directory: output-vagrant-oracle65
--> virtualbox: 'virtualbox' provider box: oracle65.box
real 35m10.069s
user 0m0.000s
sys 0m0.000s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment