Virtualbox and KVM/qemu cannot connect USB-devices

OpenVMS virtualization: OpenVMS on VirtualBox, VMWare, Hyper-V, KVM, and more.

Topic author
vaxinf
Member
Posts: 5
Joined: Sat May 04, 2024 4:31 am
Reputation: 0
Status: Offline

Virtualbox and KVM/qemu cannot connect USB-devices

Post by vaxinf » Sat May 04, 2024 4:40 am

For my project I need to access an external USB-DVD-drive to my x86-OVMS system.

I've checked the connection with a virtual windows 11 system and I can access the DVD-drive without problems. So I'm sure that the x86-OVMS system is the problem. Are there any plan to add the USB-connectivity to the x86 version?

A not happy vms fan
Eberhard :cry:


alexwong
Contributor
Posts: 21
Joined: Tue Apr 23, 2024 6:28 am
Reputation: 0
Status: Offline

Re: Virtualbox and KVM/qemu cannot connect USB-devices

Post by alexwong » Wed May 08, 2024 4:21 am

If it works with physical servers I agree with sms it's likely VB-related. Passthrough feature for USB DVD writer is an 'experimental' feature according to Oracle. Could be worth raising with them and send logs and diagnostics as feedback.

https://docs.oracle.com/en/virtualizati ... torage-cds


pjacobi
VSI Expert
Active Contributor
Posts: 26
Joined: Wed Jun 28, 2023 11:46 am
Reputation: 0
Status: Offline

Re: Virtualbox and KVM/qemu cannot connect USB-devices

Post by pjacobi » Wed May 08, 2024 12:35 pm

What you are attempting is to pass a physical USB DVD on VBOX to a virtual SATA interface. VMS sees the device as a SATA DVD (DK) and not a USB DVD (DN).

It is unclear if the SATA/USB emulation layer provided by VBOX supports writable DVDs. That functionality is totally dependent on the VM code and not VMS. You would have to check with VBOX for that functionality. It's possible that VBOX emulation layer may be missing functionality to convent certain SATA DVD write command for USB DVD drives.

USB is officially *not* supported on any X86 VMS versions. USB was on the x86 roadmap at one time, but it has since been replaced by projects of higher priority.


Paul A. Jacobi
VMS Software

Added in 17 minutes 31 seconds:
See the following link on how to unofficially enable USB on X86 VMS.

viewtopic.php?f=21&t=9062

For VBOX, you need the following entries in SYS$CONFIG.DAT

Code: Select all


device          = "Apple/VBOX USB 1.1 Controller"
  name          = OH
  driver        = SYS$OHCIDRIVER
  adapter       = PCI
  id            = 0x003F106B
end_device

device          = "Intel/VBOX EHCI USB 2.0 Controller"
  name          = EH
  driver        = SYS$EHCIDRIVER
  adapter       = PCI
  id            = 0x265C8086
  boot_class    = DN
  boot_flags    = HW_CTRL_LTR, UNIT_0
  flags         = PORT, BOOT
  ASSOC         = UCM, USB
end_device


roberbrooks
VSI Expert
Active Contributor
Posts: 32
Joined: Thu Jun 20, 2019 11:48 am
Reputation: 0
Status: Offline

Re: Virtualbox and KVM/qemu cannot connect USB-devices

Post by roberbrooks » Wed May 08, 2024 11:21 pm

> I cannot understand why the OpenVMS x86 is unable to use a USB-connection!

See viewtopic.php?f=21&t=9062

Short answer -- it's not supported on X86_64.
--
-- Rob

User avatar

arne_v
Master
Posts: 381
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Online
Contact:

Re: Virtualbox and KVM/qemu cannot connect USB-devices

Post by arne_v » Thu May 09, 2024 7:27 am

I think most understand that in the x86-64 world there are a gazillion different HW options and that it is impossible for VSI to support everything. It is necessary to prioritize.

I take it as a given that the vision is to extend supported HW options over time, so there is something that needs prioritization for the future.

But how does VSI get the feedback needed to prioritize based on users actual needs?

Customers -> VSI sales rep -> VSI engineering?

Posts here -> VSI engineering?

Surveys -> VSI marketing -> VSI engineering?
Arne
arne@vajhoej.dk
VMS user since 1986


Topic author
vaxinf
Member
Posts: 5
Joined: Sat May 04, 2024 4:31 am
Reputation: 0
Status: Offline

Re: Virtualbox and KVM/qemu cannot connect USB-devices

Post by vaxinf » Mon May 13, 2024 8:23 am

After activating the USB driver according to another posting (viewtopic.php?f=21&t=9062), I successfully managed to save data to a Blu-Ray device that has a USB interface:

$ mc []dvdwrite /write lda1: dna0:
Accessing target "DNA0:" Result: OK
DVR Vendor: PLEXTOR
DVR Product: BD-R PX-B900A
FW Version: 1.01
DVDwrite Version 7.00
Mounted medium appears to be a BD-RE (SL/DL/TL).
Recording speed set to 2.
* 24.2GB BD-RE medium detected.
Formatting. This will take a while ...
100 % done.
LDA1: mounted.
Accessing source "LDA1:" Result: OK
Recording speed set to 2.
* 24.2GB BD-RE medium detected.
Medium capacity: 47304704 blocks.
100 % done. Estimated time left: 00:00:00
Fixating.
100 % done.
LDA1: dismounted.
ELAPSED TIME = 0 01:23:27.22
CPU TIME = 0:04:56.97
BUFFERED I/O COUNT = 125
DIRECT I/O COUNT = 1224886
PAGE FAULT COUNT = 90
Last edited by vaxinf on Mon May 13, 2024 8:27 am, edited 1 time in total.

Post Reply