Virtual PC is infamous for it’s inability to support Linux installations. There are always hacks required to get through the installation, but once installed your Linux machine should work fine.
So I wasn’t completely surprised when I ran into issues while trying to install the latest server version of Ubuntu 8.04. A quick Google search lead me to find out (via a comment left in a blog post) that to get the installation working you need to do the following:
- Boot off the CD (ISO) and then choose your language
- Press F6 on the next screen and you’ll see a long string of text near the bottom of the screen.
- Type the following before the trailing dashes: noapic nolapic vga=791
- Press enter and continue the installation.
So far so good.
And remember, that Ubuntu 8.04 is a LTS (long term support) version, which means that Ubuntu will provide support and updates for 5 years for the server version.
Update: looks like I’ve got more trouble shooting to do, as the virtual machine doesn’t boot after the installation appeared to complete successfully. Getting a heap stack error with lots of hex characters.
UPDATE 2!!! I’ve found the solution to this problem from this link: https://answers.launchpad.net/ubuntu/+question/32307
There are two steps to getting it to work, the first is what I mentioned above about adding the extra boot options by pressing F6 before starting the install. But all you need to add is: “vga=771 noreplace-paravirt”
The second part is the tricky bit – and you have to do this before the end of installation. So on the last stage of installation, where it says “Press continue to complete installation”, you have to press the “Go back” button instead and you’re provided a menu – choose the option to launch a Shell.
Type the following commands:
- chroot /target /bin/bash
- aptitude install linux-generic
- aptitude remove linux-server linux-image-server linux-image-2.6.24-16-server linux-ubuntu-modules-2.6.24-16-server
- exit
Now we have to edit the Grub menu to add the same options to the boot command that we did before:
- nano /target/boot/grub/menu.lst
Look for the line that says: “title Ubuntu 8.04, kernel 2.6.24-18-generic” and then add the same boot options to the end of it so it looks like this:
- kernel /boot/vmlinuz-2.6.24-18-generic root=UUID-XXXXXXXXXXX ro quiet splash vga=771 noreplace-paravirt
Press Ctrl+X to Exit the editor and choose Yes to save. Then type the following commands:
- chroot /target /bin/bash
- update-grub
- exit
And then return to the installation menu by typing “exit” again, the select “Finish the installation” and “Continue”. After the system reboots, you need to press Esc while the Grub menu is launching and select the generic boot option that we just edited.
Hope you enjoy your new Ubuntu Server!
Hello,
Ubuntu Server 8.04 installed fine but when rebooting I got the following error with a bunch of numbers:
BUG: Int 6: CR2 00000000 ….
Stack: 00000000000 …
Any suggestions? Thanks
Same problem encountered here, is there a solution? Thanks!
And here! I would love a solution!
Hopefully someone else will post the solution here then, because I gave up using Virtual PC as it works a breeze with VMware Player/Server.
Thank you, Stuart. I’ll try VMWare. I still hope there is a solution since Ubuntu Desktop works fine.
VMWare works flawlessly with every version of Ubuntu I have tried. It’s free and there’s a large support community behind it, both at the Ubuntu forums and at VMWare.
Dump Virtual PC and go with VMWare – there is a virtual machine converter application at VMWare if you have a bunch of virtual machines that you want to keep.
Hi there – I have found the solution to getting it running. I’ve updated the post with the details.
I have followed just like both websites have indicated with no success. I have twice now received the BUG: Int 6:CR2 0000000000 error. I will try VMware workstation and then player.
Hey Brad – make sure you choose the right boot options when rebooting. Press Esc while the system displays the Grub menu, then choose the generic kernel that you just installed.
Now it appears file not found, i probably did something wrong
Can anyone help?
I got VMware Workstation! =D And I got Ubuntu to work but I don’t know how to use VMware Server as it only can be put on server OS’s…
Works. I got a command prompt…
From your step ‘Upated 2′ I get an ASH shell and from there I’m unable to execute the chroot command. It says “Cannot change root directory to bash: Not a directory”. I can’t see any other terminal programs on the list when you Go Back before completing the installation.
Sorry, but right now I hate Linux.
Me again. I see now there’s a space between /target and /bin/bash in the chroot command. All working now. Thanks.
Another thing, for the less Linux-aware, in the ‘aptitude remove’ command you’ll have to substitute whichever version you have, eg. in my case 2.6.24-19.
I think it is also important to mention that in order to successfully perform ‘aptitude install linux-generic’, the Internet needs to be available to your virtual machine.
i can not install
aptitude install linux-generic
kindly help me with this
thanks
Maybe try sudo apt-get install linux-generic?
I don’t know.