Want to deploy your JVM, Node.js ang Go apps effortlessly to AWS? Try our service Boxfuse

Taming the beasts: Getting Ubuntu Server 9.10 to run in Virtual PC on Windows 7

As I wrote, I am a big fan of Windows 7 and virtualization. While my development environment for Veturanto runs on Windows, the production server runs on Ubuntu Server. Ubuntu Server is great and by far the best Linux distribution available at the moment. One piece of the Veturanto infrastructure puzzle I haven't talked about yet is the test server. As I want it to be as close as possible to the production environment, it also naturally runs the same OS. And being a virtualization fan, I want it to run in a window to boot.

However Virtual PC and Ubuntu Server have a history of making life difficult for each other and not playing together nicely. There is however a way to get them to cooperate.

So let's go and tame these beasts!

For this to work you will need:

Ok, let's get started!

1. In the Virtual Machines folder, create a new VM. Before launching it, edit the settings to mount the Ubuntu ISO

2. Launch the VM and run the installation normally.

Install

3. In Grub, select the Linux 2.6.31-14-generic-pae entry and press "e" to edit it.

4. Add "noreplace-paravirt vga=771" (no quotes) before "quiet splash" on the second last line and press Ctrl+x to boot

5. Log in and create a file called "/etc/default/grub" as root with this content:
GRUB_DEFAULT=0
GRUB_CMDLINE_LINUX_DEFAULT="noreplace-paravirt vga=771 quiet splash"

6. Execute this command:
sudo update-grub

7. Reboot

8. Welcome to Ubuntu Server 9.10 under Virtual PC on Windows 7 !

Welcome


Note: Credits go to this post and this post as they were essential inspiration to arrive at this solution!

Update: Removed the bit about changing the kernel. It wasn't necessary.

 


Axel

About Axel Fontaine

Axel Fontaine is the founder and CEO of Boxfuse the easiest way to deploy JVM and Node.js applications to AWS.

Axel is also the creator and project lead of Flyway, the open-source tool that makes database migration easy.

He is a Continuous Delivery and Immutable Infrastructure expert, a Java Champion, a JavaOne Rockstar and a regular speaker at many large international conferences including JavaOne, Devoxx, Jfokus, JavaZone, QCon, JAX, ...

You can follow him on Twitter at @axelfontaine

 

Architecting for Continuous Delivery and Zero Downtime

Two day intensive on-site training with Axel Fontaine

Upcoming dates

Iasi, Romania (May 10-11, 2017)
Oslo, Norway (Oct 16-17, 2017)

« Browser testing on steroids: Running IE 6, 7 and 8 simultaneously on Windows 7
The perils of the missing javascript block scope »
Browse complete blog archive
Subscribe to the feed