That's a good idea, but so far I didn't have luck with PPT devices: always get "not page aligned" error...to use a pci serial card and pass it to the guest
-l com1,/dev/nmdm0A
and then connected with net/socat to a real one:
socat /dev/cuau0,clocal=1,ispeed=115200,ospeed=115200,raw,echo=0, /dev/nmdm0B,clocal=1,ispeed=115200,ospeed=115200,raw,echo=0
For me the /dev/cuau* device nodes only seem to work with my cellular modems.Using [BGCOLOR=#dee3e7] -l com1,/dev/cuau0[/BGCOLOR]
cu
for a serial terminal. -l com1,/dev/nmdm0A
to the bhyve
command and start it. It will create /dev/nmdmA and /dev/nmdmB nodes. Now start the socat
command.How to start the bhyve that it's my problem to understand, because TrueNAS did it, I using the web interface of the TrueNAS to start my VM (Ubuntu Server). So in order to change the command line to start the VM I have to know where I have to see.Have you tried what I described in the post above?
Of course, with replacing /dev/cuau0 with the actual device node corresponding to your physical port.
How do you start your bhyve? If you have a script, you should add this flag-l com1,/dev/nmdm0A
to thebhyve
command and start it. It will create /dev/nmdmA and /dev/nmdmB nodes. Now start thesocat
command.
Also, since the issue of the original post was reported 2 years ago, maybe now it's fixed and working, I haven't tried this for long time.
Unfortunately, FreeBSD derivatives are not supported here.because TrueNAS did it