From owner-freebsd-virtualization@freebsd.org Thu Feb 23 19:28:39 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B89DCEB2CF for ; Thu, 23 Feb 2017 19:28:39 +0000 (UTC) (envelope-from jakub@ixsystems.com) Received: from mx.ixsystems.com (mx.ixsystems.com [12.229.62.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN ".", Issuer "." (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 75B601E63 for ; Thu, 23 Feb 2017 19:28:39 +0000 (UTC) (envelope-from jakub@ixsystems.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by mx.ixsystems.com (Postfix) with ESMTP id 3vTkmk32g3zCrZh; Thu, 23 Feb 2017 11:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixsystems.com; h=x-mailer:references:message-id:content-transfer-encoding:date :date:in-reply-to:from:from:subject:subject:mime-version :content-type:content-type:received:received:received:received :received:received; s=dkim; t=1487878106; x=1489692507; bh=Hhapw nF4Avw45DQYbN54CBGs8vExvuFvchCclra9Rbs=; b=t2JXruEvxlMmUpmpp5ymk rXpki8c2J21Ao/T9I9KiOhsfLBernwy34oq6+5ZGHpMxWBGqjecyfPLHt9mUg/zH H/m61HCg3lYVxox8nwUumzkhvlBacTn/fVOSyDhcMS3dTpMfSZfjaWaihlUT5GxY Oju80cd7DTvQpwX6KhZtGG0S83dC2rERIKsfDEjK8beLhtsWq9nwLXiezJyoSCwn K5tZCglDOuZ5/6Z5l6bUTdpN42w8ueFeTlSzxX3NgLAEIjsMQpX1B/GA43J1r/oN YhVBNd9XDlmJerBax/OQDGMcOJ1ALczYYfLNDQXzbwTTeBNQ1HAKlFFhLGMjDtSF w== X-Amavis-Modified: Mail body modified (using disclaimer) - mx.ixsystems.com X-Virus-Scanned: Scrollout F1 at ixsystems.com Received: from mx.ixsystems.com ([127.0.0.1]) by localhost (mx.ixsystems.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tcyHFwsT-UMu; Thu, 23 Feb 2017 11:28:26 -0800 (PST) Received: from zimbra.ixsystems.com (mail.ixsystems.com [10.246.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.ixsystems.com (Postfix) with ESMTPS id 3vTkmV49bwzCrmB; Thu, 23 Feb 2017 11:28:26 -0800 (PST) Received: from zimbra.ixsystems.com (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTPS id 7E1164640AE; Thu, 23 Feb 2017 11:28:26 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTP id 7080C4640AC; Thu, 23 Feb 2017 11:28:26 -0800 (PST) Received: from zimbra.ixsystems.com ([127.0.0.1]) by localhost (zimbra.ixsystems.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OV5zTc8D2D5l; Thu, 23 Feb 2017 11:28:26 -0800 (PST) Received: from [192.168.21.2] (89-70-28-46.dynamic.chello.pl [89.70.28.46]) by zimbra.ixsystems.com (Postfix) with ESMTPSA id 76DFF4632C9; Thu, 23 Feb 2017 11:28:25 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: virtio_console in bhyve? (FreeBSD host and guest) From: Jakub Klama In-Reply-To: <5906D3B7-78D3-4FCD-A945-999B5B766D75@punkt.de> Date: Thu, 23 Feb 2017 20:28:22 +0100 Cc: freebsd-virtualization@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <9443C23A-5364-438A-8740-72FCE386D8BA@punkt.de> <5906D3B7-78D3-4FCD-A945-999B5B766D75@punkt.de> To: "Patrick M. Hausen" X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 23 Feb 2017 19:28:39 -0000 > Wiadomo=C5=9B=C4=87 napisana przez Patrick M. Hausen = w dniu 23.02.2017, o godz. 20:16: >=20 > Some more information: >=20 >> I'm trying to get guest-additions to work for FreeBSD guests in = FreeNAS 10. >> FreeNAS 10 is built on top of RELENG_11 and uses the bhyve = hypervisor. >>=20 >> Each VM is started with one virtio_console device like this: >>=20 >> bhyve [...] -s = '30,virtio-console,org.freenas.vm-tools=3D/var/run/containerd/dfdbb716-789= f-44c3-9653-2157bdb3e76e.vmtools.sock' >>=20 >> Yet, inside the VM guest (I tried RELENG_10_3 and RELENG_11_0): >>=20 >> root@icescrum:~ # kldload virtio_console = =20 >> vtcon0: on virtio_pci1 = =20 >> vtcon0: vtcon_ctrl_process_event: invalid port ID 779313518 = =20 >> vtcon0: vtcon_ctrl_port_open_event: open port 0, but does not exist >=20 > When I deploy a Linux guest virtual machine on that FreeNAS system, > bhyve is invoked in exactly the same way: >=20 > bhyve [...] -s = '30,virtio-console,org.freenas.vm-tools=3D/var/run/containerd/b5652839-476= 5-4384-8cd0-90964d4b1b4f.vmtools.sock' >=20 > (different UUID, of course). >=20 > Yet, in Linux the virtio_console is probed correctly, a device named > '/dev/virtio-ports/org.freenas.vm-tools' is created in the guest and = the > guest and the host can communicate. >=20 > So the problems seems to lie not with FreeNAS but with the FreeBSD > implementation of virtio_console(4). >=20 > Anyone? Is this even the correct mailing list or should I address > freebsd-emulation or something entirely different like -stable? Hi Patrick, virtio_console(4) driver in 10.3 and in 11.0 doesn't support named ports = feature, which is used by bhyve in FreeNAS 10. I'll look into backporting FreeBSD = 12 fixes to stable/10 and stable/11. Thanks, Jakub=