VirtualBox can expose a [serial port](https://www.virtualbox.org/manual/UserManual.html#serialports), and *BSD guests can use it at bootup. That should be used instead of screen scraping text.