From owner-freebsd-virtualization@FreeBSD.ORG Wed Apr 30 17:33:12 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5D639F0 for ; Wed, 30 Apr 2014 17:33:12 +0000 (UTC) Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A750B1D4C for ; Wed, 30 Apr 2014 17:33:12 +0000 (UTC) Received: by mail-qg0-f49.google.com with SMTP id j5so2171496qga.22 for ; Wed, 30 Apr 2014 10:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=9TxDIu2xV0mJlOEyp73G0O/9wRPq0uWoOI2gXxmYp+g=; b=W5B5hBEHHjxfnQjO9/K0phXP0uULcgzcjzWdCOU1avkZyNa1VWCHxq/XOYE7h5bXWG OtLaqwAf/DEoU3K03JHjqJMQGAbsUovAjTJxEV0wTan9H/HqouEZ7db3PblHcw1fMkUT HvlujZMKHNLJUEluGOJsHGvZ/hgZDTsptstk8kdhahVf0tsZjPXESFd3EZZfFIH94iZu uFpv/vAPFRkev+jHm5/7eE/3JcBIFT0BhEkgeJ1iio8xhRGQnqvi6tmI2UgwmeXwQkwx jU+cWLSCsH5JLd0tzvldSd3KKiFY+bRZOPz//CozCQQGFEgC5bSljLUUIwPYfkogTv2w 9GSA== MIME-Version: 1.0 X-Received: by 10.224.72.12 with SMTP id k12mr7230406qaj.81.1398879191699; Wed, 30 Apr 2014 10:33:11 -0700 (PDT) Received: by 10.140.47.201 with HTTP; Wed, 30 Apr 2014 10:33:11 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 Apr 2014 10:33:11 -0700 Message-ID: Subject: Re: bhyve and serial port emulation problem From: Neel Natu To: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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, 30 Apr 2014 17:33:13 -0000 Hi Olivier, On Tue, Apr 29, 2014 at 2:12 PM, Olivier Cochard-Labb=C3=A9 wrote: > Hi, > > I'm using the same nanobsd image on Virtualbox and bhyve (-CURRENT r26510= 1). > > The nanobsd image I'm using is configured for serial port as default > console: > > [root@nanobsd]~# cat /boot.config > -S38400 -h > [root@nanobsd]~# grep ttyu0 /etc/ttys > ttyu0 "/usr/libexec/getty std.38400" vt100 on secure > > The Virtualbox VM is configured for creating a serial pipe: > VBoxManage modifyvm nanobsd --uart1 0x3F8 4 --uartmode1 server > /tmp/nanobsd.serial > and I connect to this guest using "socat unix-connect:/tmp/nanobsd.serial > stdio,raw,echo=3D0,icanon=3D0" > =3D> And it's works without problem. > > The bhyve is configured with a com1 redirecting to a nmdm device: "-l > com1,/dev/nmdm1" > and I connect to this guest using "cu -l /dev/nmdm1B" > > =3D> But this bhyve console didn't works correctly: I can't use tool like > less/more (even ssh-keygen can't ask for a passphrase). > If I run truss with these tools, It seems they hang for opening /dev/tty. > > Some differences between virtualbox and bhyve (don't know if it can help)= : > > [root@vbox_guest]~# kenv | grep console > comconsole_pcidev=3D"" > comconsole_port=3D"1016" > comconsole_speed=3D"9600" > console=3D"comconsole" > > [root@bhyve_guest]~# kenv | grep console > console=3D"userboot" > Can you share the command line options you pass the bhyve(8)? best Neel > Regards, > > Olivier > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org"