WMI activity error | usb devices stop working

Discussions related to using VirtualBox on Windows hosts.
Post Reply
MrSebas2023
Posts: 5
Joined: 26. Sep 2022, 13:03

WMI activity error | usb devices stop working

Post by MrSebas2023 »

Win10 Host
Opensuse 13.1 Guest

I have set up 2 usb filters for USB to Serial converters(I have 2 different ones, so that i can always have them connect to the same ttyUSB port in linux)
In linux I have set them up with symbolic links to ttyS0 and ttyS1 and everything works perfectly.

Now for the issue, the system stays up and running no issues with sleep or crashes. But after some time, the usb devices just stop working, in linux (ls /dev/ or lsusb) they are still connected to the system.
As I am running a temperature monitoring on the guest, is can say that the serial ports worked from 23sep 15:30 until 24sep 17:48
When i reboot the VM everything works again.

In linux messages log I cannot find anything that would cause an issue, and I cannot find any message stating the usb devices have been disconnected.
In VBox.log i see nothing except for dhcp offering an Ip adress
In windows even manager i can find 1 message that occurs around the time the adapters stop working:

Code: Select all

- System 

  - Provider 

   [ Name]  Microsoft-Windows-WMI-Activity 
   [ Guid]  {1418ef04-b0b4-4623-bf7e-d74ab47bbdaa} 
 
   EventID 5858 
 
   Version 0 
 
   Level 2 
 
   Task 0 
 
   Opcode 0 
 
   Keywords 0x4000000000000000 
 
  - TimeCreated 

   [ SystemTime]  2022-09-24T15:48:02.6089764Z 
 
   EventRecordID 1558 
 
   Correlation 
 
  - Execution 

   [ ProcessID]  3180 
   [ ThreadID]  7248 
 
   Channel Microsoft-Windows-WMI-Activity/Operational 
 
   Computer DESKTOP-AT8IFFR 
 
  - Security 

   [ UserID]  S-1-5-18 
 

- UserData 

  - Operation_ClientFailure 

   Id {00000000-0000-0000-0000-000000000000} 
 
   ClientMachine DESKTOP-AT8IFFR 
 
   User NT AUTHORITY\SYSTEM 
 
   ClientProcessId 7332 
 
   Component Unknown 
 
   Operation Start IWbemServices::ExecQuery - ROOT\CIMV2 : SELECT * FROM Win32_OptionalFeature WHERE name = 'WAS-NetFxEnvironment' 
 
   ResultCode 0x80041032 
 
   PossibleCause Unknown 
 
 
I cannot find processId 7332 using taskmanager
I am able to find id 3180 = svchost

Is this event the actual issue why the usb devices stop working, or should i look somewhere else ?
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: WMI activity error | usb devices stop working

Post by mpack »

Please provide a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
MrSebas2023
Posts: 5
Joined: 26. Sep 2022, 13:03

Re: WMI activity error | usb devices stop working

Post by MrSebas2023 »

mpack wrote:Please provide a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
Attached VBox.log in a zip

Also found another Event Viewer entry that might be usefull:

Code: Select all

- System 

  - Provider 

   [ Name]  Microsoft-Windows-WMI-Activity 
   [ Guid]  {1418ef04-b0b4-4623-bf7e-d74ab47bbdaa} 
 
   EventID 5857 
 
   Version 0 
 
   Level 0 
 
   Task 0 
 
   Opcode 0 
 
   Keywords 0x4000000000000000 
 
  - TimeCreated 

   [ SystemTime]  2022-09-24T15:48:00.7561144Z 
 
   EventRecordID 1552 
 
   Correlation 
 
  - Execution 

   [ ProcessID]  4572 
   [ ThreadID]  9312 
 
   Channel Microsoft-Windows-WMI-Activity/Operational 
 
   Computer DESKTOP-AT8IFFR 
 
  - Security 

   [ UserID]  S-1-5-20 
 

- UserData 

  - Operation_StartedOperational 

   ProviderName CIMWin32 
 
   Code 0x0 
 
   HostProcess wmiprvse.exe 
 
   ProcessID 4572 
 
   ProviderPath %systemroot%\system32\wbem\cimwin32.dll 
 
 
Attachments
log.zip
VBox.log
(39.05 KiB) Downloaded 3 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: WMI activity error | usb devices stop working

Post by mpack »

You have allocated 100% (4) of available cores to guest code (to cut off the obligatory objection: your CPU has 8 threads, 4 cores - and nobody cares about threads). This isn't great news for code running on the host, which includes VirtualBox. Trying reducing the VM allocation to 2 cores.

And this is absolutely horrific:
00:00:19.419735 VMMDev: Guest Additions information report: Version 4.3.6 r91406 '4.3.6'
00:00:19.419768 VMMDev: Guest Additions information report: Interface = 0x00010004 osType = 0x00053000 (Linux >= 2.6, 32-bit)
00:00:19.419912 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no
The v4.3.6 GAs were released in Dec 2013, almost a decade ago, and long before the current crop of virtual graphics controllers even existed. I suggest that the GAs are overdue for an update. Obviously you should back up the VM before a change of this magnitude.

You should also keep an eye on RAM use, as your 8GB host can barely afford a 4GB VM IMO.
MrSebas2023
Posts: 5
Joined: 26. Sep 2022, 13:03

Re: WMI activity error | usb devices stop working

Post by MrSebas2023 »

mpack wrote:You have allocated 100% (4) of available cores to guest code (to cut off the obligatory objection: your CPU has 8 threads, 4 cores - and nobody cares about threads). This isn't great news for code running on the host, which includes VirtualBox. Trying reducing the VM allocation to 2 cores.

And this is absolutely horrific:
00:00:19.419735 VMMDev: Guest Additions information report: Version 4.3.6 r91406 '4.3.6'
00:00:19.419768 VMMDev: Guest Additions information report: Interface = 0x00010004 osType = 0x00053000 (Linux >= 2.6, 32-bit)
00:00:19.419912 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no
The v4.3.6 GAs were release in Dec 2018, before the current crop of virtual graphics controllers even existed. I suggest that the GAs are overdue for an update.

You should also keep an eye on RAM use, as your 8GB host can barely afford a 4GB VM IMO.
I have applied some changes ->
2Cores
3GB RAM
The latest Guest Additions do not work on my VM (Opensuse 13.1) i believe the one that is installed is the latest I could find for this OS.

I will keep the system running overnight, i'll report back tomorrow!
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: WMI activity error | usb devices stop working

Post by mpack »

MrSebas2023 wrote: The latest Guest Additions do not work on my VM (Opensuse 13.1) i believe the one that is installed is the latest I could find for this OS.
The fact remains that I doubt that VirtualBox 6.1.38 is tested to work with GAs that old, and much of the VM APIs will be inaccessible - at best.
MrSebas2023
Posts: 5
Joined: 26. Sep 2022, 13:03

Re: WMI activity error | usb devices stop working

Post by MrSebas2023 »

mpack wrote:
MrSebas2023 wrote: The latest Guest Additions do not work on my VM (Opensuse 13.1) i believe the one that is installed is the latest I could find for this OS.
The fact remains that I doubt that VirtualBox 6.1.38 is tested to work with GAs that old, and much of the VM APIs will be inaccessible - at best.
The machine has been running without issues since my last reply.
If for some reason I still get the same issues, what version of virtualbox should I be using in combination with the version of GA that I'm using ?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: WMI activity error | usb devices stop working

Post by scottgus1 »

MrSebas2023 wrote:what version of virtualbox should I be using in combination with the version of GA that I'm using ?
Willy Wonka wrote:Strike that, reverse it, thank you.
You should update the Guest Additions in the VM to match the version of Virtualbox your host is running. Note that a couple of versions (the z number in version x.y.z) is probably OK, unless 3D acceleration or a new feature is being used. But differences in x or y are a no-no.

Guest Additions comes bundled with official Virtualbox, and "Insert Guest Additions CD Image" always puts the up-to-date bundled GAs ISO in the VM's CD drive.
MrSebas2023
Posts: 5
Joined: 26. Sep 2022, 13:03

Re: WMI activity error | usb devices stop working

Post by MrSebas2023 »

Well, since I lowered the Guest specs the usb devices have kept working for over 48hours.
I'll keep you guys posted if anything happens, for now i think lowering the specs have resulted in a more stable VM.

Thanks
Post Reply