Virtualbox > Settings > Serial Ports:
-Port 1 enabled
-Port Number: COM1
-Port Mode: Host Device
-Path/Address: tried "/dev/sdc1", "/dev/tty0", "/dev/ttyS1", "/dev/bus/usb/004/001,002,003,etc". Nothing works. VM won't boot.
The user is the admin and I did add the group dialout after finding that in a search.
Results:
"/dev/sdc1"
-If a usb drive is plugged in: VM aborts boot and says: "Cannot open host device '/dev/sdc1' for read/write access. Check the permissions of that device ('/bin/ls -l /dev/sdc1'): Most probably you need to be member of the device group. Make sure that you logout/login after changing the group settings of the current user (VERR_ACCESS_DENIED)."
-If a usb drive is not plugged in: VM aborts boot and says: "Failed to open host device '/dev/sdc1' (VERR_FILE_NOT_FOUND)."
Note: I came up with /dev/sdc1 by plugging a usb stick into the usb port I'm using and running lsblk:
Code: Select all
russell@russell:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 487M 0 part /boot/efi
├─sda2 8:2 0 1.9G 0 part [SWAP]
├─sda3 8:3 0 14G 0 part /
└─sda4 8:4 0 216.6G 0 part /home
sdc 8:32 1 3.8G 0 disk
└─sdc1 8:33 1 3.8G 0 part /media/russell/USB DISK
sr0 11:0 1 1024M 0 rom
-Hail mary. After searching I saw other people using/referring to this path. Didn't work. VM aborts boot and again says: "Cannot open host device '/dev/tty0' for read/write access. Check the permissions of that device..."
"/dev/ttyS1"
-Also a hail mary. Found reference to this path as well. Didn't work. VM aborts boot and says: "Failed to open host device '/dev/ttyS1' (VERR_DEV_IO_ERROR).
"/dev/bus/usb/004/001" Note: I also tried files 002, 003, and 010 because those are also files in that directory
-I came up with this path by plugging in my actual adapter cable and running lsusb and it shows up as:
Code: Select all
russell@russell:~$ lsusb
Bus004 Device 009: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
For what it's worth, I do have the USB port working in XP. If I'm in the VM and plug in a usb stick, it shows up and I am able to open it. But if I have the serial port settings on anything other than "disconnected", it won't even boot.
What am I doing wrong? Thank you.
System: Kernel: 5.4.0-164-generic x86_64 bits: 64 compiler: gcc v: 9.4.0
Desktop: Cinnamon 5.2.7 wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una
base: Ubuntu 20.04 focal
Machine: Type: Laptop System: Apple product: MacBookPro5,5 v: 1.0 serial: <filter> Chassis:
type: 10 v: Mac-F2268AC8 serial: <filter>
Mobo: Apple model: Mac-F2268AC8 serial: <filter> UEFI: Apple
v: MBP55.88Z.00AC.B03.0906151708 date: 06/15/09
VirtualBox: 7.0.10r158379