I’m not sure how it works in VirtualBox but in VMware COM ports can be redirected, though you can’t control the signal lines. Back in my day, I used https://www.serial-over-ethernet.com/ to fully manage the port functionality.