Hi,
I have hard to of getting serial port working with qemu in Linux host and
OpenBSD quest. I am using following command:
# qemu-system-x86_64 -curses -boot d -smp 2 -m 1G -nographic \
-cdrom install63.iso -drive file=/dev/sda,format=raw \
-drive file=/dev/sdb,format=raw -net nic,model=rtl8139 -net user \
-device isa-serial,chardev=charserial0,id=serial0 -chardev
tty,id=charserial0,path=/dev/tty0
In the boot prompt I set com0 as the default tty
> set tty com0
And then I try to connect to the tty using screen on the host
screen /dev/tty0 9600
But I do not get any output and cannot give any input. I have tried to use
different chardevs (pty, socket) but with no difference.
Does anyone have pointers what could be the problem or how I should continue to
debug this?
I am already successful in installing OpenBSD with the following Qemu command,
but I would really like to automate setup of the machines (autoinstall by
itself doesn't work because I want to setup raid 1 with the devices). I already
have scripted everything so that I could setup the machine with one command if
I just could have some programmatic IO to the qemu quest.
Best Regards,
Justus Hämäläinen