Tuesday 22 April 2008

Making Ubuntu 7.04 Work Under Virtual PC 2007

Original Link:

http://blogs.msdn.com/mikekol/archive/2007/08/06/making-ubuntu-7-04-work-under-virtual-pc-2007.aspx


This is a really good artical to make Ubuntu 7 works on your Virtual PC 2007.:

  • So, the first step, obviously, is to get a Windows PC with Virtual PC 2007 installed. I'm running the x64 version on Windows Vista Ultimate. Download the ISO for Ubuntu in whatever fashion you choose - just remember that Virtual PC only supports 32-bit guests, so make sure you grab the i386 version. Also, you don't need the alternate installer version. Just grab the regular one.
  • Start Virtual PC, create a VM with the specifications you want, and boot it. During POST, click the CD menu, and capture the Ubuntu ISO you just downloaded. You may need to reset the VM to get it to boot properly.
  • On the Ubuntu boot menu, select Start or install Ubuntu and hit F6. Add i8042.noloop to the end of the line, and press Enter. This will make the mouse work in recent versions of the kernel.
  • When Ubuntu boots to the Live CD and XWindows loads, the graphics will be... not good. You're going to need to change the color depth to make it display correctly. To do that:
    • Hit CTRL-ALT-F1 to drop to a console.
    • Type sudo nano /etc/X11/xorg.conf and press Enter.
    • Press CTRL W, type depth and press Enter. You should see a line that says "DefaultDepth 24". Delete 24 and type 16.
    • Press CTRL O, and press Enter to save the file.
    • Press CTRL X to exit the nano editor.
    • Press CTRL-ALT-F7 to switch back to XWindows - that graphics will still not be right.
    • Press CTRL-ALT-Backspace to reload XWindows. The graphics should be good to go now.
  • Run the installation like you normally would. When installation is complete, Ubuntu will boot, and the video should be correct (it was for me - if it's not, repeat the step listed above), but the mouse won't work. To fix the mouse in a more permenant manner, we'll need to add a kernel parameter to the GRUB loader. Here's how:
    • Boot into Ubuntu on the hard drive.
    • Hit CTRL-ALT-F1 to drop to a console and log in.
    • Type sudo nano /boot/grub/menu.lst.
    • Press CTRL W and type end default options, then press Enter.
    • The first entry in the list below is the entry containing the information to boot Ubuntu in regular mode. Find the line that starts with kernel and go all the way to the end of it. At the end, type i8042.noloop, press CTRL O, and press Enter to save.
    • At this point, you can do the same with the other entries, like the recovery mode one if you care enough to bother. If not, just hit CTRL X to exit nano.
    • Type sudo reboot to reboot the VM.
    • The next time you boot into XWindows, your mouse should work without issue. (You should also note that if you happen to upgrade your kernel version, you'll need to make this change *again*.)
  • And you're good to go do whatever it is you want to do.

No comments: