Browse All Articles
> Installing Ubuntu 10.04 on Windows 2008 R2 Hyper-V
The purpose of this article is to help people install Ubuntu 10.04 on Windows 2008 R2 Hyper-V.
Some of the issues many people face in installing Ubuntu 10.0.4 on Hyper-V are the following:
1. No Network Connection
2. No Mouse functionality when using Remote desktop
First of all let me make it clear that when installing Ubuntu 10.04 you do not need the Linux Integration Components download from Microsoft. That’s for earlier versions, not for Ubuntu 10.04.
You will also need to run the install from the server box and not remotely unless you are using the keyboard keys only. The mouse will not work if you do it remotely. That will come later on in this article.
The first thing you must do is setup up your Virtual Machine correctly. That’s pretty easy because the only thing different you’ll be doing is setting up the Network Adapter. Instead of the regular Network Adapter that’s normally used in creating Windows VM’s, you’ll want to use the Legacy Network Adapter which is what will work correctly with Ubuntu 10.04.
Once you add that hardware in, you can boot Ubuntu from the CD or ISO. If you’re going to boot from the CD, create the VM first and select to install the OS later. Once you have the VM created, go back to your settings and on the DVD Drive selection, select “Physical CD/DVD Drive”
Run the installation
Once the installation is complete, it’s time to configure the Network Connection.
You can choose to use DHCP or Static. I chose Static because I am installing it as a dedicated server.
Configure the interfaces file by typing in the following command in the terminal:
$ sudo gedit (This opens the editor so that you can make changes in files)
(Enter in your password when prompted)
When gedit opens, go to /etc/network/interfaces
To setup a static IP address you’ll want to add the following (Use your own IP address, netmask, network, etc, what I’m showing is just an example):
iface eth0 inet static
Save it and then add the same settings to your network connections which is on the top taskbar. Select Manual and add the IP, subnet, gateway, dns, and domain if you have one.
Once that is finished go to the terminal and type in the following:
sudo /etc/init.d/networking restart
Make sure that the network connections icon on the top taskbar is enabled.
Now for the mouse issue. Instead of remote desktop, we’ll use RealVNC Viewer for Windows which is free and can be downloaded here:
Once that is installed, go to the Ubuntu Desktop, select “Select
” then “Preferences”
and “Remote Desktop”
Select “Allow other users to view your desktop
” and “Allow other users to control your desktop
”. For security select “Require the user to enter this password
” and select your own password.
If you select “You must confirm each access to this machine
” then when you remote in you’ll only see a black screen because on the server end it is waiting for you to approve the connection.
And that’s it. You should now have Ubuntu 10.04 installed and working on Windows Server 2008 R2 Hyper-V.