Reviewboard on VirtualBox
For my upcoming cf.Objective() presentation on code reviews I needed to setup a working copy of Review Board. I’ve done this before and the installation isn’t too bad, but could be easier. Enter Bitnami who now offer a Review Board ‘stack’.
Bitnami has native installers for Linux as well as ‘virtual’ images for VMWare and VirtualBox. Since I imagine most of my cf.Objective() audience will be on Windows or Mac I opted to use the VM option.
- Host - Ubuntu Linux 11.10
- Guest - ‘Ubuntu’ version of the Bitnami image which is 10.10.
- Download VirtualBox
- Download Bitnami Review Board image
- Install VirtualBox
- Unzip Review Board
- Run VirtualBox
The Bitnami instructions indicate you can ‘import’ the image they provide (for VMWare) into VirtualBox by importing the supplied bitnami-reviewboard-1.6.5-0-ubuntu-10.10.ovf file. I tried that but quickly ran into several errors.
Being familiar with VirtualBox I opted for the manual setup:
- Create a new Virtual Machine and set that it is a Linux (Ubuntu or SuSE) machine.
- Configure RAM to 512 or higher.
- Choose “existing hard disk” and select the BitNami “vmdk” file.
- Once the machine creation finishes, go to Settings -> System -> Processor -> Enable PAE
- Go to Storage -> IDE Controller -> Add a new IDE controller and select the BitNami vmdk file.
- Remove the SATA hard disk.
At this point they indicate you can start your machine, and I did but I promptly discovered I couldn’t access the VM over the network. After some research and trial and error I discovered I needed to tweak some additional VirtualBox settings, YMMV.
If you do start the machine - take note of the information provided! See the Logging In section below.
My home network is setup on 192.168.1.xxx and my router provides DHCP.
When I started the VM it notified me I could access Review Board at 10.0.2.15.
- Open your VM’s Settings.
- Click Network.
- Under the Adaptor 1 tab it probably says Attached to: NAT
- Change it to Attached to: Bridged Adaptor
- If you have a wired and wireless adaptor you may need to tweak the Name value. On my wireless laptop I had ETH0 and WLAN0. I selected WLAN0.
- Click OK
- Start your Review Board machine
When started pay attention to the initial screen. This will contain important information in regards to username and passwords, as well as the IP address you need to access Reviewboard.
- It will provide you the login for the Review Board application. In my case it was user/bitnami.
- It will provide you with the login to the Ubuntu console. In my case it was bitnami/bitnami
- It will provide you with the IP address of the guest VM to connect to. After making the changes above - my Bitnami stack correctly indicated it had received an address from my DHCP: 192.168.1.7
Open up a browser and enter that IP address and you should be prompted with a Review Board login screen:
In addition to Review Board Bitnami has a host of other ‘stacks’ that allow you to quickly setup a proper development environment:
- Redmine (issue tracker)
- Subversion (version control)
- DokuWiki (wiki / documentation)
- Tomcat / JBoss
- Generic *AMP stacks (LAMP, WAMP, MAMP)