Skip to content

Instantly share code, notes, and snippets.

@bixu
Last active August 29, 2015 14:07
Show Gist options
  • Save bixu/2efdb19eae167a5e63c0 to your computer and use it in GitHub Desktop.
Save bixu/2efdb19eae167a5e63c0 to your computer and use it in GitHub Desktop.
SmartOS in Vagrant!
monolith:~ blake$ vagrant plugin install vagrant-smartos-zones
monolith:~ blake$ mkdir smartos && cd smartos
monolith:smartos blake$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'livinginthepast/smartos'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'livinginthepast/smartos' is up to date...
==> default: Setting the name of the VM: smartos_default_1412188127370_65947
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Remapping platform ISO
==> default: SmartOS platform image 20140404T001635Z exists
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking if machine supports zones: yes
==> default: Checking for zone image d34c301e-10c3-11e4-9b79-5f67ca448df0: not installed
==> default: Importing...
==> default: Creating zone base64 with image d34c301e-10c3-11e4-9b79-5f67ca448df0
==> default: Creating users in zone base64 bffd0068-8582-4362-acb7-74c5b45ffec2
==> default: Zone created with uuid bffd0068-8582-4362-acb7-74c5b45ffec2
==> default: Checking for guest additions in VM...
default: No guest additions were detected on the base box for this VM! Guest
default: additions are required for forwarded ports, shared folders, host only
default: networking, and more. If SSH fails on this machine, please install
default: the guest additions and repackage the box to continue.
default:
default: This is not an error message; everything may continue to work properly,
default: in which case you may ignore this message.
==> default: Rsyncing folder: /Users/blake/smartos/ => /zones/bffd0068-8582-4362-acb7-74c5b45ffec2/root/vagrant
monolith:smartos blake$ vagrant zlogin
[Connected to zone 'bffd0068-8582-4362-acb7-74c5b45ffec2' pts/2]
__ . .
_| |_ | .-. . . .-. :--. |-
|_ _| ;| || |(.-' | | |
|__| `--' `-' `;-| `-' ' ' `-'
/ ; Instance (base64 14.2.0)
`-' http://wiki.joyent.com/jpc2/SmartMachine+Base
[vagrant@bffd0068-8582-4362-acb7-74c5b45ffec2 ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment