The free alternative is Virtual Box, but it requires converting the VMWare vmdk file to an the open ovf format. Before converting the vmdk file, you will need to use your favorite OSX rar archive tool (MacPar, UnRarX) to reassemble the CartoDB vm which is split into three rar files.
Download the ovftool from VMWare and install. Before converting the vmdk to an ovf file you will need to edit the vmx file so that the path to the vmdk is not hardcoded.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ../ubuntu-11.10-64bit-CartoDB-vmdk/ | |
$ vi cartodbUbuntu1110-64bit.vmx | |
# change this: | |
scsi0:0.fileName = "/root/vmware/cartodbUbuntu1110-64bit.vmdk" | |
# to this | |
scsi0:0.fileName = "cartodbUbuntu1110-64bit.vmdk" |
Convert the vmdk to an ova file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spara ~/Downloads$ /Applications/VMware\ OVF\ Tool/ovftool ./ubuntu-11.10-64bit-CartoDB-vmdk/cartodbUbuntu1110-64bit.vmx ./cartodb.ova | |
Opening VMX source: /Users/sparafina/Downloads/ubuntu-11.10-64bit-CartoDB-vmdk/cartodbUbuntu1110-64bit.vmx | |
Opening OVA target: /Users/sparafina/Downloads/cartodb.ova | |
Writing OVA package: /Users/sparafina/Downloads/cartodb.ova | |
Disk Transfer Completed | |
Completed successfully |
Import the ova into VirtualBox and accept the default settings, they can be changed later.
The next step is to configure the VirtualBox network so that CartoDB is accessible to your host machine. To do this setup the Host-only Adapter. The Host-only Adapter creates a private network that between the host machine and guest machines.
The vboxnet0 Host-only Adapter is configured from the VirtualBox Preferences menu.
Click on the 'Edit' or screwdriver icon to display the configuration menu. Note that the adapter's address is 192.168.56.1, which is the IP address that the guest machine accesses the host.
Now that we know the adapter's address, we can configure the network interface of the guest to have a static IP that is addressable from the host machine. Edit the /etc/network/interfaces file as root to set the static address. It should look like this:
Reboot the guest to start the network with the assigned static IP.
The CartoDB virtual machine is configured with two accounts, a devuser account and an admin account. To access these accounts, two URLs have been configured: http://devuser.localhost.lan (user/password: devuser/devuser) and http://admin.localhost.lan (user/password: admin/admin).
To access these accounts configure the /private/etc/hosts file on the host side (OSX) by adding these entries:
After updating the hosts file, we can access our local instance of CartoDB through a browser. Note: add 'http://' to the URL so that the browser knows you are looking for the local CartoDB site. The devuser map looks like this:
Happy mapping!
The vboxnet0 Host-only Adapter is configured from the VirtualBox Preferences menu.
Click on the 'Edit' or screwdriver icon to display the configuration menu. Note that the adapter's address is 192.168.56.1, which is the IP address that the guest machine accesses the host.
Now that we know the adapter's address, we can configure the network interface of the guest to have a static IP that is addressable from the host machine. Edit the /etc/network/interfaces file as root to set the static address. It should look like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The primary network interface | |
auto eth0 | |
# The host-only network interface | |
iface eth0 inet static | |
address 192.168.56.101 | |
netmask 255.255.255.0 | |
broadcast 192.168.56.255 | |
network 192.168.56.0 |
Reboot the guest to start the network with the assigned static IP.
The CartoDB virtual machine is configured with two accounts, a devuser account and an admin account. To access these accounts, two URLs have been configured: http://devuser.localhost.lan (user/password: devuser/devuser) and http://admin.localhost.lan (user/password: admin/admin).
To access these accounts configure the /private/etc/hosts file on the host side (OSX) by adding these entries:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
192.168.56.101 devuser.localhost.lan | |
192.168.56.101 admin.localhost.lan |
After updating the hosts file, we can access our local instance of CartoDB through a browser. Note: add 'http://' to the URL so that the browser knows you are looking for the local CartoDB site. The devuser map looks like this:
Happy mapping!