Created
November 22, 2017 23:08
-
-
Save flaviotorres/1392ef14cc564763f1fe7b1ce2427de6 to your computer and use it in GitHub Desktop.
Solaris Box image for Kitchen CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Since solaris is not available through bento repository (Solaris requires valid license). I had to create our own Solaris Box so that we can use it with Kitchen CI. | |
1) Download solaris VirtualBox image: http://www.oracle.com/technetwork/systems/hands-on-labs/s11-vbox-install-1408628.html | |
Convert ova file from Virtualbox to Vagrant Box: | |
$ VBoxManage import ./sol-11_3-vbox.ova --vsys 0 --eula accept | |
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% | |
Successfully imported the appliance. | |
2) Using VirtualBox, boot and install your solaris server; add vagrant user and vagrant key. | |
3) Get the VM box ID to be exported | |
$ VBoxManage list vms|grep sol-11 | |
4) Export your VM to Vagrant box | |
$ vagrant package --base cce1eddd-5bdc-41e7-b282-176f26d5397b --output sol-11_3.box | |
5) add your box into vagrant (for testing purposes) | |
$ vagrant box add sol-11_3.box --name solaris-11_3 | |
6) Finally create your Vagrantfile | |
Vagrant.configure("2") do |config| | |
config.vm.box = "sol-11_3" | |
end | |
$ vagrant up | |
# You can integrate in your .kitchen.yml file | |
platforms: | |
- name: ubuntu-16.04 | |
- name: ubuntu-14.04 | |
- name: centos-7.3 | |
- name: centos-6.9 | |
- name: solaris-11 | |
driver: | |
box: fla_torres/solaris-11_3 | |
Image to be downloaded: https://app.vagrantup.com/fla_torres/boxes/solaris-11_3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment