From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 26 17:24:37 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 8C872DEE; Wed, 26 Nov 2014 17:24:37 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D05A7CB; Wed, 26 Nov 2014 17:24:36 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id B6BD3153408; Wed, 26 Nov 2014 18:24:32 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bF8DaQcRucz1; Wed, 26 Nov 2014 18:24:22 +0100 (CET) Received: from [192.168.101.102] (vpn.ecoracks.nl [31.223.170.173]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 4B1FB153416; Wed, 26 Nov 2014 18:24:22 +0100 (CET) Message-ID: <54760CC9.1060902@digiware.nl> Date: Wed, 26 Nov 2014 18:24:25 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Peter Grehan , Craig Rodrigues Subject: Re: cu -l /dev/nmdm not setting rows and columns References: <54729224.3060402@freebsd.org> In-Reply-To: <54729224.3060402@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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, 26 Nov 2014 17:24:37 -0000 On 24-11-2014 3:04, Peter Grehan wrote: > Hi Craig, > >> # stty -a >> speed 9600 baud; 0 rows; 0 columns; >> # echo $TERM >> dialup >> >> Any idea how I can fix this? The console inside the VM >> is quite unusable when it does not have the correct >> rows/colums set. > > Not sure how you're getting 'dialup' as the terminal type: the default > ttys file for 10.1 shouldn't need to be edited, and has > > ttyu0 "/usr/libexec/getty std.9600" vt100 onifconsole secure > > The rows/columns is always 0 for uart-style serial lines since it's not > possible to know what's on the other end. That's why $TERM has to be set > correctly for these. > > Or, you can network-login to the guest in which case xterm works fine :) Or, like in the old days, just assign a TERM env value in your shell-login script based on the device the shell is connected too. That'll give you a basic working setup. Resizing will probably still not automagically work, and will require extra intervention. --WjW