Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
I was lazy enough to copy paste commands into terminal window. After I executed echo –e “hv_vmbus\nhv_storvsc\nhv_blkvsc\nhv_netvsc” >> /etc/initramfs-tools/modules I got modules looking like: –e “hv_vmbus\nhv_storvsc\nhv_blkvsc\nhv_netvsc”
Everything went fine but of course I got no hv modules in the end. It took me some time to figure out what went wrong.
By Art Shayderov on
Tuesday, December 22, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Yes! I got it!
BTW is your captcha case-sensitive? I missed 2 times. 3rd time is the charm as they say.
By Art Shayderov on
Tuesday, December 22, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Art,
The command should append the following to /etc/initramfs-tools/modules
hv_vmbus hv_storvsc hv_blkvsc hv_netvsc
Yes my captcha is case sensitive.
-matt
By Matthew Mattoon on
Tuesday, December 22, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Hi Matt, I came back here today and when I saw my 2 comments I realized that they look absolutely crazy. I was very emotional at the time and I forgot to thank you. I'm sorry about that and thank you for this post.
Art
By Art Shayderov on
Thursday, December 24, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Hi Guys,
Does this solve the RDP mouse issue?
If not - is there any way to fix this?
Thanks
By Ray on
Thursday, December 24, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Ray,
Mouse integration is provided in a separate kernel module which is NOT included in the new kernel. For that you will want to refer to my other article: blog.allanglesit.com/Blog/tabid/66/EntryId/26/Hyper-V-Guests-Mouse-Integration-on-Linux-VMs.aspx
I have not tested this on the new kernel version so it may or may not work.
-matt
By Matthew Mattoon on
Thursday, December 24, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Art,
You are very welcome.
-matt
By Matthew Mattoon on
Thursday, December 24, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Hello, I really tank Matt for this article! I´m a Linux beginner and I spend about two days working around this article because I hadn´t enough knowledge and Linux X HyperV its really new! At that moment my guest virtual Linux wasn´t able to accesses internet and to make things easier, I wrote a step-by-step. Please, correct me if I´m wrong in some way! I installed build-essential and kernel-package from Ubuntu ISO CD using: #apt-cdrom add #apt-get install build-essential kernel-package
I couldn´t find and install ncurses-dev package even with Ubuntu 9.1 ISO CD, and to solve it, I downloaded from Ubuntu repository (us.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/ncurses_5.5.orig.tar.gz ) to my PC and recorded it in a .ISO and installed it like this: First I copied the .gz2 file from .ISO to Linux HD and uncompacted it. After that I executed: #gunzip ncurses_5.5.orig.tar.gz #tar –xf ncurses_5.5.orig.tar.gz #./configure #make install
Other problem was the Kernel download. I downloaded to my PC and recorded it in a .ISO and installed following the Matt instructions just changing apt-web step to copy from .ISO. After compile and install the new Kernel, I set up the network interface like this: First I checked the network interface´s name using #ifconfig –a The interface´s name was seth0 and to set it up go to etc/network/ directory and: #Pico interfaces Insert this lines (if you have a DHCP server at your network): auto seth0 iface seth0 inet dhcp (to save change ctrl+o and to exit ctrl+x) After that reboot, test the network connection using PING and have fun!
Note: First I tried to download and install a kernel already compiled and it didn´t work as Matt sad before.
My next fight will be with NAGIOS! Let´s see if will be easy or hard!
Thanks again Matt and sorry for my poor English!
By Ricardo e Ciro on
Monday, December 28, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
http://blog.allanglesit.com/Blog/tabid/66/EntryId/26/Hyper-V-Guests-Mouse-Integration-on-Linux-VMs.aspx It dose not solve, drivers writen just for MS linux ICS v1
By Vladimir Ganzha on
Tuesday, December 29, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
and why so complex?
you need just add to repository deb mirrors.kernel.org/ubuntu lucid main
download last kernel
add to # /etc/initramfs-tools/modules hv_vmbus hv_storvsc hv_blkvsc hv_netvsc
and run # update-initramfs
that's all you need? and dont't need to compile kernel
i've just checked hv versions between 2.6.32-9.13 from lucid main and 2.6.32.2 from kernel.org it is edentical, no difference.
Build Description=Version 2.0 Vmbus supported version = 13
By Vladimir Ganzha on
Tuesday, December 29, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
and from deb mirrors.kernel.org/ubuntu lucid main you can download compiled kernel for ubuntu server, that very important for me
tests in my hardware
Ubuntu 9.10 amd64 2.6.32-9.13 Windows 2008 R2 Hyper-V
hmh@userv:~$ sudo dd if=/dev/zero of=/root/testfile bs=4M count=1000 1000+0 записей считано 1000+0 записей написано скопировано 4194304000 байт (4,2 GB), 7,95108 c, 528 MB/c hmh@userv:~$ sudo dd if=/dev/zero of=/root/testfile bs=4M count=1000 1000+0 записей считано 1000+0 записей написано скопировано 4194304000 байт (4,2 GB), 7,25755 c, 578 MB/c hmh@userv:~$ sudo dd if=/dev/zero of=/root/testfile bs=4M count=1000 1000+0 записей считано 1000+0 записей написано скопировано 4194304000 байт (4,2 GB), 7,09555 c, 591 MB/c
By Vladimir Ganzha on
Tuesday, December 29, 2009
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Everything compiled fine for me. However I see no difference in disk performanace. However the synthetic network card is now working.
Any ideas?
Vladimir Ganzha and "why so complex". Could you provide more detailed instructions on how to install for us newbies. Thanks
By Marty on
Saturday, February 20, 2010
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Hi!
Put up a small script that imitates the official Integration Services installer, but which works with the 2.6.31 (stock) kernel too. No need to recompile the kernel either. DL: sztupy.hu/static/hyper-v-ic-kernel-2.6.31.zip Unzip, run setup.pl and add the modules to auto-load.
By SztupY on
Tuesday, February 23, 2010
|
.config for linux guest under Hyper-v
A bit unrelated but not so far from original topic:
Does anybody have a clean minimal working .config for a linux guest under Hyper-V 2008 r2?
If I understand correctly, any distro built with such a .config would run under Hyper-V right?
By derek on
Monday, March 01, 2010
|
Re: Hyper-V Guests: rPath?
Hello all! I'm trying to use OpenFiler with the LIC drivers. I'm getting build errors similar to things I've seen online, but I'm way too much of a n00b to figure out what to do. The #openfiler channel on freenode is painfully silent, as well. I'm guessing they'd rather I explore this journey of "unguided discovery".
The package manager is conary, and I've gotten gcc updated. What can I do to build these drivers?
Thank you for any direction you can provide!
By David on
Friday, March 19, 2010
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Thank you very much Matt, and all the comment contributors. This is very helpful. I managed to install 2.6.32 kernel on Ubuntu 9.10 running on Hyper-V R2. My virtual disk performance went from 60 MB/s to 117MB/s, which is very close to my physical SATA disk performance of 130MB/s.
2 things to mention: 1) I also had the problem with the instruction above: echo –e “hv_vmbus\nhv_storvsc\nhv_blkvsc\nhv_netvsc” >> /etc/initramfs-tools/modules
, which disregards the "\n" delimiter and puts this –e “hv_vmbus\nhv_storvsc\nhv_blkvsc\nhv_netvsc”
in my /etc/initramfs-tools/modules file. I am a GUI guy, so I did a: #sudo nautilus
I then used gedit to make the modules appear on four separate lines.
2) I also had problem with grub not booting up right. So a word of advice is to install grub (under Applications -> Ubuntu Software Center" before you reboot. Go in there and change something (i.e. make 2.6.32 your default. Hope this safe something some time.
By Leng on
Monday, March 29, 2010
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Question: After the successful install, I now have 7GB of additional files on my .vhd. Can I delete the 6GB dir /usr/src/linux-2.6.32.1 dir, or if there is a way to clean it up?
Thanks.
By Leng on
Monday, March 29, 2010
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
David,
The if you can get the 2.6.32 kernel compiled on OpenFiler then you will be good to go, I am not positive on the process (as OpenFiler is based on rPath Linux which is not based on another distribution) so I am unfamiliar with how they do things.
Leng,
The error you experienced was with auto adjusting of the - (hyphen) to whatever long hyphen-y thing that Windows Live Writer wanted to use... I will adjust it.
Additionally yes once you have built the binaries feel free to delete the source as it will no longer be needed.
-matt
By Matthew.Mattoon on
Wednesday, March 31, 2010
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Hi Matt,
Thanks for this write-up! Can you think of any potential issues with trying this on an Ubuntu Server 10.04 LTS 64-bit installation? As far as I know it uses 2.6.32 also.
Cheers.
By Tom on
Thursday, April 29, 2010
|
Re: Hyper-V Guests: Compile Linux 2.6.32 on Ubuntu
Tom,
You will not need to compile this kernel as the Ubuntu shipped kernel includes the necessary modules. Check out this article. I have not updated my article for the released version but it does work.
blog.allanglesit.com/Blog/tabid/66/EntryId/53/Hyper-V-Guests-Ubuntu-10-04-Alpha-3-Synthetic-Devices.aspx
-matt
By Matthew.Mattoon on
Thursday, May 13, 2010
|