- February 8, 2017
- Posted by: user
- Category: Uncategorized
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
[code:plain]sudo vi /etc/initramfs-tools/modules[/code]
& 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.
[code:plain]sudo update-initramfs –u[/code] [code:plain]sudo reboot[/code]
Now when you do
[code:plain]sudo ifconfig -a[/code]
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:
[code:plain]sudo vi /etc/network/interfaces[/code]
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:
[code:plain]sudo /etc/init.d/networking restart[/code] [code:plain]sudo reboot[/code]
[code:plain]sudo ifconfig -a[/code]
& 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.