microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.34k stars 814 forks source link

WSL 2: Enabling 'Virtual Machine Platform' feature causes Realtek Gaming Gbe Family Controller driver to fail to load #5911

Closed rinfimate closed 3 years ago

rinfimate commented 4 years ago

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.508]
Your Distribution version: Ubuntu (but doesn't matter, since it's Windows issue).
Whether the issue is on WSL 2 and/or WSL 1: WSL2

System Details: HP Omen 2020 with AMD Ryzen 4800H with Windows Home

Steps to reproduce

  1. Install the 'Virtual Machine Platform' features, following steps here to install WSL 2.
  2. Reboot machine.
  3. Open Device manage, and notice that Realtek Gaming Gbe Family Controller fails with: The driver for this device has been blocked from starting because it is known to have problems with Windows. Contact the hardware vendor for a new driver. (Code 48). The ethernet card is no longer visible in network settings and cannot be used anymore.
  4. Open WSL 2 based distro (Ubuntu), and verify that it works.
  5. Disable 'Virtual Machine Platform'
  6. Reboot.
  7. Observe that resolution is restored to normal, and Realtek Gaming Gbe Family Controller driver loads successfully and the ethernet card can be used again.
  8. WSL 2 image no longer work. WSL 1 based image works fine.

Expected behavior

I would like to run WSL 2 based Linux and be able to use my ethernet card.

Actual behavior

Some conflict occurs between the Virtual Machine Platform feature and Realtek Ethernet drivers. BTW, i tried installing the latest drivers too but they don't work. The problem right now is that they cannot co-exist.

I'd like to know whether this is a Windows or Realtek issue, so I can followup for support accordingly. Any other logs/debugging I can gather or provide?

carajf commented 3 years ago

Also got a new Omen with the Ryzen 7 4800H. Running into similar issues here and the one you commented on here. Also noticed my WiFi is being suuuuuuuuper slow, possibly a separate issue though.

Any joy setting up WSL2 and not running into problems?

qinywolf commented 3 years ago

Also got a new Omen with the Ryzen 7 4800H. Running into similar issues here and the one you commented on here. Also noticed my WiFi is being suuuuuuuuper slow, possibly a separate issue though.

Any joy setting up WSL2 and not running into problems?

maybe u can uninstall Ryzen SDK(not a full name),and then start up normally.

carajf commented 3 years ago

Also got a new Omen with the Ryzen 7 4800H. Running into similar issues here and the one you commented on here. Also noticed my WiFi is being suuuuuuuuper slow, possibly a separate issue though. Any joy setting up WSL2 and not running into problems?

maybe u can uninstall Ryzen SDK(not a full name),and then start up normally.

Did this last night and it's working (touch wood) although I did randomly blue screen at one point. Hoping that's a one time thing.

juliand123 commented 3 years ago

Hi, I am from Colombia, I have the same problem with ethernet realtek gaming gbe family controller is disable after enable Hyper-V in windows 10 pro My Laptop is Ryzen 4800h Hp Omen I update last bios...

taras2k commented 3 years ago

Same problem Omen with the Ryzen 7 4800H - reinstalling amd drivers did not not help.

gabrielelpidio commented 3 years ago

Also Same Problem with Omen 15 - 4800H. Updated Realtek Drivers and didn't help

qinywolf commented 3 years ago

Also got a new Omen with the Ryzen 7 4800H. Running into similar issues here and the one you commented on here. Also noticed my WiFi is being suuuuuuuuper slow, possibly a separate issue though. Any joy setting up WSL2 and not running into problems?

maybe u can uninstall Ryzen SDK(not a full name),and then start up normally.

Did this last night and it's working (touch wood) although I did randomly blue screen at one point. Hoping that's a one time thing.

From what I know, starting the Virtual Machine Platform will also cause some PCI-related operation blue screens. In my test, if AIDA64 is started and theSteelSeriesi driver is installed, it will cause BSOD. BSOD disappeared after Virtual Machine Platform closing.

techno-disaster commented 3 years ago

Omen 4600H here facing the same issue, any solutions yet? @rinfimate

alvaro-octal commented 3 years ago

Same here, HP Omen with Ryzen 4800H, latest windows, drivers, BIOS, etc.

And it went worst when I tried to use ubuntu. Never buying another HP Laptop again.

techno-disaster commented 3 years ago

Same here, HP Omen with Ryzen 4800H, latest windows, drivers, BIOS, etc.

And it went worst when I tried to use ubuntu. Never buying another HP Laptop again.

ubuntu in dual boot works fine you can give that a try

techno-disaster commented 3 years ago

Enabling "Windows hypervisor" in features also results in the same issue. Code 48 for Ethernet

remisharrock commented 3 years ago

might it be connected to https://github.com/microsoft/WSL/issues/5662 ? Looks like ryzen platforms have issues like this with graphics or network controllers, so might it be a ryzen chipset driver bug ?

techno-disaster commented 3 years ago

might it be connected to #5662 ? Looks like ryzen platforms have issues like this with graphics or network controllers, so might it be a ryzen chipset driver bug ?

Well it works on the Asus tuf with a R5 4600H and R7. Maybe it's a realtek issue?

davidfregoli commented 3 years ago

I have the same problem on my new Laptop, it's a Mechrevo Code 01 clone (Ryzen 4800H), the onboard Intel ax200 wifi card is disabled with code 48 when enabling Virtualization.

The onboard "Realtek PCIe GbE Family Controller" Ethernet actually works fine

techno-disaster commented 3 years ago

I have the same problem on my new Laptop, it's a Mechrevo Code 01 clone (Ryzen 4800H), the onboard Intel ax200 wifi card is disabled with code 48 when enabling Virtualization.

The onboard "Realtek PCIe GbE Family Controller" Ethernet actually works fine

Hey, can you tell your Ethernet and wifi card driver versions?

davidfregoli commented 3 years ago

9.1.410.2015 for Ethernet and 21.120.2.1 for the ax200 (also tried 22.0.0.6)

qinywolf commented 3 years ago

9.1.410.2015 for Ethernet and 21.120.2.1 for the ax200 (also tried 22.0.0.6)

It seems that these issues are related.Please tell your Intel ax200 wifi card PCI bus number, my Realtek PCIe GbE Family Controller not working , and it is PCI bus 2。

My Intel ax200 wifi card on the PCI bus 3, Works fine.

davidfregoli commented 3 years ago

wifi on bus 1, not working, ethernet on bus 2, working.

disabling wifi in bios puts ethernet on bus 1, still working.

techno-disaster commented 3 years ago

9.1.410.2015 for Ethernet and 21.120.2.1 for the ax200 (also tried 22.0.0.6)

It seems that these issues are related.Please tell your Intel ax200 wifi card PCI bus number, my Realtek PCIe GbE Family Controller not working , and it is PCI bus 2。

My Intel ax200 wifi card on the PCI bus 3, Works fine.

wifi bus 3 working ethernet bus 2 not working

techno-disaster commented 3 years ago

9.1.410.2015 for Ethernet and 21.120.2.1 for the ax200 (also tried 22.0.0.6)

Where did you get this 9.1.xx driver can you link it? also for the wifi im in 21.110.xx and wifi works fine for me

techno-disaster commented 3 years ago

@therealkenc friendly ping, any updates on this issue? doesn't seem a Realtek or HP issue?

juliand123 commented 3 years ago

Hi, in my case, the problem persist HP omen Ryzen 4800H, I installed the later drivers.... I thinking open case in the hp support and link this topic

techno-disaster commented 3 years ago

Hi, in my case, the problem persist HP omen Ryzen 4800H, I installed the later drivers.... I thinking open case in the hp support and link this topic

Already done here . Please upvote. The support team just said "We wont deal with any virtualization issues" and asked me to go to the service center for some reason

12ozCode commented 3 years ago

Got the same problem, I have HP Omen Ryzen 4800H 15-en0023dx. When I enable Hyper-V Windows feature, my Realtek LAN stops working, if I disable it - LAN is starting working. Sick and tired of using Wi-Fi(

p3p3pp3 commented 3 years ago

I have the same problem on my new Laptop, it's a Mechrevo Code 01 clone (Ryzen 4800H), the onboard Intel ax200 wifi card is disabled with code 48 when enabling Virtualization.

The onboard "Realtek PCIe GbE Family Controller" Ethernet actually works fine

Same problem

sachinchaturvedi93 commented 3 years ago

Got the same problem, I have HP Omen Ryzen 4800H 15-en0023dx. When I enable Hyper-V Windows feature, my Realtek LAN stops working, if I disable it - LAN is starting working. Sick and tired of using Wi-Fi(

Same Problem. HP Omen Ryzen 4600H 15-en0002ax 😭

bndF1 commented 3 years ago

Same problem here. Omen 15 2020 Ryzen 7 4800H. Any light?

Thanks

MingLu8 commented 3 years ago

I have the same issue with Eluktronic Thinn 15, (same as mechrevo code01),

nickgreensgithub commented 3 years ago

Same problem here. XMG core Ryzen 7 4800H

Duracell1989 commented 3 years ago

I've got the same problem. After enabling "Virtual Machine Platform", my network adapter doesn't work anymore. => Disabling fixes the problem. The network adapter states:

The driver for this device has been blocked from starting because it is known to have problems with Windows. Contact the hardware vendor for a new driver. (Code 48)

Click 'Check for solutions' to send data about this device to Microsoft and to see if there is a solution available.

I've got a AMD Ryzen 7 4800H with a RealTek PCIe Gb Family Controller.

saitejach1998 commented 3 years ago

I own a ryzen 7 4800h omen too. I have also noticed that Anti-Cheat systems specifically BattleEye cause the BSOD (Kernal Security Check Failed) due to this complication between the realtek driver and WSL 2. I can confirm this as by turning Virtual Machine Platform off, the anti-cheat works as intended. I can also confirm that this behavior is only on this laptop/driver configuration as my previous laptop running WSL 2 ran BattleEye amicably.

qinywolf commented 3 years ago

I own a ryzen 7 4800h omen too. I have also noticed that Anti-Cheat systems specifically BattleEye cause the BSOD (Kernal Security Check Failed) due to this complication between the realtek driver and WSL 2. I can confirm this as by turning Virtual Machine Platform off, the anti-cheat works as intended. I can also confirm that this behavior is only on this laptop/driver configuration as my previous laptop running WSL 2 ran BattleEye amicably.

It may be that BattleEye scanned the PCI device. When I start AIDA64 and AIDA64 show it scanning PCI, and than cause BSOD. Hope this issue can be solved, it looks like it will be next year. SadπŸ˜₯

techno-disaster commented 3 years ago

Small update: HP is sending someone to replace my motherboard for some reason? Pretty sure it won't work, but worth a try I guess.

0ssamaak0 commented 3 years ago

Same problem, R7 4800. any updates?

VuBui83 commented 3 years ago

Same issue on Omen 15 2020, it would be great if someone can point to where to go, is it RealTek, HP, MS Windows or MS WSL?

skoshy commented 3 years ago

Also affects EVOO EG-LP7 with Ryzen 4800H with WSL 2 turned on

My Realtek PCIe GbE Family Controller driver version is 10.39.212.2020

mmc_CaM5bNx00d

davidfregoli commented 3 years ago

Same issue on Omen 15 2020, it would be great if someone can point to where to go, is it RealTek, HP, MS Windows or MS WSL?

I have issues with a different network adapter (Intel ax200), my Realtek nic works fine, so it's surely something between MS and AMD

davidfregoli commented 3 years ago

Where did you get this 9.1.xx driver can you link it? also for the wifi im in 21.110.xx and wifi works fine for me

@Techno-Disaster uploaded here in case you still need it. Anyway, I just tested 21.110.1.1 for wifi and still no luck, so unlikely to be drivers-related.

Have you met with the HP technician yet?

techno-disaster commented 3 years ago

Where did you get this 9.1.xx driver can you link it? also for the wifi im in 21.110.xx and wifi works fine for me

@Techno-Disaster uploaded here in case you still need it. Anyway, I just tested 21.110.1.1 for wifi and still no luck, so unlikely to be drivers-related.

Have you met with the HP technician yet?

Thanks for the drivers.

Pretty sure even they don't know what's happening. They are replacing my motherboard this week (I did tell them its a software issue).

techno-disaster commented 3 years ago

Same issue on Omen 15 2020, it would be great if someone can point to where to go, is it RealTek, HP, MS Windows or MS WSL?

I have issues with a different network adapter (Intel ax200), my Realtek nic works fine, so it's surely something between MS and AMD

Maybe we should try asking on the AMD forums? has anyone done that before?

MingLu8 commented 3 years ago

There were updates on windows 10, docker, and intel wireless driver yesterday, my wireless card still says "Driver is blocked..." image

MingLu8 commented 3 years ago

My gut feeling about the issue is that Microsoft implemented some sort security constraint to address security issues in "Windows Virtual Platform" which invalidate Intel's Drivers for network cards. So certainly to maintain the security aspect of Windows, Microsoft is not going to roll back changes, one might hack around to not have security update installed, but the real correct fix has to come from Intel's driver update. So the pressure needs to be on Intel side, well, Microsoft can be also blamed, so that Microsoft could help putting pressure on Intel. INTEL HAD REALLY DISAPPOINTED WITH THEIR CPU, AND NOW THE NETWORK DRIVERS!

jasongza commented 3 years ago

Hey guys, I have a rebranded Tongfang GK5NR0O, Ryzen 7 etc etc. To get around the code 48 on my Realtek GbE device I've been using a usb-c dock πŸ˜…. Luckily my AX200 device has been fine to date.

So yesterday a new BIOS was made available to my supplier. After updating along with the new Windows 20H2 update my onboard ethernet along with WSL, Hyper-V AND GamingCenterU/ControlCenter works.

I'd suggest you contact your supplier or shop to source the update.

MingLu8 commented 3 years ago

Hey guys, I have a rebranded Tongfang GK5NR0O, Ryzen 7 etc etc. To get around the code 48 on my Realtek GbE device I've been using a usb-c dock πŸ˜…. Luckily my AX200 device has been fine to date.

So yesterday a new BIOS was made available to my supplier. After updating along with the new Windows 20H2 update my onboard ethernet along with WSL, Hyper-V AND GamingCenterU/ControlCenter works.

I'd suggest you contact your supplier or shop to source the update.

Could you please attach the files for the BIOS and ControlCenter?

techno-disaster commented 3 years ago

Hey guys, I have a rebranded Tongfang GK5NR0O, Ryzen 7 etc etc. To get around the code 48 on my Realtek GbE device I've been using a usb-c dock πŸ˜…. Luckily my AX200 device has been fine to date.

So yesterday a new BIOS was made available to my supplier. After updating along with the new Windows 20H2 update my onboard ethernet along with WSL, Hyper-V AND GamingCenterU/ControlCenter works.

I'd suggest you contact your supplier or shop to source the update.

By supplier you mean Realtek or Tongfang

jasongza commented 3 years ago

By supplier I mean where you purchased your laptop. The one I purchased from got in contact with Tongfang who ran the investigation and sent a new BIOS once the fix was ready. I've heard the Tongfang PF4NU1F model has a BIOS fix as well, but I cannot confirm as I do not own that laptop.

The support details I received said that once Windows 20H2 is installed GamingCenterU/ControlCenter should work again without a BIOS update. Unfortunately I had the new BIOS installed already so I cannot confirm whether it was one or both changes.

GamingCenterU/ControlCenter version should not matter, the one you received with your laptop should be fine. Here is the link to the ControlCenter I'm currently running. This one is from Eluktronics (see point 06): https://www.eluktronics.com/rp-15-rp-17-drivers/

With regards to the BIOS I'd rather not share it. I don't want to be a cause of bricking your laptop. The zip specifically mentions the model AND supplier name in it. Like I mentioned before, I'd suggest you contact your supplier or shop to source the update.

davidfregoli commented 3 years ago

@jasongza nice to hear that! is Ryzen Master SDK also working now?

davwheat commented 3 years ago

Can confirm BIOS updates are fixing this.

BIOSes can be shared between suppliers in most cases. I use a Schenker BIOS on my PCSpecialist laptop.

Latest BIOS works beautifully with Hyper-V, Memory Isolation can be enabled while keeping WiFi working, and the Control Centre doesn't conflict with any other software.

Woohoo I can use Docker again!

(I tested them for Schenker/XMG on my laptop.)

MingLu8 commented 3 years ago

Can confirm BIOS updates are fixing this.

BIOSes can be shared between suppliers in most cases. I use a Schenker BIOS on my PCSpecialist laptop.

Latest BIOS works beautifully with Hyper-V, Memory Isolation can be enabled while keeping WiFi working, and the Control Centre doesn't conflict with any other software.

Woohoo I can use Docker again!

(I tested them for Schenker/XMG on my laptop.)

Could you please post the link to the BIOS please, I have MechRevo s2 Air, the BIOS at mechrevo site seems to still from 08/2020?

davwheat commented 3 years ago

@MingLu8 No, I won't link to it.

We have different laptops. I only have the BIOS for the Via 15 Pro.

You need to wait for the new BIOS and hope MECHREVO will release it.

If you have a SCHENKER or XMG device, see this Reddit post for a list of devices with a new BIOS on the way: https://www.reddit.com/r/XMG_gg/comments/irdyt9/core_15_amd_control_center_wsl2_leads_to_blue/gf5bfpz

I think the VIA 14 PRO is the same as the S2 Air, but flashing it could brick your laptop so I don't recommend it.