First boot error "Failed to set up standard input: Inappropriate ioctl for device”

The emergency shell, and some of the log output, only go to the primary console, which is the first serial port by default. If you don’t have a first serial port, that could explain the ENOTTY error. You can switch the primary console to graphical by removing console=ttyS0,115200 from the kernel command line.