Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
old gentoo and new Hyper-V
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
browin
n00b
n00b


Joined: 29 Jul 2021
Posts: 1

PostPosted: Thu Jul 29, 2021 3:08 pm    Post subject: old gentoo and new Hyper-V Reply with quote

Hello, it's my first post on this forum.
I have a big problem, i restore physical machine with gentoo (uname -r: 2.6.39-gentoo-r3) on hyper-v under control Windows Serwer 2019. My Gentoo VM not show eth0 or eth1.
I read many post with resolve this problem but nothing work for me.
Please help me.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Jul 29, 2021 5:10 pm    Post subject: Reply with quote

update your kernel, there is no driver for your virtual nic in 2.6.xx
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21489

PostPosted: Thu Jul 29, 2021 6:19 pm    Post subject: Reply with quote

If you need more help, please post the full description of your virtual NIC, as seen by Gentoo. Pastebin the kernel configuration you think should work with it.

If you cannot or will not update the kernel, you could try changing the Hyper-V configuration to offer a virtual NIC that your existing kernel understands. I don't know if Hyper-V has such a choice though.
Back to top
View user's profile Send private message
alicela1n
n00b
n00b


Joined: 26 Mar 2021
Posts: 14

PostPosted: Sun Aug 01, 2021 2:43 am    Post subject: Reply with quote

With an install that old it's probably easier to backup all configurations and stuff and do a complete reinstall. 2.6.xx is very old and doesn't support the virtual NIC in Hyper-V, if reinstalling isn't an option you could try compiling a new kernel by downloading the sources from kernel.org and compiling manually. You could also try switching the virtual NIC to one that's supported, if Hyper-V allows that, QEMU for example can emulate old ones such as an rtl8139.
_________________
emerchu -uDN world • gentoo girl
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sun Aug 01, 2021 12:52 pm    Post subject: Reply with quote

browin,

Quote:
i restore physical machine ...


Your kernel will be compiled for the ethernet interface in the the original physical machine.
There are literally 100's of ethernet cards, all with their own driver, so the chance of hyper-v emulating the ethernet card that your kernel is made for is very small.

Look at the list of ethernet interfaces that hyper-v supports and choose one that your kernel can be made to support.
Expect to at least add a module to your existing kernel.

An update to a current kernel will be difficult. Your glibc will be too old, your gcc will be to old ... That's not a good way to start.

The path of least pain is to make the ethernets work together if that's possible.
Sources for 2.6.39 will still be available.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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