Mar
7
Written by:
Matthew.Mattoon
Sunday, March 07, 2010
Ubuntu 10.04 has included the 2.6.32 Linux Kernel, and in doing so has simplified the process for using Linux Guests on Hyper-V with Synthetic Devices. As of this writing Alpha 3 is the latest version of Ubuntu 10.04. The schedule states that 10.04 will be released on April 29 of 2010 (these instructions will most likely work on the release version – however I will confirm and post back upon release).
We are really only talking about 2 steps to get it working, loading the modules at boot and reconfiguring networking.
1) CONFIGURE MODULES TO LOAD AT BOOT
Add the following to /etc/initramfs-tools/modules
hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc
Generate a new initrd image
# update-initramfs –u
2) CONFIGURE NETWORKING
Add the following to /etc/network/interfaces
auto seth0
iface seth0 inet dhcp
Above assumes that you installed 10.04 with a Synthetic NIC installed, if you had an Emulated NIC installed and have switched to Synthetic NIC you can change eth0 to seth0.
That is it, once these changes have been made you can reboot and will be able to see the modules loaded.
# lsmod | grep hv_*
Copyright ©2010 Matthew.Mattoon
Tags:
14 comment(s) so far...
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Thanks for the article! I was having trouble finding this info.
By Richard on
Tuesday, March 09, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Great post!
Now if only the Mouse components would compile - I get an error compiling hid_input.c after altering the setup.pl to point to hv_vmbus and kernel/drivers/staging/hv
Have you had any luck?
Thanks again
By Mike on
Sunday, March 14, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Thanks for the info. Noob here...is this theoretically all I have to do to get a freshly-installed 32-bit 9.10 Hyper-V guest to connect to the interwebs?
I have a loopback lan adapter installed inside the Server 2K8R2 host which works fine for a Server 2K8R2 x64 guest, but doesn't work OOB with the Ubuntu instance.
Are there "guest additions" for Hyper-V?
By David Cuccia on
Thursday, March 18, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Hi, thanks for manual :-) I have one question. ¨ If I use apt-get upgrade .... I can't no more boot to system Can you help me or explain ..pls
By Novka on
Tuesday, March 30, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Hi Novka,
Most likely you updated the kernel as part of the apt-get upgrade this new kernel will not have the modules loaded. You will need to rebuild the initrd for that kernel to load the modules. Look at step 1 in this article, additionally with the update-initramfs command there is an option to specify the kernel to update the initrd for (in case you need to boot with the kernel that you loaded the modules with in order to fix the new kernel).
-matt
By Matthew Mattoon on
Tuesday, March 30, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Thank, but I am little noob :-) I am doing the following: #apt-get update #apt-get upgrade view to /etc/initramfs-tools/modules ...all modules is here #update-initramfs –u reboot and system is dead :-/
By Novka on
Tuesday, March 30, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
# update-initramfs -u will only rebuild the initrd image (this is where your modules are loaded) for the kernel which is currently running, unless you use the switch to specify another kernel (use man to find what it is I can't remember off my head).
Also if you are having a kernel panic preventing you from booting, go into the grub menu and try boot to the older kernel. You can also try removing the noprobe switches and what not, then reinstall the Linux ICs.
-matt
By Matthew Mattoon on
Tuesday, March 30, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Very good, info, very easy with ubuntu 10.04 final with windows 2008 r2
but what is the solution for mouse
By Gilles Vollant on
Thursday, April 29, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Hi I installed Ubuntu in "minimal virtual machine configuration" and hv_* modules would not load. Does this mean I installed kernel without Linux IC or am I missing something? Thanks
By Art Shayderov on
Monday, May 03, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Hah! Finally, i've been struggling to get the newest Ubuntu 10.4 and figuring out how to install the LICs. Thank you so much for this info.
So i'm assuming, and from reading the above, if i upgrade to a new kernel, i have to repeat the procedure?
By PolishPaul on
Sunday, May 23, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
How do you configure things such that the emulated devices do not load...for example the emulated Virtual Hard Drive (sda) still shows up even after the synthetic drivers have loaded so that now both sda and hda show up. Also, how does one go about getting Xorg to recognize the video device?
By Ivan Lopez on
Tuesday, May 25, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
looks like high load on seth mess up virtual network... sometimes network become unreachable. i saw this on 2.6.32.22 kernel, but on 2.6.32.21 it was ok... or i havent enought time for testing. any suggestions?
By peaceful.atom on
Thursday, May 27, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Hello, I do everything descript in this article, but my networking still no working. fresh install on windows 2008 r2 What I miss?
thank you
By Frank on
Tuesday, July 27, 2010
|
Re: Hyper-V Guests: Ubuntu 10.04 Alpha 3 Synthetic Devices
Fabulous! Thank you, Matthew! Was strugling with ubuntu and hyper-v for several years. Finally decided to try 10.04 and found this article. Now it's nearly flawless (with NX for remote gui).
By A. C. on
Tuesday, July 27, 2010
|