Installing Ubuntu Server 10.10 on Hyper-V

Installing Ubuntu Server 10.10 on Hyper-V

  • Comments 51

Now that the Hyper-V integration services are included in the official Linux builds – I wanted to try out a Linux distribution that is not officially supported by Microsoft and see what was involved in getting it all working.  With the recent release of Ubuntu 10.10 I thought I would try out their server version.  After downloading the bits from I created a quad-processor virtual machine with a non-legacy network adapter.

Installation was fairly straight forward:


However – Ubuntu does not have the Hyper-V enlightened network drivers enabled by default – so the installation complains about not being able to find any network adapters:


But I just ignored that and moved along with the install:


I chose the default packages for setting up a LAMP server:


The install finished and I was dropped at the login prompt:


A cool thing to note was that at this stage I could already shut down the virtual machine by using the shutdown button on the Virtual Machine Connection window, so part of the integration services are already running.  You can also see that all four virtual processors are there and working:


Getting the Hyper-V drivers up and running at this point in time is actually relatively simple.  The first thing you need to do is to edit /etc/initramfs-tools/modules and add the following lines to the end of it:





Once you have made these changes you will need to run “update-initramfs –u” and reboot.  You will now have the Hyper-V drivers for storage and networking loaded:


You can confirm that these drivers are loaded by running “lsmod” after the reboot:


The final thing you need to do is to configure networking (because that step was skipped during installation).  The first thing to do is to run “ifconfig –a” to find out what name your network adapter has been given.  In my case it was “eth0” – but this is not always the name it will get.  Once you know the name you will need to edit /etc/network/interfaces and add the following to the end of the file:

For DHCP (what I did):

auto eth0
iface eth0 inet dhcp

For a Static IP address:

auto eth0
iface eth0 inet static
address [insert your IP address]
netmask [insert your netmask]
Gateway [insert your gateway address]

Like this:


One more reboot and running “ifconfig” should confirm that everything is working:


And in my case I could also confirm that the website was accessible from my parent partition as well:


So there you have it.  Ubuntu Server 10.10 running under Hyper-V with full integration services using nothing other than what is included on the Ubuntu install media.


Leave a Comment
  • Please add 6 and 4 and type the answer here:
  • Post
  • Installing ubuntu server on an imac with a broken screen has never been made so easy! With this I could guess which screen I was on until I had SSH set up. What a relief!

  • GOOD STUFF!!!  Just a comment (that I think someone else left as well)...Documentation says "ETH0" (correct), but screen shot says "SETH0"

  • In case anyone runs into the same gotcha as me...

    When you set a fixed IP, you also need to set up DNS servers with an entry like this - nameserver - in /etc/resolv.conf.  Except that I did not have a resolv.conf file, and I could not get any updates (sudo apt-get update...or install anypackage).  The solution is to ping the fqdn that you find in /etc/apt-get/sources.list and create manual host file entries in /etc/hosts for those URLS ( for example).  Then you can get updates, including the one that allows you to configure DNS.  FYI

  • why is it hard to login to ubuntu server 10.10 after installation?

    i type my username and password and get "Login incorrect"

    please help,now thinking it better 2 get win server 2008

  • I've tried this now over a dozen times and every time after I reboot after the network card "interfaces" file modification, I type ifconfig and only can see the loopback adaptor.  I do see both the loopback and the network card before the mod and reboot.  I've tried about everything I can think of during the initial install to change the packages and see if that makes a difference, but it doesn't.  I'm stumped.  

  • For the Kernel Panic issue after you update/upgrade what you need to do is only load the hv_netvsc in the /etc/initramfs-tools/modules so you don't have to use the legacy network adapter. Then do your updates reboot edit /etc/initramfs-tools/modules and add the hv_vmbus hv_storvsc hv_blkvsc and follow the rest of the steps.

  • I moved an Ubuntu server 9.04 from one Hyper-V R2 SP1 to another. At the target Hyper-V host when the Ubuntu server starts it eventually gets stuck. The Ubuntu console shows:

    File "usr/bin/console_stub", line 36, in <module>

       ip_address = get_ip_address(iface_name)

    File "usr/bin/console_stub", line 18, in get_ip_address

      struct.pack('256s', ifname[:15])

    IOError: [Errno 19] no such device

    How do I get into the startup process to enter the commands you outlined?

    Thank you.

  • Just installed Ubuntu Server 11.04. Works great. Thanks!

  • Please my disk no large 136GB.

    how to expand disk 600GB in Ubuntu 10.10???


  • Hello,

    I am having the same problem that Frymaster. After some time all the connectivity drops. The only solution is to reboot the virtual machine Ubuntu Server 10.10. What may be happening?

  • First off, thanks for the tutorial. It would have been difficult to get it working with out it. I did just want to highlight a small discrepancy though. For the network setup, you have 'Auto eth0' while in the screenshot you have 'auto eth0'. I've tried both and only the lowercase version seems to work.

  • Richard Nienaber -

    Thanks for the note.  I have updated the post to change "Auto" to "auto".



  • MS put out a fix for the mouse not working.  FYI

  • Great walkthrough. Worked without a hitch!

  • great help, did need to add default route to routing table to get off local network segment and dns entries in resolv.conf

Page 3 of 4 (51 items) 1234