Auto enable serial mode if installed via serial option
For hardware without vga and only ipmi serial we need to also enable serial mode on the installed system if it was installed with serial mode enabled.
#3 Updated by Alexander Motin over 4 years ago
I think there can be problem with serial port and speed at stage of getty start. As I see, schema default is COM2 at 9600, that hardly match, at least for the Celestica. With my /etc/ttys modifications serial console on COM1 should work if enabled in GRUB, but I'm afraid it will stop after GRUB config regenerated next time.
#5 Updated by Alexander Motin over 4 years ago
As soon as installer itself supposed to work via serial console (hopefully guessed correctly), it would be fine to just read present values and store them into database. But I am not sure GRUB in installer has any special knowledge for it, so may be the result would be the same if we just set default port/speed in database to COM1/115200. Since we never ever enabled serial console default before now, I don't think it should break anything, but it should be enough for the Puma.
#6 Updated by Kris Moore over 4 years ago
- Status changed from Screened to 19
- Assignee changed from Alexander Motin to Joe Maloney
This should be complete now. By editing the grub menu option to boot with serial mode enabled, you can change the grub.serialspeed to 115200 and grub.serialport to COM1. These values should get saved to the database after install. Joe, is there a way to confirm this works? Perhaps a job for bhyve?
#9 Updated by Alexander Motin over 4 years ago
Sorry, Kris, I was not proposing to invent local variables, since those would to nothing for this specific session. I've made few changes that should better integrate all this magic with real FreeBSD serial console. I haven't fully tested this yet, so will see what next build tell us.
#11 Updated by Joe Maloney over 4 years ago
I did get a chance to confirm the serial mode works with bhyve.
bhyve -c 2 -m 4G -w -H \
-s 0,hostbridge \
-s 3,ahci-cd,/root/FreeNAS-9.10-MASTER-201704191129-cac1a59.iso \
-s 4,ahci-hd,/root/guest.img \
-s 5,virtio-net,tap0 \
-s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait \
-s 30,xhci,tablet \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
I am also having Bonnie order a few serial cables to test with real hardware as well.