USB to Serial Converter (VERR_DEV_IO_ERROR)

Discussions about using Windows guests in VirtualBox.

USB to Serial Converter (VERR_DEV_IO_ERROR)

Postby jpavo » 26. Sep 2022, 19:43

When trying to use USB to serial converter, I get the following message (in the moment of booting the guest):
Ioctl failed for serial host device '/dev/ttyUSB0' (VERR_DEV_IO_ERROR). The device will not work properly.
Error ID: DrvHostSerialFail

Details about the system:
Host: Linux Mint 19.3
Guest: Windows 7
VBox ver.: 5.2.42_Ubuntu r137960
Ext pack: 5.2.42 r137960
VM Settings USB: USB 3.0 (xHCI) enabled, USB filter created (Vendor ID: 0403, Product ID: 6001, Remote: Any)
VM Settings Serial ports: Port 1 enabled, COM1, IRQ4, I/O 0x3F8, Host Device, path: /dev/ttyUSB0
Win7 guest installed: Intel(R) USB 3.0 eXtensible Host Controller:
Win7 guest installed: FTDI USB-RS485 Driver V2.12.36.4
Code: Select all   Expand viewCollapse view
$ id
uid=1000(jpavo) gid=1000(jpavo) groups=1000(jpavo),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),112(lpadmin),128(sambashare),130(vboxusers)

Code: Select all   Expand viewCollapse view
$ VBoxManage -version

Code: Select all   Expand viewCollapse view
$ VBoxManage list extpacks
Extension Packs: 2
Pack no. 0:   VNC
Version:      5.2.42
Revision:     137960
Description:  VNC plugin module
VRDE Module:  VBoxVNC
Usable:       true
Why unusable:

Pack no. 1:   Oracle VM VirtualBox Extension Pack
Version:      5.2.42
Revision:     137960
Description:  USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:

Code: Select all   Expand viewCollapse view
$ VBoxManage list usbhost
Host USB Devices:

UUID:               feb3b006-6dc4-44fb-bd37-fe4cc80fc0c5
VendorId:           0x04ca (04CA)
ProductId:          0x3015 (3015)
Revision:           0.1 (0001)
Port:               9
USB version/speed:  2/Full
Manufacturer:       Lite-On Technology Corp.
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10//device:/dev/vboxusb/001/004
Current State:      Busy

UUID:               33fddcfc-764b-451a-be9c-432cb12069ff
VendorId:           0x046d (046D)
ProductId:          0xc069 (C069)
Revision:           86.1 (8601)
Port:               3
USB version/speed:  2/Low
Manufacturer:       Logitech
Product:            USB Laser Mouse
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4//device:/dev/vboxusb/001/002
Current State:      Busy

UUID:               3c76c7b3-b9b7-4aaf-99e3-b8088c54f16c
VendorId:           0x0408 (0408)
ProductId:          0xa031 (A031)
Revision:           0.6 (0006)
Port:               6
USB version/speed:  2/High
Manufacturer:       Quanta
Product:            VGA WebCam
SerialNumber:       0x0001
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-7//device:/dev/vboxusb/001/003
Current State:      Busy

UUID:               9721fd0b-b975-410e-95fc-b897aef5c505
VendorId:           0x0403 (0403)
ProductId:          0x6001 (6001)
Revision:           4.0 (0400)
Port:               0
USB version/speed:  1/Full
Manufacturer:       FTDI
Product:            USB <-> Serial
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1//device:/dev/vboxusb/001/011
Current State:      Busy

Code: Select all   Expand viewCollapse view
$ VBoxManage list usbfilters
Global USB Device Filters:

Code: Select all   Expand viewCollapse view
$ VBoxManage showvminfo "win7 x64"
Name:            win7 x64
Groups:          /
Guest OS:        Windows 7 (64-bit)
UUID:            2b9aedab-6669-4441-8771-cef088e342a4
Config file:     /mnt/data/.VirtualBox VMs/win7 x64/win7 x64.vbox
Snapshot folder: /mnt/data/.VirtualBox VMs/win7 x64/Snapshots
Log folder:      /mnt/data/.VirtualBox VMs/win7 x64/Logs
Hardware UUID:   2b9aedab-6669-4441-8771-cef088e342a4
Memory size:     4096MB
Page Fusion:     off
VRAM size:       50MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  4
PAE:             on
Long Mode:       on
Triple Fault Reset: off
APIC:            on
X2APIC:          off
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
Time offset:     0ms
RTC:             local time
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: HyperV
State:           powered off (since 2022-09-26T16:10:32.000000000)
Graphics Controller:         VBoxVGA
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0):            SATA
Storage Controller Type (0):            IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  30
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
SATA (0, 0): /mnt/data/.VirtualBox VMs/win7 x64/win7 x64.vdi (UUID: 24b39aa6-f854-4f70-804d-9cee42ee101a)
SATA (1, 0): Empty
NIC 1:           MAC: 080027FFBA5D, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          I/O base: 0x03f8, IRQ: 4, attached to device '/dev/ttyUSB0'
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: PulseAudio, Controller: HDA, Codec: STAC9221)
Audio playback:  enabled
Audio capture:   disabled
Clipboard Mode:  Bidirectional
Drag and drop Mode: Bidirectional
VRDE:            disabled
USB:             disabled
EHCI:            disabled
XHCI:            enabled

USB Device Filters:

Index:            0
Active:           yes
Name:             FTDI USB <-> Serial
VendorId:         0403
ProductId:        6001
Serial Number:   

Bandwidth groups:  <none>

Shared folders: 

Capturing:          not active
Capture audio:      not active
Capture screens:    0
Capture file:       /mnt/data/.VirtualBox VMs/win7 x64/win7 x64.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25
Capture options:    ac_enabled=false


Configured memory balloon size:      0 MB

Code: Select all   Expand viewCollapse view
$ dmesg | grep tty
[    0.075602] printk: console [tty0] enabled
[ 4084.803536] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0

Code: Select all   Expand viewCollapse view
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0408:a031 Quanta Computer, Inc.
Bus 001 Device 002: ID 046d:c069 Logitech, Inc. M-U0007 [Corded Mouse M500]
Bus 001 Device 004: ID 04ca:3015 Lite-On Technology Corp.
Bus 001 Device 011: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all   Expand viewCollapse view
$ setserial -a /dev/ttyUSB0
/dev/ttyUSB0, Line 0, UART: unknown, Port: 0x0000, IRQ: 0
   Baud_base: 24000000, close_delay: 0, divisor: 0
   closing_wait: infinite
   Flags: spd_normal

My second system is:
Host: Linux Mint 21
Guest: Windows 7
VBox ver.: 6.1.38_Ubuntu r53438 and the same ver. Ext pack
All other settings the same like my primary system, but here I get the following message (in the moment of booting the guest):
The host serial port '/dev/ttyUSB0' encountered a fatal error and stopped functioning. This can be caused by bad cabling or USB to serial converters being unplugged by accident. To restart I/O transfers suspend and resume the VM after fixing the underlying issue..
Error ID: SerialPortIoError

Both guest VM's Device Manager sees both the USB Serial Converter and the USB Serial Port, when I disconnect the USB to Serial converter, it dissappears from Device Manager
When I start my guest application, it tries to communicate with the converter (there is a led flashing), but I cannot connect to Modbus device
I really need help to get the USB converter working because I need it for my job, and don't want to get back to MS Windows. Any suggestions are the most welcome!
Attached the log file
(26.04 KiB) Downloaded 1 time
Posts: 1
Joined: 26. Sep 2022, 17:24
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: MS Windows 7

Return to Windows Guests

Who is online

Users browsing this forum: No registered users and 24 guests