Cannot Open a VM when trying to configure a Serial Port

Discussions related to using VirtualBox on Windows hosts.
Post Reply
WIZRAD
Posts: 3
Joined: 13. Aug 2022, 08:12

Cannot Open a VM when trying to configure a Serial Port

Post by WIZRAD »

Hello, I'm getting an error when I try to open any VM with a Serial Port Enabled.


Error:

Failed to open host device 'COM7' (VERR_INVALID_HANDLE).

Result Code:

E_FAIL (0x80004005)

Component: ConsoleWrap

Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}


I am running the newest version of VB on Windows 11

it has happened to all Serial Ports / COM Ports on multiple different Linux based VMs both existing and new.

I have Enabled USB Controller checked and no filters, I've tried adding the device as a filter but it still doesnt work

I'm attempting to map Serial Port 1 as COM1 (IRQ: 4 I/O Port: 0x3F8) as Host Device to the Path of COM7 which has a usb device connected.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Cannot Open a VM when trying to configure a Serial Port

Post by mpack »

Please show a screenshot showing that COM7 exists on the host.

Also, COM ports can't be shared, so please confirm that no other software on the host is using it.

Finally, show a screenshot of your serial port settings in the VM.
WIZRAD
Posts: 3
Joined: 13. Aug 2022, 08:12

Re: Cannot Open a VM when trying to configure a Serial Port

Post by WIZRAD »

Here is the screenshot. Nothing else should be using trying to use the device, is there a way to confirm this?
Attachments
image_2022-08-15_162529213.png
image_2022-08-15_162529213.png (87.87 KiB) Viewed 1546 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Cannot Open a VM when trying to configure a Serial Port

Post by scottgus1 »

I believe there's supposed to be a colon after COM7:

Path/Address: COM7:
WIZRAD
Posts: 3
Joined: 13. Aug 2022, 08:12

Re: Cannot Open a VM when trying to configure a Serial Port

Post by WIZRAD »

Didnt seem to work
Attachments
image_2022-08-15_183557676.png
image_2022-08-15_183557676.png (7.34 KiB) Viewed 1531 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: Cannot Open a VM when trying to configure a Serial Port

Post by mpack »

No, a colon is not necessary - that was an old red herring. Wizrad's settings look fine to me.

I'm going to say that there is something wrong with the host driver for this device. Can't think of anything else it could be.
Post Reply