Creating the bitnami stack on OSX
Install (a couple of times until it works, dagnabit) a new version of virtual box from http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html
Download the bitnami tomcat vm image from http://bitnami.com/stack/tomcat (the folder contains bitnami-tomcatstack...vmdk)
When starting a new virtual box image, pay attention to settings here: http://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Virtual_Box
- type: Linux
- version: Ubuntu (64 bit)
- Use an existing virtual hard drive file (that bitnami-tomcatstack...vmdk file mentioned earlier)
- Create ->
- In settings, for Network, select Attached to: Bridged Adapter
- Press the big Start arrow
On first login “bitnami” with password “bitnami”. Your first login will force you to select a new password.
For java tools, I added this to ~/.bashrc
JAVA_HOME=/opt/bitnami/javaTo verify the success, look in your local mac browser for the tomcat server at the address presented on the VM console (in my case “You can access the application at http://10.0.0.6/ ***”)
export JAVA_HOME
Getting a shared folder that is ~/Desktop on both host and client (via Guest Additions):
1) download VBoxGuestAdditions_4.3.4.iso from here: http://download.virtualbox.org/virtualbox/4.3.4/
2) Then in virtual machine
$ sudo apt-get update3) then (partially from http://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#How_to_install_VirtualBox_Guest_Additions_on_BitNami_Virtual_Appliances.3f)
$ sudo apt-get upgrade
$ sudo apt-get install dkms
$ sudo reboot
$ uname -a ### to get kernel version, e.g. 3.2.0-53-virtual4) use VBoxGuestAdditions.iso stuff from the vbox menu Devices -> CD/DVD Devices -> Choose a Virtual CD/DVD… as found at http://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#How_to_install_VirtualBox_Guest_Additions_on_BitNami_Virtual_Appliances.3f to select “VBoxGuestAdditions.iso” (wherever you downloaded that to in step 1)
$ sudo apt-get -y install dkms build-essential linux-headers-3.2.0-53-virtual
$ sudo reboot
$ sudo mkdir /mnt/cdrom5) Recreate (or update or something) the VB guest addition modules:
$ sudo mount /dev/cdrom /mnt/cdrom
$ cd /mnt/cdrom
$ sudo sh ./VBoxLinuxAdditions.run --nox11 # ignore “could not find x.org…” error
$ sudo /etc/init.d/vboxadd setup6) In the VB menu Devices -> “Shared Folders Settings...” set up ~/Desktop to be shared (auto-mounted, permanent, and r/w) as “Desktop”
$ sudo reboot
7) Mount that Desktop menu that was mounted 23r2
$ mkdir ~/Desktop8) In theory I should have been able to make that mounting automatic, even after reboots, via an entry in /etc/fstab but I was never able to get that working. So in the end, to get the mounting happen each time I log in, I added this line to ~/.bashrc
$ sudo mount -t vboxsf ~/Desktop Desktop
sudo mount -t vboxsf ~/Desktop DesktopNot that from the VM side, ~/Desktop is read-only for the bitnami user, and so “sudo” must be used for a bunch of the commands to read and copy files and such.
SSH to the bitnami machine
On the bitnami shell:
$ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.confOn my mac:
$ sudo start ssh
# ssh bitnami@10.0.0.6
That's what worked for me. Good Luck!
No comments:
Post a Comment