Narendra Patel     Feb,08 2017

Installing Ubuntu Server 11.04 64bit on Hyper-V

Installing Ubuntu 11.04 server 64bit on Hyper-V is very straight forward but does require some manual editing before it work like charm. Mainly adding some lines for Hyper-V drivers & Virtual network support. I have created all steps screenshot so that it's easy to follow.

First of all, you have to download Ubuntu 11.04 (Natty Narwhal) 64bit form Ubuntu website.

 

Windows Server 2008 R2 Hyper-V Virtual Machine Creation for Ubuntu:

 

 

 

 

 

 

Select Virtual Network card:

 

 

 

 

 

 

 

 

 

 

Now start VM & Connect it.

 

 

Ubuntu Server 11.04 Installtion:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ignore below network error as we have selected virtual network & Hyper-V drivers are not installed at this stage. We will take care of this post installation.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have selected LAMP here but you may select additional modules as per your needs.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ubuntu 11.04 Server 64Bit installation is completed now. VM will reboot & ask for login details.

 

 

 

 

Now, first thing we have to do is to add Hyper-V drivers. It requires adding 4 lines in /etc/initramfs-tools/modules. So

 

sudo vi /etc/initramfs-tools/modules

& add below lines

hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc

(If you are not familiar with vi editor, than once vi editor is opened press "i" & start adding above lines, on completion press "Esc" & type ":wq")

 

 

 

 

 

Once you have made these changes you will need to run "update-initramfs –u" and reboot.

 

sudo update-initramfs –u
sudo reboot

 

 

 

 

 

Now when you do

 

sudo ifconfig -a

You will see Ubuntu is not in network & there is no IP. Also notice here ethernet name e.g. eth0. For network configuration, again open one files in vi editor & add dhcp OR static IP settings:

sudo vi /etc/network/interfaces

 

Add below lines for dhcp:

 

Auto eth0
iface eth0 inet dhcp

 

Add below lines for static IP:

 

auto eth0
iface eth0 inet static
address 10.0.0.100 [IP address]
netmask 255.255.255.0 [Subnet]
gateway 10.0.0.1 [Default Gateway]

 

Now restart networking service & reboot:

 

sudo /etc/init.d/networking restart
sudo reboot

 

 

 

 

 

 

 

 

 

sudo ifconfig -a

 

& you will see ubuntu is in network now using Hyper-V virtual network.

If your Ubuntu installation still not getting IPs than you have to shutdown Ubuntu VM & change VM network adapter to another one in Hyper-V & boot it again. This may solve your problem if any.

 

 

 

Now Ubuntu is running perfectly with all Hyper-V drivers & virtual network support. Next good thing is to fire up two more commands apt-get update & apt-get upgrade.

 

More help about apt-get can be found on Ubuntu website.

 

 

 

 

 

 

 

Finally Ubuntu 11.04 server 64-bit is installed on Hyper-V & upgraded with latest packages.