Date: Mon, 18 Jun 2018 16:04:23 +0100 From: tech-lists <tech-lists@zyxst.net> To: freebsd-virtualization@freebsd.org Subject: Re: freebsd bhyve instance does not show kernel messages after boot screen Message-ID: <d5adb41e-eb5f-3f6d-e520-76862468b75d@zyxst.net> In-Reply-To: <5e3c08ad-bf50-a70e-9d4f-0e465d00bfd5@ShaneWare.Biz> References: <201806151402.w5FE26Xm050793@pdx.rh.CN85.dnsmgr.net> <714a9e4e-d57e-efc4-eb4b-2ca36def8489@zyxst.net> <5e3c08ad-bf50-a70e-9d4f-0e465d00bfd5@ShaneWare.Biz>
next in thread | previous in thread | raw e-mail | index | archive | help
On 18/06/2018 06:39, Shane Ambler wrote: > Find out if it's the guest not outputting or the console not receiving. > > On the host run script before starting the bhyve and connecting to its > console, does this record any extra output? unfortunately not > > Is the guest /etc/ttys types set to xterm, vt100 or something else? here's the file contents for the problematic VM console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" xterm onifexists secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" xterm onifexists secure ttyv2 "/usr/libexec/getty Pc" xterm onifexists secure ttyv3 "/usr/libexec/getty Pc" xterm onifexists secure ttyv4 "/usr/libexec/getty Pc" xterm onifexists secure ttyv5 "/usr/libexec/getty Pc" xterm onifexists secure ttyv6 "/usr/libexec/getty Pc" xterm onifexists secure ttyv7 "/usr/libexec/getty Pc" xterm onifexists secure ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu0 "/usr/libexec/getty 3wire" vt100 onifconsole secure ttyu1 "/usr/libexec/getty 3wire" vt100 onifconsole secure ttyu2 "/usr/libexec/getty 3wire" vt100 onifconsole secure ttyu3 "/usr/libexec/getty 3wire" vt100 onifconsole secure # Dumb console dcons "/usr/libexec/getty std.9600" vt100 off secure ################################################################# Compared to one where the login prompt appears: console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" xterm on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" xterm on secure ttyv2 "/usr/libexec/getty Pc" xterm on secure ttyv3 "/usr/libexec/getty Pc" xterm on secure ttyv4 "/usr/libexec/getty Pc" xterm on secure ttyv5 "/usr/libexec/getty Pc" xterm on secure ttyv6 "/usr/libexec/getty Pc" xterm on secure ttyv7 "/usr/libexec/getty Pc" xterm on secure ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu0 "/usr/libexec/getty 3wire" vt100 onifconsole secure ttyu1 "/usr/libexec/getty 3wire" vt100 onifconsole secure ttyu2 "/usr/libexec/getty 3wire" vt100 onifconsole secure ttyu3 "/usr/libexec/getty 3wire" vt100 onifconsole secure # Dumb console dcons "/usr/libexec/getty std.9600" vt100 off secure So I changed onifconsole to on and rebooted, but this had no effect. > In the guest, does /var/log/dmesg.today contain the output you expect? yes > In /etc/syslog.conf there is a commented line for console.info that > saves all console output to a log file, this will be messages after the > kernel has loaded but includes a lot of what you expect during startup. On the host or the guest? I take it you mean the guest. I did this, shut the vm down with poweroff (from the vm as root) and started it again, logged into the guest and the console.log file is blank (and syslogd is running) so I think you might be onto something here. > Maybe one of these logs shows an odd char that the console has an issue > with. Can you find an odd char that doesn't exist in other guest logs? not yet. But there are other guests with console.log enabled and they get written to as you would expect. thanks, -- J.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5adb41e-eb5f-3f6d-e520-76862468b75d>