Installing Ubuntu 10.04 on Windows 2008 R2 Hyper-V

AID: 3732
  • Status: Published

6000 points

  • Bycshepfam
  • TypeTutorial
  • Posted on2010-09-21 at 12:36:34
Awards
  • Community Pick
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):

Auth eth0
iface eth0 inet static
address 10.0.8.170
netmask 255.255.255.0
network 10.0.8.0
broadcast 10.0.8.255
gateway 10.0.8.1


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:

http://www.realvnc.com/products/free/4.1/winvncviewer.html

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.
Asked On
2010-09-21 at 12:36:34ID3732
Tags

Windows Server 2008

,

Ubuntu

,

Hyper-V

,

Ubuntu 10.04

Topic

Hyper-V

Views
5414

Comments

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Hyper-V Experts

  1. hanccocka

    11,600

    0 points yesterday

    Profile
    Rank: Genius
  2. kevinhsieh

    5,668

    0 points yesterday

    Profile
    Rank: Genius
  3. spaperov

    3,300

    0 points yesterday

    Profile
    Rank: Wizard
  4. leew

    2,000

    0 points yesterday

    Profile
    Rank: Savant
  5. BestWay

    2,000

    0 points yesterday

    Profile
    Rank: Sage
  6. ahsservices

    2,000

    0 points yesterday

    Profile
  7. TSGITDept

    2,000

    0 points yesterday

    Profile
    Rank: Master
  8. TinkyWinkie

    1,000

    0 points yesterday

    Profile
  9. Lester_Clayton

    870

    10 points yesterday

    Profile
    Rank: Master
  10. cshepfam

    830

    0 points yesterday

    Profile
    Rank: Guru
  11. ronnypot

    740

    0 points yesterday

    Profile
    Rank: Genius
  12. luconsta

    668

    0 points yesterday

    Profile
    Rank: Guru
  13. MPECSInc

    664

    0 points yesterday

    Profile
    Rank: Genius
  14. SysExpert

    650

    0 points yesterday

    Profile
    Rank: Genius
  15. rsoly777

    620

    0 points yesterday

    Profile
    Rank: Guru
  16. upalakshitha

    400

    0 points yesterday

    Profile
    Rank: Master
  17. LesterClayton

    340

    0 points yesterday

    Profile
    Rank: Guru

Hall Of Fame