Not able to Use the device in WSL2 - ARM machine.

Hi,

I am new here, just purchase the license of virtualhere but not able to connect the device. adding the details below(which is my requirement as well).

  • I am using ARM machine(windows 11).
  • Need to connect the device inside WSL2(ubuntu-22)
  • vhci_hcd module is present.

I am getting the below error when using the device.

VirtualHere Client: There was a error using this device.

#2

Does dmesg inside WSL show any other errors when you try to use the device via virtualhere?

#3

No error apart from "misc dxg: dxgk: dxgkio_is_feature_enabled: Ioctl failed: -22" in demsg

#4

What about syslog?

#5

no such error.

Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: VirtualHere Client 5.7.2 starting (Compiled: Aug  7 2024 13:57:36)
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Client OS is Linux 6.6.36.3-microsoft-standard-WSL2+ aarch64
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Using config at /root/.vhui
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393502] ACPI: bus type USB registered
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393640] usbcore: registered new interface driver usbfs
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393649] usbcore: registered new interface driver hub
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393665] usbcore: registered new device driver usb
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.405407] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.405416] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.405424] vhci_hcd: created sysfs vhci_hcd.0
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406007] hub 1-0:1.0: USB hub found
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406038] hub 1-0:1.0: 8 ports detected
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406413] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406416] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406517] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406832] hub 2-0:1.0: USB hub found
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406859] hub 2-0:1.0: 8 ports detected
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: IPC available at /tmp/vhclient
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: VirtualHere Client is running as a service
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Auto-find (Bonjour) on
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Auto-find (Bonjour SSL) on
Sep 11 16:02:58 QCOM-m8mSDNbhQb kernel: [  600.522122] mini_init (172): drop_caches: 1
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Early/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Early/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Reporting/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Reporting/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Error/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Error/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Userdata/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Userdata/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Package/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Package/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Debconf/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Debconf/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Kernel/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Kernel/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Zdev/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Zdev/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Ad/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Ad/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Late/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb kernel: [  614.860519] block sda: the capability attribute has been deprecated.
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.180952] raid6: neonx8   gen() 23295 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.248908] raid6: neonx4   gen() 22129 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.316910] raid6: neonx2   gen() 18328 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.384963] raid6: neonx1   gen() 15220 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.452947] raid6: int64x8  gen() 10080 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.520945] raid6: int64x4  gen()  9490 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.588906] raid6: int64x2  gen()  7605 MB/s
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Late/apply_autoinstall_config
Sep 11 16:03:13 QCOM-m8mSDNbhQb snapd[190]: storehelpers.go:923: cannot refresh: snap has no updates available: "bare", "core22", "gtk-common-themes", "snapd", "ubuntu-desktop-installer"
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.656905] raid6: int64x1  gen()  6310 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.656913] raid6: using algorithm neonx8 gen() 23295 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.724958] raid6: .... xor() 18208 MB/s, rmw enabled
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.724967] raid6: using neon recovery algorithm
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.732786] xor: measuring software checksum speed
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.733312]    8regs           : 26214 MB/sec
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.733754]    32regs          : 27080 MB/sec
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.734141]    arm64_neon      : 35812 MB/sec
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.734142] xor: using function: arm64_neon (35812 MB/sec)
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.997745] Btrfs loaded, zoned=yes, fsverity=no
Sep 11 16:03:54 QCOM-m8mSDNbhQb VirtualHere Client: There was a error using this device.
Sep 11 16:03:58 QCOM-m8mSDNbhQb kernel: [  660.472456] mini_init (172): drop_caches: 1
Sep 11 16:04:04 QCOM-m8mSDNbhQb systemd[1]: Condition check resulted in Daily apt upgrade and clean activities being skipped.
Sep 11 16:04:14 QCOM-m8mSDNbhQb VirtualHere Client: There was a error using this device.

#6

no such error. adding the logs below

Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: VirtualHere Client 5.7.2 starting (Compiled: Aug  7 2024 13:57:36)
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Client OS is Linux 6.6.36.3-microsoft-standard-WSL2+ aarch64
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Using config at /root/.vhui
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393502] ACPI: bus type USB registered
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393640] usbcore: registered new interface driver usbfs
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393649] usbcore: registered new interface driver hub
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.393665] usbcore: registered new device driver usb
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.405407] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.405416] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.405424] vhci_hcd: created sysfs vhci_hcd.0
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406007] hub 1-0:1.0: USB hub found
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406038] hub 1-0:1.0: 8 ports detected
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406413] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406416] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406517] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406832] hub 2-0:1.0: USB hub found
Sep 11 16:00:06 QCOM-m8mSDNbhQb kernel: [  428.406859] hub 2-0:1.0: 8 ports detected
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: IPC available at /tmp/vhclient
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: VirtualHere Client is running as a service
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Auto-find (Bonjour) on
Sep 11 16:00:06 QCOM-m8mSDNbhQb VirtualHere Client: Auto-find (Bonjour SSL) on
Sep 11 16:02:58 QCOM-m8mSDNbhQb kernel: [  600.522122] mini_init (172): drop_caches: 1
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Early/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Early/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Reporting/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Reporting/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Error/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Error/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Userdata/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Userdata/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Package/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Package/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Debconf/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Debconf/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Kernel/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Kernel/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Zdev/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Zdev/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Ad/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Ad/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Late/apply_autoinstall_config
Sep 11 16:03:12 QCOM-m8mSDNbhQb kernel: [  614.860519] block sda: the capability attribute has been deprecated.
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.180952] raid6: neonx8   gen() 23295 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.248908] raid6: neonx4   gen() 22129 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.316910] raid6: neonx2   gen() 18328 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.384963] raid6: neonx1   gen() 15220 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.452947] raid6: int64x8  gen() 10080 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.520945] raid6: int64x4  gen()  9490 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.588906] raid6: int64x2  gen()  7605 MB/s
Sep 11 16:03:12 QCOM-m8mSDNbhQb subiquity_event.300[300]: subiquity/Late/apply_autoinstall_config
Sep 11 16:03:13 QCOM-m8mSDNbhQb snapd[190]: storehelpers.go:923: cannot refresh: snap has no updates available: "bare", "core22", "gtk-common-themes", "snapd", "ubuntu-desktop-installer"
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.656905] raid6: int64x1  gen()  6310 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.656913] raid6: using algorithm neonx8 gen() 23295 MB/s
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.724958] raid6: .... xor() 18208 MB/s, rmw enabled
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.724967] raid6: using neon recovery algorithm
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.732786] xor: measuring software checksum speed
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.733312]    8regs           : 26214 MB/sec
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.733754]    32regs          : 27080 MB/sec
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.734141]    arm64_neon      : 35812 MB/sec
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.734142] xor: using function: arm64_neon (35812 MB/sec)
Sep 11 16:03:13 QCOM-m8mSDNbhQb kernel: [  615.997745] Btrfs loaded, zoned=yes, fsverity=no
Sep 11 16:03:54 QCOM-m8mSDNbhQb VirtualHere Client: There was a error using this device.
Sep 11 16:03:58 QCOM-m8mSDNbhQb kernel: [  660.472456] mini_init (172): drop_caches: 1
Sep 11 16:04:04 QCOM-m8mSDNbhQb systemd[1]: Condition check resulted in Daily apt upgrade and clean activities being skipped.
Sep 11 16:04:14 QCOM-m8mSDNbhQb VirtualHere Client: There was a error using this device.

#7

Did you enter the license into the virtualhere client? E.g using a GUI or via 

./vhclientarm64 -t "LICENSE SERVER,license key"

#8

Using GUI, but does it matters? as far as i know License is applied to the host.

#9

Should be ok. i dont see any error. Can you email me at mail [at] virtualhere.com (mail[at]virtualhere[dot]com) perhaps i can use rustdesk to have a look while you are there?

#10

could able to do the live debugging due to company policy. 

I am doing this on 2 devices 

  1. Snapdragon 8cx Gen3
  2. Snapdragon Xelite laptop(X1E80100) can you share any custom 

Could you share any custom debug client for above. Or share me the steps to debug the things locally.

#11

I think you mean "Could'nt" .

Anyway it might be the server side part (i.e the host) where the error is. Try to use the device via virtualhere. Then on the server grep vhusbd /var/log/syslog and look for errors around the time you try to use the device.

#13

OK can you look in syslog as I described previously and let me know if it shows errors there