Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Hyper-V virtual network driver in menuconfig
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Wed Feb 04, 2015 3:08 am    Post subject: [solved]Hyper-V virtual network driver in menuconfig Reply with quote

Trying to move an existing physical install onto a m$ hyper-v vm and it is working except can't find the network driver,
in make menuconfig cannot find
Hyper-V virtual network driver
the search says it is there:

│ Symbol: HYPERV_NET [=n] │
│ Type : tristate │
│ Prompt: Microsoft Hyper-V virtual network driver │
│ Location: │
│ -> Device Drivers │
│ (6) -> Network device support (NETDEVICES [=y]) │
│ Defined at drivers/net/hyperv/Kconfig:1 │
│ Depends on: NETDEVICES [=y] && HYPERV [=n] │

But when I go to that location it shows, in sum total only these:
│ --- Network device support │ │
│ │ [ ] Network core driver support │ │
│ │ < > ARCnet support ---- │ │
│ │ *** CAIF transport drivers *** │ │
│ │ Distributed Switch Architecture drivers ---> │ │
│ │ [ ] Ethernet driver support ---- │ │
│ │ < > FDDI driver support │ │
│ │ [ ] HIPPI driver support │ │
│ │ < > General Instruments Surfboard 1000 │ │
│ │ < > PHY Device support and infrastructure ---- │ │
│ │ < > PPP (point-to-point protocol) support │ │
│ │ < > SLIP (serial line) support │ │
│ │ USB Network Adapters ---> │ │
│ │ [ ] Wireless LAN ---- │ │
│ │ *** Enable WiMAX (Networking options) to see the WiMAX drivers *** │ │
│ │ [ ] Wan interfaces support ---- │ │
│ │ < > VMware VMXNET3 ethernet driver │ │
│ │ [ ] ISDN support ---- │ │

Have read the various posts here on the subject including this one where the OP just found the entry
https://forums.gentoo.org/viewtopic-p-7237834.html
and this last
http://1.bp.blogspot.com/-zIXDkNUNtmk/UUtglUrWn4I/AAAAAAAAH1M/Vuj_qoieon4/s1600/2013-03-20_14h31_33.png
where the OP was lucky enough to see the entry I'm looking for between those last two above


I'm mystified as to why I can't see it since it clearly shows as there in searches.

# uname -a
Linux as 3.12.13-gentoo #1 SMP Tue Apr 22 00:05:10 PDT 2014 x86_64 Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz GenuineIntel GNU/Linux

I know it's an old kernel but the gentoo sources seem to indicate this should be there.


Last edited by huuan on Fri Feb 06, 2015 9:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
salam
Apprentice
Apprentice


Joined: 29 Sep 2005
Posts: 203

PostPosted: Thu Feb 05, 2015 7:38 pm    Post subject: Reply with quote

Is that correct dependency? I have
Depends on: NETDEVICES [=y] && HYPERV [=y]

Then it shows here:
< > VMware VMXNET3 ethernet driver
<*> Microsoft Hyper-V virtual network driver
[ ] ISDN support ----
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13867

PostPosted: Thu Feb 05, 2015 11:22 pm    Post subject: Reply with quote

As salam hints, your problem is dependencies. Searches can find options that are hidden due to unsatisfied dependencies. In this case, there is a master switch CONFIG_HYPERV that governs all the switches relevant to running a guest under Hyper-V. You must find and enable CONFIG_HYPERV, then your network driver should be visible.
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Fri Feb 06, 2015 9:10 pm    Post subject: Reply with quote

thanks.
Think I was interpreting the dependencies wrong way, thinking where it said =n that that is what it needed, whereas it now seems that it needs everything =y to work

For
Symbol: HYPERV [=n]

the dependencies are
x Depends on: X86 [=y] && ACPI [=y] && PCI [=y] && X86_LOCAL_APIC [=y] && HYPERVISOR_GUEST [=n]

So I'm guessing I need HYPERVISOR_GUEST [=y] to make this show...but
Symbol: HYPERVISOR_GUEST [=n]
x Selected by: X86_VSMP [=n] && X86_64 [=y] && PCI [=y] && X86_EXTENDED_PLATFORM [=y] && SMP [=y]

So looks like what I need is X86_VSMP [=y] to get HYPERVISOR_GUEST [=y]
Quote:

Symbol: X86_VSMP [=y] x
x Type : boolean x
x Prompt: ScaleMP vSMP x
x Location: x
x (1) -> Processor type and features x
x Defined at arch/x86/Kconfig:394 x
x Depends on: X86_64 [=y] && PCI [=y] && X86_EXTENDED_PLATFORM [=y] && SMP [=y] x
x Selects: HYPERVISOR_GUEST [=y] && PARAVIRT [=y]


and the help for that is:
Quote:
CONFIG_X86_VSMP: x
x x
x Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is x
x supposed to run on these EM64T-based machines. Only choose this option x
x if you have one of these machines. x
x x
x Symbol: X86_VSMP [=y] x
x Type : boolean x
x Prompt: ScaleMP vSMP x
x Location: x
x -> Processor type and features x
x Defined at arch/x86/Kconfig:394 x
x Depends on: X86_64 [=y] && PCI [=y] && X86_EXTENDED_PLATFORM [=y] && SMP [=y] x
x Selects: HYPERVISOR_GUEST [=y] && PARAVIRT [=y] x

So the hyper-v must be an EM64T-based machine

OK selecting that works. I can see the network selection now. Many thanks to you both.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13867

PostPosted: Sat Feb 07, 2015 1:53 am    Post subject: Reply with quote

When it says [=n], it is telling you the current state of that symbol, so that you can identify which of the dependencies you have satisfied and which ones you still need to change.

You may not need vSMP. Enabling vSMP forces HYPERVISOR_GUEST on, but you can enable it explicitly. It has the name "Linux guest support" in Kconfig. Disable vSMP, enable "Linux guest support", and you should be fine.
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Sun Feb 08, 2015 2:57 am    Post subject: Reply with quote

I was off on the wrong track once more.
Now I have enabled
Quote:
│ CONFIG_HYPERV: │
│ │
│ Select this option to run Linux as a Hyper-V client operating │
│ system. │
│ │
│ Symbol: HYPERV [=y] │
│ Type : tristate │
│ Prompt: Microsoft Hyper-V client drivers │
│ Location: │
│ -> Device Drivers │
│ -> Microsoft Hyper-V guest support │
│ Defined at drivers/hv/Kconfig:3 │
│ Depends on: X86 [=y] && ACPI [=y] && PCI [=y] && X86_LOCAL_APIC [=y] && HYPERVISOR_GUEST [=y] │


as you hinted originally and now I can see
Quote:
│ CONFIG_HYPERV_NET: │
│ │
│ Select this option to enable the Hyper-V virtual network driver. │
│ │
│ Symbol: HYPERV_NET [=n] │
│ Type : tristate │
│ Prompt: Microsoft Hyper-V virtual network driver │
│ Location: │
│ -> Device Drivers │
│ -> Network device support (NETDEVICES [=y]) │
│ Defined at drivers/net/hyperv/Kconfig:1 │
│ Depends on: NETDEVICES [=y] && HYPERV [=y] │

no VSMP needed.
Thanks again Hu. This is why I love gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum