Skip to content

Instantly share code, notes, and snippets.

@benr
Created May 2, 2013 20:34
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benr/5505198 to your computer and use it in GitHub Desktop.
Save benr/5505198 to your computer and use it in GitHub Desktop.
SmartOS Vagrant Box, first preview. Lacks VBox Extensions for disk sharing. (smartos-20130419T073558Z)
vagrant box add smartos http://cuddletech.com/tmp/smartos-latest.box
mkdir smartos && cd smartos
vagrant init smartos
vagrant up
vagrant ssh
@benr
Copy link
Author

benr commented May 2, 2013

Things to note:

  • There is no sudo in SmartOS; use "pfexec" instead. (I may alias to sudo in the future for compatibility)
  • The sendmail service slows down service startup... give it a minute and it'll get out of the way
  • Password for vagrant and root users is "vagrant"

@bixu
Copy link

bixu commented May 2, 2013

nice! i think the next step will be to write a vagrant plugin that allows us to ssh to a default zone, rather than the global zone.

@aszeszo
Copy link

aszeszo commented May 2, 2013

Nice one benr. Check the scripts here out to see how I have integrated vbox/vmware tools with smartos: http://dlc-int.openindiana.org/aszeszo/vagrant/scripts/

bixu, check the boxes here out: http://dlc-int.openindiana.org/aszeszo/vagrant/ They focus on the actual zones and GZ is made to be transparent. shared dirs are passed to the non-GZ as well. Sorry for not making the boxes more public.

@benr
Copy link
Author

benr commented May 3, 2013

Nice, aszeszo, you're much further along than I and those are what many users are really looking for.

@bixu
Copy link

bixu commented May 3, 2013

@aszeszo, @benr, this is great. at wanelo we want to look into letting veewee automate the process of making new smartos boxes

@olek
Copy link

olek commented Jul 25, 2013

Question from smartos noobie that have not touched vagrant for long time: when I add smartos box (either created by @aszeszo (smartos163) or @benr), all I get is an error 'Failed to untar the box file' and bunch of utter gibberish in ~/.vagrant.d/boxes/smartos directory. Tried on 2 different hosts (mac os x and ubuntu), same result. Added ubuntu box at the same time with great results. What am I doing wrong?

@meatballhat
Copy link

^--- what @olex said. @aszezo do you have those scripts in version control somewhere so that we can clone/contribute?

@meatballhat
Copy link

@olek - fwiw, a common pitfall with vagrant is using the one from rubygems rather than vagrant downloaded from http://downloads.vagrantup.com/. I was able to successfully import @aszeso's base191-64 box, although I'm still unable to get it to respond to SSH.

@meatballhat
Copy link

Is this the right place to watch? https://github.com/jacobgroundwater/vagrant-smartos

@wilas
Copy link

wilas commented Sep 9, 2013

I've automated the process of making new SmartOS vboxes ("Vagrant SmartMachines" as well) using vbkick (https://github.com/wilas/vbkick) and @aszeszo script. Template is available here: https://github.com/wilas/vbkick-template-smartos
Note: It support booting SmartOS from USB or ISO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment