From owner-freebsd-virtualization@FreeBSD.ORG Wed Dec 3 17:49:50 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF8EF237; Wed, 3 Dec 2014 17:49:50 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8ACD421C; Wed, 3 Dec 2014 17:49:50 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id sB3HnmAl007997 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Dec 2014 09:49:48 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id sB3HnmHV007996; Wed, 3 Dec 2014 09:49:48 -0800 (PST) (envelope-from jmg) Date: Wed, 3 Dec 2014 09:49:48 -0800 From: John-Mark Gurney To: Peter Grehan Subject: Re: FreeBSD i386 guest doesn't see console... Message-ID: <20141203174947.GG99957@funkthat.com> References: <20141203024112.GF99957@funkthat.com> <547E8319.9070509@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <547E8319.9070509@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 03 Dec 2014 09:49:48 -0800 (PST) Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 17:49:50 -0000 Peter Grehan wrote this message on Tue, Dec 02, 2014 at 19:27 -0800: > >This is w/ a resonably recent current i386 kernel (r275062) > > I verified the r274463 i386 snapshot boots fine. That's not quite as > recent, but: > > >... Any suggestions? > > >uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 > ... > >uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > >uart0: console (9600,n,8,1) > > The "flags 0x10" text isn't being displayed in the i386 dmesg. This is > derived from /boot/device.hints i.e. > > ... > hint.uart.0.flags=0x10 > ... > > You can see this from bhyveload by issuing a 'show' command to dump > all the environment, including what was read in from device.hints by the > loader, or "more /boot/device.hints". So, checking /boot/device.hints shows: hint.uart.0.at="isa" hint.uart.0.port="0x3F8" hint.uart.0.flags="0x10" hint.uart.0.irq="4" hint.uart.1.at="isa" hint.uart.1.port="0x2F8" hint.uart.1.irq="3" > It may be possible that this file isn't being populated in your image, > or being read in by bhyveload. show from loader: OK show LINES=24 boot_serial=1 console=userboot currdev=disk0p3: interpret=OK kernelname=/boot/kernel/kernel loaddev=disk0p3: prompt=${interpret} smbios.bios.vendor=BHYVE Any ideas? Oh, I did verify that uart0 is functional by logging into the system and doing: echo foobar > /dev/cuau0 So, it's not like the console is not working, it's clearly a problem w/ the kernel deciding to use it as console.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."