Saturday, May 31, 2008

Ubuntu 8.04 on Virtual PC 2007

Installing Ubuntu 8.04 on Virtual PC 2007 running on Vista (or others) as a host operating system can be challenging. You may receive an "unrecoverable processor error" in the virtual machine. Here is how to get around it.

I've found this link which provides a very extensive discussion for how to get Ubuntu 8.04 installed on Virtual PC 2007. All the information is there but it may take quite a while until you extract the right bits and pieces. Otherwise it can be quite time consuming to wade through all those "It doesn't work for me either..." comments.

To save your time I want to provide the approach that worked for me. It is an extract or summary of the information given in that discussion. In particular SteveZ's comment and Russ Cain's comments were extremely helpful.

First Time Install

1. Start Virtual PC 2007 (VPC) (Note that Service Pack 1 for VPC2007 has been available since May 15, 2008)

2. Create a new virtual machine with just the defaults. Create a virtual harddisk large enough for the OS (5 GByte) plus all the additional applications you want to install later. I created a 50 GBytes dynamic disk.

3. Mount the Ubuntu 8.04 iso image (700 MB) downloaded from here by using the menu "CD -> Capture ISO Image..."

4. Then reset the virtual machine.

5. Select the language when Ubuntu's installer is displayed.

6. At the prompt, press F4 and select "Safe Graphics Mode"

7. Press F6 and use the arrow keys to position the cursor just behind "quiet splash". Just after "quiet splash" append "noreplace-paravirt vga=791".

8. Select the "Live CD option" (no modifying your system) and boot. You should get into the LiveCD version with an "Install" link on the desktop.

9. Double-click install and follow the on-screen instructions. At the end reboot. If the screen freezes, wait a while and then reset the virtual machine.

After First Reboot

10. When rebooting wait until you see the line regarding the GRUB menu and press the "Esc" key. If you miss that point it is possible that you will see an "unrecoverable processor error" again. In that case, just reset the virtual machine again.

11. In the GRUB menu select "Ubuntu 8.04, kernel 2.6.24-16-generic" and press "e" to edit this boot configuration.

12. Select "kernel /boot/..." from the menu and press "e" again to edit this entry. Just after "quiet splash" append "noreplace-paravirt" and press enter. (Russ Cain suggests to also append "vga=791" and "xforcvesa" but I didn't need this for my system.)

13. Hit Enter, then "b" for booting the system.

14. Log in with your username and password.

Making The Fix Permanent

To make the fix permanent - you probably don't want to go through steps 10 to 14 each time you reboot your system - do the following:

15. After logging in open a terminal window from "Applications" - "Accessories" menu.

16. In the terminal window type "sudo gedit /boot/grub/menu.lst” and press enter. You will be asked for your password.

17. When the editor has started and loaded the file go to the very end of the file, then about 15 lines up. Append "noreplace-paravirt vga=791" to the end of two lines that start with "kernel /boot/vmlinuz-..."

18. Save the file and close gedit.

Now Ubuntu should reboot without complaint.

Please note that during reboot the screen might be blank (black) for quite some time. If you would like to monitor the boot process remove the "quiet splash" option from the kernel line in menu.lst.

Let me know if this recipe was understandable. If not please suggest improvements and make sure you mention the number of the step. Thank you!


I would like to thank SteveZ and Russ Cain for their excellent advice. This blog entry is based on their input (SteveZ's comment and Russ Cain's comments).

1 comment:

Nick said...

thanks for the excellent work around!!