Using the Drupal Quickstart-0.9.1 development environment in vmware Fusion

  • GeSHi library error: Could not find a known version of the GeSHi library in directory sites/all/modules/geshifilter/geshi.
  • GeSHi library error: Could not find a known version of the GeSHi library in directory sites/all/modules/geshifilter/geshi.
  • GeSHi library error: Could not find a known version of the GeSHi library in directory sites/all/modules/geshifilter/geshi.
by Adrian 20th Apr, 2011 @ 12:14

The Drupal Quickstart project is a prepackaged Drupal development environment based on a VirtualBox virtual machine running Ubuntu. It's provided as a portable "Open Virtual Appliance" .ova file. So if like me you already run vmware Fusion on OSX and have no intention of running VirtualBox alongside too, it should be possible to use Quickstart in Fusion. This, it turns out, is slightly less easy than expected.

I can help.

You need to convert the .ova with a command line tool provided by vmware called 'ovftool'. This is supplied in the full installer of Fusion 3.1. You can check if you have ovftool by opening Terminal.app and doing: [geshifilter-code] ls -al "/Library/Application Support/VMware Fusion" [/geshifilter-code] if there's an ovftool directory you can move on, if not head over to vmware and download the 436MB installer that includes McAfee, as described in detail by BUNCHC.

After you've reinstalled, or if you have ovftool installed already, you still need to get ovftool working, daemonchild details that, but ovftool is now at version two so we modify his commands to these: [geshifilter-code] cd "/Library/Application Support/VMware Fusion/ovftool" sudo mkdir /usr/local/bin/ovftool2.0 sudo cp -R * /usr/local/bin/ovftool2.0 sudo ln -s /usr/local/bin/ovftool2.0/ovftool /usr/local/bin/ovftool [/geshifilter-code] to verify that ovftool is working try: [geshifilter-code] ovftool --help [/geshifilter-code]

Once we have ovftool installed and working we can attempt the actual conversion. To cut a long story short we need to untar the .ova: [geshifilter-code] tar xf "Quickstart 0.9.1.ova" [/geshifilter-code] giving us the .vmdk disk image and .ovf xml file: [geshifilter-code] Quickstart 0.9.1.ovf Quickstart 0.9.1-disk1.vmdk [/geshifilter-code] Then edit the .ovf to change the hard drive driver type (hat tip to lausser for showing how), by changing the section starting at line 66 to read: [geshifilter-code] <Item> <rasd:Address>0</rasd:Address> <rasd:Caption>sataController0</rasd:Caption> <rasd:Description>SCSI Controller</rasd:Description> <rasd:ElementName>SCSI Controller 0</rasd:ElementName> <rasd:InstanceID>5</rasd:InstanceID> <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType> <rasd:ResourceType>6</rasd:ResourceType> </Item> [/geshifilter-code] Below, I've attached a diff of the .ovf file if you prefer to use that.

Now we're ready to carry out the actual conversion, you'll need to alter the paths in this command to suit the location of the quickstart .ovf and the destination for the .vmx: [geshifilter-code] ovftool --lax -st=OVF -tt=VMX file://quickstart-vbox/Quickstart\ 0.9.1.ovf Quickstart-0.9.1.vmx [/geshifilter-code] You should see some warnings, but the conversion will progress with a percentage indicator as it works though the vmdk file. The end result will be two files, a large Quickstart-0.9.1-disk1.vmdk file, and a smaller Quickstart-0.9.1.vmx file. Double click on the vmx file to have it open in Fusion and boot the vm.

When it's running you'll have some tweaking to do. Start by installing the vmware tools, and uninstalling the virtualbox additions (I uninstalled three packages with the synaptic package manager: virtualbox-ose-guest-dkms, virtualbox-ose-guest-x11 and virtualbox-ose-guest-utils). With that done you can shut down the vm and alter it's Fusion settings. I increased the RAM and added a sound device.

I already have my own development vm setup, so I'm looking to use Quickstart to finally learn how to do proper profiling with xdebug. But I'm impressed with the work that's already gone into Quickstart, so a big thank you to Michael Cole and anyone that's provided patches. Happy Drupal developing!

AttachmentSize
qs.ovf_.diff870 bytes
No. 1 by Anonymous
9th Mar, 2012 @ 8:39

Tried this but could not get it working. Downloaded Quickstart version 1.0, tar -xf ova file and this gave me a vmdk . Created a new VM with this vmdk as existing disk (create a copy) and voila : Quickstart 1.0 ready to use .

VMWare Fushion 3.1.3

No. 2 by Adrian
9th Mar, 2012 @ 12:29

So what didn’t work? Sounds like it’s a lot easier now, maybe changes in Quickstart 1.0 hindered or helped?

To be honest I never actually used Quickstart, even after going to all that effort getting it working!