wget http://download.virtualbox.org/virtualbox/4.1.16/VirtualBox-4.1.16-78094-OSX.dmg
open VirtualBox-4.1.16-78094-OSX.dmg
# double click .pkg to install
gem install vagrant --no-ri --no-rdoc
mkdir test
cd test
wget https://gist.github.com/raw/2883299/f5a64bf9f9445a4ef585ceec23d148ce83220808/Vagrantfile
export COUCHBASE_HOST=192.168.2.254 # Need to set an IP to bind the VM to.
vagrant up
➜ vagrant up
[default] Importing base box 'lucid32'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.1.14
VirtualBox Version: 4.1.16
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] Running provisioner: Vagrant::Provisioners::Shell...
stdin: is not a tty
wget: couchbase-server-community_x86_2.0.0dp4r-730-rel.deb
install: couchbase-server-community_x86_2.0.0dp4r-730-rel.deb
Selecting previously deselected package couchbase-server.
(Reading database ...
26974 files and directories currently installed.)
Unpacking couchbase-server (from couchbase-server-community_x86_2.0.0dp4r-730-rel.deb) ...
Setting up couchbase-server (2.0.0dp4r) ...
* Started couchbase-server
You have successfully installed Couchbase Server.
Please browse to http://lucid32:8091/ to configure your server.
Please refer to http://couchbase.com for additional resources.
Please note that you have to update your firewall configuration to
allow connections to the following ports: 11211, 11210, 4369,
8091, 8092 and from 21100-to-21299.
By using this software you agree to the End User License Agreement.
See /opt/couchbase/LICENSE.txt.
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
fin.
Vagrant will not exit cleanly after running the "shell provisioner" to provision couchbase (no idea why as of yet) so you need to ctrl+c twice quickly after the above output is complete.
Thank you, David.
This vagrant also works on my Windows 8 host.
Just create a folder, download the .vagrant file into it manually, and run in command line:
set COUCHBASE_HOST=192.168.2.254
vagrant up
Also I ran command line with admin rights.