Muffinresearch Labs by Stuart Colville

Running VMware images under VirtualBox | Comments (1)

Posted in Linux/Unix, Work on 4th June 2009, 12:11 pm by Stuart

I use the excellent VirtualBox on Ubuntu but I had a specific Debian dev environment VM that I’d previously run under VMware Fusion on my work mac when it used to have OSX on it ;-) . The current versions of VirtualBox (2.2.4 in my case) support running vmdk disks now so it makes it possible to just create a new vm with the appropriate setting for the existing vm image and attach the disks, or so I thought!

When I first ran the image it looked to book up fine – however when it got to mounting the root file system it hung saying “Waiting for root filesystem”

Fortunately whilst looking at the hard-disk settings (with the vm shutdown) I noticed that there were additional adapters for SATA and SCSI. Vmware by default uses SATA so getting it working was a simple as enabling the SATA adapter and setting each disk to the correct SATA ports 0 and 1 in my case as I have 2 hard disks.

hard disk dialogue

Booting the VM resulted in the filesystem mounting correctly and it all working!!!

I then thought it would be a plan to remove the VMware tools so I could install the VirtualBoxGuestAdditions. This turned out to be a bit of a nightmare as running the vmware-tools-uninstaller.pl also deleted my /etc/fstab (WTF?) so when I rebooted everything was read-only.

To get around this I booted back in single user mode and ran the following to remount the root filesystem as rw.

mount -no remount,rw /

Next I recreated the /etc/fstab from a backup and saved it.

Lastly I returned everything back to readonly with

mount -no remount,ro /

and then rebooted. After that it was a case of mounting the VirtualBoxGuestAdditions.iso mounting it at /media/cdrom and then running the installer from there.

Job’s a good’un. If you’re doing the same steps I’d strongly recommend backing-up or checking /etc/fstab is still there after removing vmware tools in case it get’s binned by the vmware tools script of LOL, so you don’t have to go through the same pain to get it all working.

Post Tools

Comments: Add yours

1. On June 16th, 2009 at 4:59 pm justsomeguy said:

Thanks for the heads up. VirtualBox is really shaping up with 2.24, using it instead of Vmware Server now. I found Desktop Effects and audio to be flawless in Ubuntu 9.04… not quite so on Fedora though, but probably a Fedora issue.







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Using Loggerhead with mod_wsgi|(0)

Here’s a post I wrote over on the Project Fondue Blog about our use of Loggerhead with mod_wsgi under Apache. Loggerhead is the rather nice branch viewer for bazaar branches as used on Launchpad.net.

If you’re not already subscribed to the Project Fondue blog feed then I can recommend it, as there should be some interesting posts coming out of there in the coming months (yes I’m unashamedly biased!).

Ubuntu: Turn off changing workspace with mouse wheel|(1)

I found the changing with the workspace with the mouse wheel really annoying. To disable it go to System => Preferences => CompizConfig (available if the compizconfig-settings-manager package is installed) and uncheck “Viewport Switcher” which is under the “Desktop” heading.

Photos on Flickr

© Copyright 2004-10 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.580s.