Tiny Core Linux

General TC => Tiny Core on Virtual Machines => Topic started by: sunmast on July 12, 2011, 08:00:25 PM

Title: How to load Hyper-V modules during boot
Post by: sunmast on July 12, 2011, 08:00:25 PM
Hyper-V drivers has been included in Linux Kernel since 2.6.32. So I wonder if I can enable them in Tiny Core?
In Ubuntu I enable them by adding 4 lines to / etc / initramfs-tools / modules (sorry I only have a little Ubuntu experience):

hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc

Is there an equivalent way in Tiny Core?

Thanks,
TCL Newbie
Title: Re: How to load Hyper-V modules during boot
Post by: maro on July 12, 2011, 10:33:17 PM
As I was pretty sure that the 3.x kernel had been built without those kernel modules I had a quick "play" with make menuconfig on the 3.x kernel sources (http://distro.ibiblio.org/tinycorelinux/3.x/release/src/kernel/linux-2.6.33.3-patched.tbz2): When selecting 'Device Drivers' and after enabling and then selecting 'Staging Drivers' I had to disable 'Exclude Staging drivers from beeing built', before I could go down and enable 'Microsoft Hyper-V client drivers'.

With this changed configuration (which essentially makes the following few changes
Code: [Select]
CONFIG_STAGING=y
CONFIG_HYPERV=m
CONFIG_HYPERV_STORAGE=m
CONFIG_HYPERV_BLOCK=m
CONFIG_HYPERV_NET=m
in the '.config' file) one should be able (at least in theory) to build the missing modules.

I for one neither have access to a Hyper-V system, nor the inclination to test this out, so all this is purely a theoretical excercise for me. I therefore have no idea what else might be missing.