Merry Christmas!

Just want to wish you all a very Merry Christmas.

Presents? I got a 4th generation iPod Nano (in blue), a Canon EOS 350D digital camera (passed down from my father), a digital photo keyring, Denon in-ear headphones, socks and a veritable feast of edible treats.

How to migrate a Parallels virtual machine to VirtualBox

A screenshot of the web site for VirtualBox

Despite Parallels and VirtualBox both being programs which run virtual machines on Mac OS X, they both use different file formats for storing the virtual machines on disk. Though I believe Parallels will open a VirtualBox disk, VirtualBox cannot automatically import Parallels disks. But it’s not impossible…

If the guest operating system, i.e. the system that is running inside Parallels, is Windows 2000/XP/Vista, then it is possible to use a free tool from VMWare to do the conversion. Here’s a step-by-step:

1. Back up your virtual machine

Seriously. We’ll need to modify it a bit before it’s converted, so you’ll want a backup copy just in case things go wrong, or if you may use Parallels again in future.

2. Uninstall Parallels Tools

This is the modifying bit. Load your Windows virtual machine in Parallels, and uninstall Parallels Tools (the helper program that adds drivers and clipboard sharing, and other stuff). This is important as otherwise your virtual machine won’t boot in VirtualBox – and I know this from experience. You also can’t uninstall Parallels Tools unless you are running Parallels at the time.

3. Close all programs

Close as many running programs in your virtual machine as possible. We’re about to take a snapshot image of it while it is running, so any unsaved data may be lost when you boot the image in VirtualBox. That includes programs with icons in your notification area, such as virus scanners, instant messaging programs etc.

4. Install VMWare Converter

Once Parallels Tools has been uninstalled (you may need to reboot the virtual machine for this), we can begin the conversion process using a tool ironically made by VMWare. Go to the download page for the VMWare Converter in whatever web browser you use in your virtual machine (it’s a Windows program) Download it, and then install it.

Run the Converter tool, and click ‘Convert Machine’ – this should pop up a wizard which walks you through the process of setting up a new virtual machine image. You want to tell it to use a ‘Physical Computer’, and then on the next screen choose ‘This Local Machine’. Select the hard disk of the virtual machine and leave ‘Ignore page file and hibernation file’ ticked as this will just bloat the new virtual disk with unnecessary rubbish.

For the type of virtual machine, select ‘Other virtual machine’, and on the next screen, give it a name (e.g. ‘Windows Vista’). Next, you will also need to save it somewhere, and this should not be the existing hard disk of the virtual machine. You can either use your Mac’s main hard disk, mapped to drive ‘Z:’ under Parallels, a network drive or an external drive if you have it forwarded through to the virtual machine. You should be able to use the top option for the type (i.e. ‘Workstation 6.x’) but if it doesn’t work try another option. Keep ‘Allow disk to expand’ checked on the next screen. Click through until you’re ready to complete, and start the conversion.

5. Go and grab a cup of coffee

Or go out shopping. Or read a few chapters of War and Peace. Either way, the machine will take a significant amount of time to convert – mine took around 45 minutes and was only around 15 GB. Bigger disks may well take longer. It helps if you don’t have lots of other programs running on your Mac at the same time as then more of your CPU juice can be used for the conversion.

6. Shut down the machine in Parallels

Now that you’ve exported the machine, shut down Windows and close Parallels. This is mostly so that you can stay within the terms of the license agreement for Windows which won’t allow multiple instances.

7. Import the disk into VirtualBox

Open VirtualBox, choose ‘File’ and then ‘Virtual Disk Manager’. Add the disk file that you created, and click OK. Then click ‘New’ to create a new virtual machine, and select the correct operating system from the list. Try to ensure that you give the virtual machine the same settings (such as RAM size) as you did in Parallels. When asked for a hard disk, click the ‘Existing’ button and choose the disk file that you created from the list. Then click Finish.

8. Boot up in VirtualBox

Hopefully all will have gone to plan, and you will be able to boot into Windows as before. All of your files and programs should be there waiting for you.

If, however, you encounter a blue screen mentioning ‘prlfs.sys’ like I did, boot the machine but press F8 during the boot to enter Safe Mode with Command Prompt. Type in cd c:\windows\system32\drivers and then rename prlfs.sys prlfs.sys.old and then reboot – that should get you up and running.

For the inquisitive, prlfs.sys is part of Parallels Tools and this should have been removed as part of step 2, however muggins here forgot to this when he tried it himself and therefore encountered this error.

9. Install VirtualBox Guest Additions

Guest Additions are to VirtualBox what Parallels Tools are to Parallels – in other words, they make Windows sit better in the virtual machine and improve integration with the host operating system. On the main VirtualBox menu, select Devices and then ‘Install Guest Additions’ and follow the on-screen instructions. Though this is optional, it will improve the experience of using Windows in VirtualBox.

Hopefully now you’ll be up and running in VirtualBox. Feel free to post comments below and I’ll try to do what I can to answer them but I’m not the world’s greatest expert in this. I also don’t know how to do this in other versions of Windows or other operating systems.

Posts 0 – 4 Comments

Weirdly, there’s been a small increase in the number of comments on here over the past few days, despite the fact I’ve only managed one post so far this month.

Main reason for the lack of posts has been partly because I’ve been very busy, partly because I’ve had nothing interesting to write about, and partly because my life isn’t that great right now. Those of you who know me better will know the details but I don’t want to say much publicly until the situation calms down. Which it should do soon, I hope.

Me and Hari are fine, by the way.

Trying out VirtualBox 2

VirtualBox 2 is out. VirtualBox is Sun Microsystems’ entry into the Virtual Machine market, and competes against Parallels and VMWare. Unlike the others, it is free and comes in an open source flavour.

Since I have been using Parallels for some time, and VirtualBox is free, I thought I’d give it a spin on my MacBook, using Mac OS X as the host operating system. Parallels is excellent for running Windows Vista (and presumably XP), but its Linux support has been a little lacklustre and the past 2 releases have not supported Ubuntu 8.04 despite being released after Ubuntu has been released.

For version 2, quite a bit of work has gone on to make VirtualBox fit into OS X better, and it shows – though it still feels like a port, it looks very much look a native Mac application and it’s very easy to get going. Since I only have 1 Windows Vista license and I’m already running it in Parallels, I decided to try it with Ubuntu 8.04.

And it seems to work well. Plus, VirtualBox’s ‘Guest Additions’, software for the guest OS which enhances support, work for Ubuntu 8.04 – unlike Parallels Tools which only work for older Ubuntu releases. They also go further; not only do you get dynamic screen sizing (the display area adjusts depending on the virtual machine’s window size), seamless mouse pointer integration and time synchronisation – there’s also clipboard synchronisation and an attempt at desktop integration, which resembles Coherence mode in Parallels, but it works under Linux as well as Windows. However, it’s a bit buggy and I had some rendering issues while trying to use it.

Other down points? There’s no importing from other disk formats – so if you already have virtual machine set up in Parallels you can’t use it straight-away in VirtualBox (although if you can find a tool that converts the disk to the VMDK format you may have some luck). And PowerPC Mac owners are out of luck as VirtualBox is Intel-only, although running an Intel VM on a PowerPC machine would be very slow anyway.

That all being said, VirtualBox is a strong contender, and you can’t argue with free. For many, this will do everything that they demand from its commercial rivals, without costing a penny.

Knock-off Nigel

When you watch a British DVD, usually before the film starts, you’ll have to watch this:

But now on TV, we have this:

The message it’s trying to spread is that people who download films or buy counterfeit DVDs are sad, corner-cutting lowlifers – no ‘cool’ person would want to be like Nigel. While I like the less confrontational stance, I somehow doubt the effectiveness of the new ads.

Of course, the best one is the parody by the IT crowd:

More on the upgrade

As promised, here is more about the upgrade I did to my parents’ computer last weekend.

The computer will be 4 years old in October and I wanted to sort out its current shortcomings while also making it capable of running for at least another 2-3 years. The agreed budget was £100, about 6 times less than the original cost of the computer.

In the end, we went for the following internal components:

  • 2 GB of Corsair Value Select PC3200 RAM
  • 256MB XFX nVidia GeForce 6200A AGP 4x/8x graphics card
  • A no-brand USB and FireWire PCI card

The memory was the most important part of the upgrade. Originally, the machine only had 512 MB of RAM, and as such was struggling. As a matter of principle I only buy Corsair or Crucial RAM as I know it’s good quality, and on this instance I went for Corsair as it was slightly cheaper and could be shipped as part of the same order from Scan. It was still the most costly aspect of the upgrade at £39.32 (ex VAT), taking the majority of the £100 budget.

Next was the graphics card. Right now the machine has onboard VIA graphics, which can do some basic 3D but not much more (it will just about handle the original World of Warcraft with all of the effects turned off, but it’s not pretty), and it leeches system RAM rather than having its own. Furthermore, the manufacturer has not produced any new drivers for Windows Vista. So, as part of my plan to keep the machine running for a few years, allowing for a potential Vista upgrade is important. I doubt nVidia are due to disappear any time soon, so hopefully this new card will be a safe bet. It also adds DVI and S-Video output, allowing connection to a TV or a more modern TFT screen.

Finally, I added a USB and FireWire PCI card. The machine had 2 USB ports at the front and 2 at the back, but both of those at the back were full and my parents were already having to use a hub. The machine is due to be moved to a room where there is no wired socket for Ethernet, so we’ve opted to go for a USB wireless dongle (the Netgear WG111 previously mentioned), so that would be another USB port used up. As an extra PCI card was only around £5, it made sense to add 4 more ports. It also adds 2 FireWire 400 (IEEE 1394a) ports, which the computer previously lacked; whether my parents will ever use them is perhaps questionable but at least they are there, and it may add resale value to the machine.

These 3 items, plus the Netgear dongle, packing and VAT, came to £100.19, so only a bit over budget 🙂 . The difference is very noticeable – startup times are improved and general performance is much better. The machine is now almost ready for Windows Vista – the only device lacking a Vista-compatible driver is the internal modem, which isn’t in use anyway and could be removed if necessary (it’s made by SmartLink who sold their assets to Connexant in 2006, and then disappeared off the face of the earth. Their latest drivers don’t even work correctly with Windows XP SP2).

Stop… upgrade time!

My parents’ computer is in need of a mid-life upgrade. It was bought in October 2004 and, at the time, gave acceptable performance. But now it’s flagging a bit, in comparison to the latest and greatest. To save you reading the old entry, here’s the specs:

  • AMD Athlon XP 3000+
  • 512 MB RAM
  • 80 GB HD
  • DVD rewriter
  • 64MB onboard graphics
  • Plus all of the usual stuff

Three-and-a-half years on, and it looks like the main weak points are the memory and graphics. The processor is reasonably good, and I’m not inclined to replace it as the prospect quite frankly scares me, and they still have ample space on the hard drive.

512 MB RAM is low by today’s standards, and so I’m proposing an upgrade to 2 GB – the maximum the machine will hold. Upgrading the RAM on Hari’s machine, which is of a similar specification and age, made a big difference and so this would be my first choice.

The graphics are the other aspect I want to upgrade. Right now it’s a VIA onboard job, which as well as being underpowered also lacks Windows Vista drivers, so if my parents do ever upgrade (unlikely, but I wouldn’t rule it out) they would potentially run into problems. The machine does have an unused AGP port, and so a cheap graphics card would be an instant upgrade. It would also return those 64 MB of RAM that it used to the computer, although 64 MB is a drop in the ocean when you have 2 GB.

We still have Hari’s old graphics card lying around (in a static-proof sleeve), which is based on the nVidia GeForce 5200 FX chipset. This was okay for normal use on her computer but seriously impacted her WoW gaming. Now, my parents are hardly likely to be fragging noobs or levelling shadow priests any time soon, but a better card can be bought for very little money. In fact, £25 would buy you something based around the full nVidia GeForce 6200 chipset (as opposed to the budget FX range). So it’s a question of saving £25 and recycling the old card, or getting something better for a little more money.

The computer also needs equipping for Wifi, probably by virtue of a USB dongle, but at less than £10 a piece that’s not a major issue. The total budget for all of this is £100, with the RAM costing about £50 (looking at Crucial and Corsair prices). There’s ample room for a reasonable graphics card, but I’m wondering whether to bother or not.

What do you think?

Films that I own on DVD and haven’t yet watched

Here’s a list of films that I’ve bought on DVD, but, so far, I haven’t actually watched:

  • Shrek 3
  • Harry Potter and the Order of the Phoenix
  • Hellboy
  • Nacho Libre
  • Family Guy presents Blue Harvest

Of those, I haven’t even seen 3 of them at the cinema/on TV.

This is mostly a mental note to make sure that next time there’s nothing good on TV, I get around to actually watching these films – after all, I’ve paid money for them.

Been away, going away…

I’ve been away from this blog for some time – 2 weeks almost – which is mostly due to being busy at work and having very little free time at home. I’ve been playing World of Warcraft a bit more than usual lately, but now have a second level 70 character as a result.

So what’s happened over the past 2 weeks? Well, based on my recent Twitters, here’s what I’ve been up to:

  • Been testing out Firefox 3 RC1 and Thunderbird 3 Alpha 1. Firefox 3 is looking really good now, especially on Macs where the improved performance and native theme make it even more of a joy to use. Thunderbird is obviously an early alpha build but it too is much faster, as it inherits many of the optimisations that were undertaken for Firefox. Unfortunately, it’s not yet very stable, but it is at least usable.
  • Now that I have more than a smidgen of free space on my MacBook, I installed Ubuntu Hardy Heron in Parallels. Unfortunately, despite updating to the latest Parallels release, the Parallels Tools for Linux package doesn’t work with this release of Ubuntu so there’s no adaptive window sizes, cursor integration and clock synchronising. It’s a shame as apparently VMWare Fusion does support the latest Ubuntu release. I haven’t played around with Ubuntu much but it looks good, and including Firefox 3 is a bold but welcome move.
  • Speaking of Twitter, I would recommend the TwitterFox extension if you use Twitter and Firefox, as it’s quite a handy little extension which lets you read and interact with your Twitter friends. It doesn’t have masses of features, but it’s intuitive and it works with Firefox 3 already.
  • Google Reader’s ‘Trends’ feature has an unexpected use as a way of digging out feeds which haven’t updated in a long time. I found one that had gone dead in October 2005 that I was still subscribing to. I also found a few sites which had changed their feed URLs without redirects so I wasn’t receiving updates any more.

This, unfortunately, isn’t the return to regularly scheduled blogging, as on Saturday I’m going away for five nights in camping barn in the Lake District with some friends. It’s really in the back-end of nowhere – it doesn’t even have a connection to the electricity grid so all power comes from a hydro-electric generator, and it’s highly unlikely that there will be any mobile phone reception there either. So until I return on Thursday, you may not hear a peep from me, either on here or on Twitter.

Firefox, Performance, and You

I’ve been blogging quite a bit about the beta versions of Firefox 3, which can be downloaded here, and how much better it is than Firefox 2. If anything, I’m as excited about this version as I was when version 1 came out, as it feels like the browser I have been using for 5 years has now grown up and many of the issues it has had in the past have been ironed out.

In this entry, I am going to go through the various changes that have been made in Firefox which improve the performance of the browser – the startup times, the time it takes to render web pages, and the general responsiveness of the program. Improving performance has been a major focus of the Firefox developers for this release, and the changes are notable.

Memory usage

Do a search for ‘firefox bloated‘ and you’ll get over 500 000 results, many of which complaining that Firefox is big and slow. Many put this down to the amount of memory it uses, which, in Firefox 2, appears to be more than its main competitors – Opera, Internet Explorer and Safari. (Note that, unless you’re using Windows Vista, it is difficult to measure memory usage of individual programs on Windows successfully)

For Firefox 3, reduces Firefox’s ‘memory footprint’ (the amount of memory it needs to run) was one of the main priorities. Improvements have been made both in reducing ‘memory leaks‘ – memory taken by Firefox that isn’t released back to the operating system when it is no longer needed – and memory fragmentation, which means that the memory it does have allocated is used more efficiently. The culmination of this is that, on Windows, Firefox 3 uses less memory while running than any other current web browser. It also released more memory back to the operating system after a period of inactivity, meaning that it’s no longer needed to close and restart the browser because it’s eaten half of your RAM.

How does this improve performance? If you have 16 GB of RAM, then, not much really. But if like most computers your machine has just enough RAM to perform, then it means more of Firefox can fit into RAM and less of it has to use ‘virtual memory’ – essentially a big file on your hard disk which acts as an overflow when all of your RAM is used up, but that is much slower than RAM. It will also allow more space for other programs in RAM, so you’ll be able to run more programs at the same time as your web browser.

Code optimisation

Several parts of Firefox have been re-written to fix bugs and simplify code, and in some cases, improve performance. There have been performance improvements in:

  • Page rendering – a marked performance increase that also means that Firefox 3 will pass the Acid2 test
  • Image drawing – a bug fix sorted out problems with image caching and a new JPEG decoding routine also means that images will render faster

Mac-specific improvements

Firefox 3 finally moves away from the really old QuickDraw API to the newer Cocoa API. As well as giving nicer widgets (scrollbars, buttons etc) on web pages, this also means the whole program should feel more snappy. This, combined with the new theme, means that Firefox 3 is the most Mac-friendly version to date.

Profile guided optimisation

Firefox is now, essentially, compiled twice – the first compile runs as usual, and then the compiler runs a series of tests which optimises the code by looking at what parts of the browser will be most used in a working environment. This has lead to performance improvements of at least 10%.

Because we’re now approaching the ‘release candidate’ stage, ahead of a final release probably some time in June, most of the performance changes have now been made, so if you want to see if it is an improvement for you, now is as good a time as any to try; any further changes will be to fix any major bugs and stability issues. All in all, the massive strides made in performance make Firefox a much bigger competitor in the web browser arena and may win back some of its earlier detractors.