#StackBounty: #windows-10 #networking #virtualization #hyper-v HyperV fails to run VMs that are connected to a virtual switch, but work…

Bounty: 50

I am running Windows 10 20H2 on a HP EliteBook G4.

I have the following problem:

I cannot run VMs attached to a virtual switch.

  • All VMs run successfully when not using a Virtual Switch ("not connected" under network adapter)
  • When I assign a virtual switch (any type, any kind) to a VM, it hangs in starting at 10% and eventually fails with a timeout error. I tried both an empty VM not containing an OS (this should at least show the UEFI screen) and a VM containing an installation of Ubuntu 20.04 LTS.

I expect that I can run VMs connected to virtual switches.

What have I tried?

  • Disable Antivirus
  • Network reset in Windows 10 (multiple times, e.g. netcfg -d)
  • Uninstall Hyper-V, delete any superfluous networking interfaces and reinstall it
  • Upgrade Windows 10 (it was at 1903 before that)
  • Update ethernet driver with that from HP
  • Delete ethernet driver and use the default
  • Upgrade BIOS
  • file system and system files checks

In total I already spent about 20h also involving people from IT on this problem researching and trying various commands, following various websites. It is a problem I have not found so far (or still missed?). I hope to find someone that had the exact same problem and can remember the solution.

What errors do I get?

I think these are the relevant ones:

  • Hyper-V-Worker
    • Event ID 12006 with following message
      • ‘Ubuntu20.04.1LTS’ Synthetic Ethernet Port: Failed to finish reserving resources with Error ‘This operation returned because the timeout period expired.’ (0x800705B4). (Virtual machine ID XXXX-XXX-…)
    • Event ID 12030 with following message
      • ‘Ubuntu20.04.1LTS’ failed to start. (Virtual machine ID XXXX-XXX-…)
    • Event ID 12010 with following message for a "Generation 1" VM with a legacy network adapter
      • ‘Emptyv1_net’ Emulated Ethernet Port (Instance ID XXXX-XXX-…): Failed to Power on with Error ‘Access is denied.’ (0x80070005). (Virtual machine ID XXXX-XXX-…)
  • Hyper-V-SynthNic
    • Event ID 12670 with following messages
      • ‘Ubuntu20.04.1LTS’ failed to allocate resources while connecting to a virtual network: This operation returned because the timeout period expired. (0x800705B4) (Virtual Machine ID XXXX-XXX-…). The Ethernet switch may not exist.
      • ‘Ubuntu20.04.1LTS’ failed to allocate resources while connecting to a virtual network: Access is denied. (0x80070005) (Virtual Machine ID XXXX-XXX-…). The Ethernet switch may not exist.


Get this bounty!!!

#StackBounty: #windows-10 #hyper-v #logitech-mouse capture real mouse input Hyper-V

Bounty: 50

I’m looking for a way to capture the real mouse input in a Hyper-V Virtual Machine, so that I can play First Person Shooting games. I’m experiencing a problem where I am spinning around in circles. starting at the floor in games. Any mouse moments I make just makes me spin. I thought maybe it was an issue with my mouse sensitivity, but it wasn’t, I continue to spin regardless of what my sensitivity is set too.

I had a read of this forum post and it told me that the VM is not capturing the real mouse input

First of all, the mouse sync driver is primarily designed for you to being able to move your mouse from your host system to the guest system window without having to manually grab the window. It actually ‘detects’ whether the host mouse cursor is moving on the VM’s screen. This mouse is actually not the real mouse cursor, but it’s actually processed by the host system virtual machine to make mouse movement smoother. The sync driver/service just passed the movements to the real vm, but the real vm cursor is actually not there

How can I capture the real mouse input in VM?


Get this bounty!!!

#StackBounty: #hyper-v capture real mouse input Hyper-V

Bounty: 50

I’m looking for a way to capture the real mouse input in a Hyper-V Virtual Machine, so that I can play First Person Shooting games. I’m experiencing a problem where I am spinning around in circles. starting at the floor in games. Any mouse moments I make just makes me spin. I thought maybe it was an issue with my mouse sensitivity, but it wasn’t, I continue to spin regardless of what my sensitivity is set too.

I had a read of this forum post and it told me that the VM is not capturing the real mouse input

First of all, the mouse sync driver is primarily designed for you to being able to move your mouse from your host system to the guest system window without having to manually grab the window. It actually ‘detects’ whether the host mouse cursor is moving on the VM’s screen. This mouse is actually not the real mouse cursor, but it’s actually processed by the host system virtual machine to make mouse movement smoother. The sync driver/service just passed the movements to the real vm, but the real vm cursor is actually not there

How can I capture the real mouse input in VM?


Get this bounty!!!

#StackBounty: #windows-10 #usb #bsod #hyper-v USB devices not detected unless clicked on scan for hard changes in device manager after …

Bounty: 50

  • CPU – AMD Ryzen 3 1200 (SVM is enabled)
  • Windows – Version 2004 (OS Build 19041.264)
  • USB Devices tried to connect – External Hard Disk, Pen Drives (All are USB3.0 ports)

Other Issues:

  1. When I manually click on Scan for hardware changes, sometimes my system freezes and causes a BSOD named dpc watchdog violation
  2. Keeping the hard disk connected makes the system very slow and unresponsive sometimes, there are no CPU spikes in task manager though

Had the same issue before in previous version of Windows 10, when enabling Hyper-V alone, I thought the newer build would fix those issues. But the issue still persists.


Get this bounty!!!

#StackBounty: #virtualization #hyper-v #network-protocols #bindings Unable to bind hyper-v virtual switch to ethernet adapter

Bounty: 50

I’m having trouble creating a virtual switch for a virtual machine I have in hyper-v. I had a virtual ethernet switch set up and connected to the machine before, after deleting this at some point, I now cannot create one again.

Within hyper-v the error is:

enter image description here

After researching the problem, this appears to be related to the ‘Hyper-V Virtual Extensible Switch’ item not being checked in the ethernet adapters properties.

enter image description here

Trying to enable this in the GUI isn’t possible, as after checking the item then clicking on OK the message is “Your current selection will also disable the following features:
Hyper-V Extensible Virtual Switch”, like here: https://www.tenforums.com/virtualization/31369-cant-enable-hyper-v-extensible-virtual-switch-networking.html

Within powershell when trying to enable this the error is

PS C:WindowsSystem32WindowsPowerShellv1.0> Set-VMSwitch Internet
-NetAdapterName “Ethernet”
Set-VMSwitch : Hyper-V was unable to find a virtual switch with name “Internet”. At line:1 char:1

Set-VMSwitch Internet -NetAdapterName “Ethernet” + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Set-VMSwitch], VirtualizationException +
FullyQualifiedErrorId :
ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.SetVMSwitch

Using the following command with a microsft uitilty called nvspbind:

nvspbind.exe” /b “Realtek PCIe GbE Family Controller”

the result is:

applying changes… cleaning up…releasing write lock…success
finished (0)

But inspection afterwards using the properties GUI, powershell and nsvpbind reveals that the virtual switch is in not binded (all list as not binded).

Any ideas?

Specs:
Windows 10 64 bit.


Get this bounty!!!

#StackBounty: #ubuntu #hyper-v #sr-iov #ubuntu-20.04 SR-IOV not working on Ubuntu 20.04 (hyper-v), works fine on 18.04 LTS

Bounty: 50

I’m running Ubuntu server virtual machines on a Windows Server 2019 system using Hyper-V.
The system is equipped with an Intel I350 network adapter. (The Ubuntu VM’s recognize it as “Ethernet controller: Intel Corporation I350 Virtual Function (rev 01)” )

The Ubuntu 18.04 machines are using SR-IOV out of the box.
These are using the kernel: 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

When I upgraded these 18.04 machines to the latest HWE kernel, SR-IOV stopped working.
Hyper-V reports the network adapters state to be degraded (SR-IOV not operational)
I submitted a bug on launchpad about this issue, over a year ago, but never received an answer (https://bugs.launchpad.net/ubuntu/+source/linux-hwe/+bug/1818400)

With the new Ubuntu 20.04 release I’m having the same problem. SR-IOV is not working out of the box on these new Ubuntu VM either.

Does someone here know how to get SR-IOV working on newer kernels? Or how to raise this bug with the Ubuntu developers so that it gets their attention?

What I’ve already tried:
I’ve compared the kernel modules loaded between the 18.04 and 20.04 machines.
On the 20.04 machine I enabled all the missing modules from the 18.04, inside the /etc/modules file:

  • ib_cm
  • ib_core
  • ib_iser
  • iscsi_tcp
  • iw_cm
  • rdma_cm
  • libiscsi
  • libiscsi_tcp
  • pcbc

I noticed these three modules could not be loaded on 20.04:

  • pps_core
  • ptp
  • aes_x86_64


Get this bounty!!!

#StackBounty: #windows-10 #hyper-v #network-adapter #windows-server-2012-r2 #internet-sharing Hyper-v: give VM internet access in case …

Bounty: 50

(I)- I have a VPS with VT CPU declared. (Windows server 2012 r2 Datacenter)

(II)- So, installed a nested VM in Hyper-v Manager. (Windows 10 Enterprise)

(III)- Created an External Switch:↓
enter image description here

(IV)- With this settings in Host (Windows server 2012)
enter image description here

enter image description here

(V)- VM Settings: (Win10-1)↓
enter image description here

enter image description here

(VI)- But no internet access! In case of Default gateway has pinged and folder sharing is true.
enter image description here

What is the problem, internet access of my VM (Win10-1)?

Any helps are appreciated.

Regards,


Get this bounty!!!

#StackBounty: #firewall #hyper-v #anti-virus #windows-subsystem-for-linux #avast Which exceptions should I add for WSL and Hyper-V in A…

Bounty: 50

Summary:

I have my firewall blocking the WSL server (Ubuntu 18.04) only when running on Visual Studio Code. It is also preventing my Hyper-V VM (Ubuntu 19.04) to establish almost every connection to internet, for example sudo apt update or browsing (for some reason I can ping successfully though but I would’t focus on this as of now).

Details:

After many trail and error efforts I have isolated and concluded that my firewall (Avast Premier) is the only culprit for this. Disabling the firewall for 10 mins allows me to do these two different operations, connect to WSL server from Visual Studio Code and also to navigate and update packages in my virtualized Ubuntu from Hyper-V.

What I have done so far:

I have checked that VSCode has all connections allowed in all ports (inbound and outbound):

enter image description here

Allowing rules seem to be in place:

enter image description here

And also added VSCode to the antivirus exceptions list:

enter image description here

None of the actions above worked, only disabling the firewall.

Question:

What rules should I add to the firewall for allowing:

  1. WSL server (Ubuntu 18.04.2) from VSCode
  2. Internet connection on Ubuntu 19.04 from Hyper-V.

Notes:
WSL works perfectly outside VSCode. I can even start a batch terminal from it (the connection from the left of status bar is what is the issue).


UPDATE:

This is the output I get from WSL terminal in VSCode:

Failed to connect to the remote extension host server (Error: connect ETIMEDOUT 127.0.0.1:62388)

Failed to connect to the remote extension host server (Error: connect ETIMEDOUT 127.0.0.1:62388)


Get this bounty!!!

#StackBounty: #hyper-v #cpu-usage Hyper-V virtual machines high CPU usage

Bounty: 100

On Windows 10 (1903) I have installed Hyper-V host. On that host I have some Windows 10 (1903) machines. Everything fresh installed. The machines does not yet have any heavy services set up (mostly clean domain joined Win 10). The problem is affecting all the machines the same way.

When the virtual machines starts it has low CPU usage (usually showing 0% in Hyper-V Manager). When I log in the machine after a while it is around 0% again. This is ok. But when I close the session (without logging user off), the CPU usage raises to 12 % and stays there forever.

12 % is because I have 8 logical processors, so one logical processor is 100 % used by the virtual machine.

This 12 % thing happens only when I close enhanced session without logging in. When I am logged in with running session or logged out it never happens. If I close basic (not enhanced) session without logging out it does not happen.

Does anybody know what to do with this? Or at least where to look for causes of the problem?

It is really weird because it never happens when connected so I have limited options to investigate.

enter image description here


Get this bounty!!!