Virtual Machines: Windows 7 host and Ubuntu 9.10 guest

I am trying out Sun’s Virtual Box this term. I’m going to be doing a fair amount of development in C and C++ which means using gcc on Ubuntu. I’m pretty invested in the software on my Windows 7 laptop and yes, I’ve got Cygwin, but I prefer working with C and C++ on Ubuntu. I tried dual booting Vista and Ubuntu before upgrading from Vista to Windows 7, and I generally didn’t like the whole dual-boot experience.

Enter Sun’s Virtual Box. I worked with virtual servers using VMWare while studying databases at BCIT last year, but I found VMWare was a real memory pig and I wanted to try something that was a) open source, b) free and c) free.

Setting up Ubuntu 9.10 as a guest on my Windows 7 host was almost too easy. The only problem? The Virtual Box User Manual doesn’t include a clear step-by-step recipe for installing Guest Additions, which is the Virtual Box “partner” we have to install on the virtual machine. It integrates the virtual machine with the host machine so you don’t have to do weird screen resize things or mouse captures or anything that offends the intuition. Here’s what I did:

  1. download and install Virtual Box
  2. download the iso for Ubuntu 9.10 and use your favourite iso mounting software to mount it in your host (I used VirtualCloneDrive)
  3. start Virtual Box and create a new Virtual Machine
  4. install Ubuntu in the Virtual Machine (Virtual Box’s wizard asks some set-up questions and you just point it to the iso and wait–go make a sandwich or something)
  5. once Ubuntu’s up and running, choose Devices/Install Guest Additions from the menu bar in the virtual machine’s window
  6. ignore the weird warning message Ubuntu spits out (check the app bar to find it if it’s not maximized)
  7. double-click the GUESTADDITION disc which appears on the Ubuntu desktop
  8. run the autorun.sh script
  9. reboot the Ubuntu machine.  Done.

It’s seriously that simple.  It’s completely moron-proof. I did this without any trouble at all. The Virtual Box wizards take over when you create a new virtual machine, and then when you open it the first time it cues you for the iso of the operating system (in my case Ubuntu 9.10) to install.

I have 2 partitions on my hard drive, a big Windows 7 partition and a smaller 25 GB docs folder which is mounted to my Windows as drive D called shared. I wanted to give the Ubuntu virtual machine read/write access to my D drive, and I did this in two steps:

  1. close the virtual machine and edit its Shared Folders (at the bottom of the virtual machine’s Details tab) to include shared
  2. reboot the virtual machine and use this command in a terminal window:
sudo mount -t vboxsf shared /home/christopher/shared

Again, crazy easy.

Talking about crazy easy, I made us new pajama bottoms during the Christmas break and started planning my next big art project.  I’ll post some pictures about it on orangewool once more work is done.

  • Share/Bookmark

Exporting email from Evolution to Outlook 2007

Talk about nightmare on Robson Street!

A few weeks ago I decided to export about half a gig of accumulated email from Evolution on my Ubuntu partition to Outlook 2007 on my Vista partition <insert Vista jokes here>. Why? Last year I was doing a lot of C and C++ development so I was living in Linux-land and rarely using Vista. This year the tables have turned.

What a hassle. I use net mail now, but there’s a lot of data in the local folders that I need to access from Vista. Outlook uses EML format files, and Evolution uses MBOX files.

I discovered that there’s no direct way to do this. There’s a lot of information on the net for people who are migrating from Outlook 07 to Evolution, but not much about the other direction. There is, however, an add-on for Thunderbird that lets us export MBOX files as EML files for import to Outlook. Here’s the circuitous but effective solution I ultimately used:

  1. Download and install Thunderbird in Vista.
  2. Reboot in Ubuntu and copy the Evolution mail files to the Vista partition.
  3. Reboot in Vista and put the Evolution files in the appropriate Thunderbird directory (based on http://maketecheasier.com/how-to-migrate-from-evolution-to-thunderbird-in-ubuntu-intrepid/2008/12/04, though I didn’t install Thunderbird in Ubuntu).
  4. Download and install this Thunderbird add-on which, I think, was written by some helpful Dane (http://nic-nac-project.de/~kaosmos/mboximport-en.html).
  5. For each mail folder in Thunderbird, use the add-on by right-clicking the folder and choosing Tools – ImportExport in mbox/eml format – Export all messages in the folder – EML format.
  6. Open Windows Mail (in Vista, this replaced Outlook Express).
  7. In Windows Mail, choose File – Import – Messages – Windows Live Mail, and find the folder containing the files you just exported from Thunderbird.
  8. There’s some tweaking here. I think you’re supposed to be able to import all the files at once, but it only worked file by file for me. Laborious, but it worked.
  9. Open Outlook 2007 and Import from Windows Mail. This should copy everything from Windows Mail to Outlook.
  10. If you’re hard-drive space conscious, delete the mail folders from Windows Mail. delete the mail folders from Thunderbird and then uninstall Thunderbird.

It took a while, so if you can find a better solution let me know.

  • Share/Bookmark