On a headless Ubuntu 22.04 machine, I'd like to start a headless installation of NetBSD 9.2 in VirtualBox.
I have a prepared virtual machine with a set of blank disk images attached, as well as with the bootable NetBSD installation CD attached to the CDROM drive.
My idea was to perform the installation over the serial port, using minicom
, but I'm unable to get the installation to switch over to use the serial console.
I'm starting the machine with
VBoxManage startvm netbsd --type=headless
Then I try to get it to switch over the console to the serial port:
VBoxManage controlvm netbsd keyboardputfile boot.conf
... where boot.conf
is a file containing a line of text saying consdev com0
, which is what you would type on the NetBSD boot prompt to switch to the serial console.
I know NetBSD's serial console is set up to use 9600 8N1, which is what I have minicom
configured to use, and I have set up the serial port on the virtual machine like so:
UART 1: I/O base: 0x03f8, IRQ: 4, attached to pipe (server) '/tmp/netbsd.pipe', 16550A
I start minicom
using
minicom -D 'unix#/tmp/netbsd.pipe'
I successfully use the serial console on another virtual machine in an identical way, and I can see the status in minicom
switch from "Offline" to "Online" as soon as the NetBSD machine turns on, but there is no output in minicom
.
Can anyone see what the issue is and how I would go about fixing it? I know the alternative would be to PXE boot the machine, but I was hoping to be able to avoid doing that (as I don't netboot anything else at the moment).