From owner-freebsd-virtualization@freebsd.org Tue Jul 2 06:52:10 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33CFF15C9AB4 for ; Tue, 2 Jul 2019 06:52:10 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AFED170C50 for ; Tue, 2 Jul 2019 06:52:09 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hiCe4-000Grx-6f for freebsd-virtualization@freebsd.org; Tue, 02 Jul 2019 00:52:04 -0600 Date: Tue, 2 Jul 2019 00:52:04 -0600 From: The Doctor To: freebsd-virtualization@freebsd.org Subject: Debian 10, Current Kali and Current Parrot Message-ID: <20190702065204.GA63438@doctor.nl2k.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: AFED170C50 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.69 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.62)[-0.622,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.50)[-0.503,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.01)[cached: doctor.nl2k.ab.ca]; DMARC_POLICY_ALLOW(-0.50)[nl2k.ab.ca,quarantine]; NEURAL_HAM_SHORT(-0.52)[-0.521,0]; INTRODUCTION(2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6171, ipnet:204.209.81.0/24, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.23)[ip: (-0.56), ipnet: 204.209.81.0/24(-0.28), asn: 6171(-0.23), country: CA(-0.09)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 02 Jul 2019 06:52:10 -0000 Looks like Deb 10 uses a new grpahical driver that breaks bhyve. Same with Kali and PArrot. I have been able to get around Kali and Deb 10 via predefining the network, which does not work with Parrot. Anyone on top of this? -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising! https://www.empire.kred/ROOTNK?t=94a1f39b Look at Psalms 14 and 53 on Atheism We don't know who we are until we see what we can do. -Martha Grimes From owner-freebsd-virtualization@freebsd.org Tue Jul 2 09:35:14 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 086CD15CDDAA for ; Tue, 2 Jul 2019 09:35:14 +0000 (UTC) (envelope-from richard@bader-muenchen.de) Received: from gate1.bader-muenchen.de (gate1.bader-muenchen.de [213.179.151.243]) (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 3CAA576282 for ; Tue, 2 Jul 2019 09:35:11 +0000 (UTC) (envelope-from richard@bader-muenchen.de) Received: from rserver.bader.loc (rserver.bader.loc [192.168.16.72]) by gate1.bader-muenchen.de (8.15.2/8.15.2) with ESMTP id x629MOwh060629; Tue, 2 Jul 2019 11:22:24 +0200 (CEST) (envelope-from richard@bader-muenchen.de) To: "freebsd-virtualization@freebsd.org" From: richard Subject: bhyve: pci_passthru not working: PCI device at 5/1/0 is not using the ppt(4) driver Message-ID: <5014022d-88a4-c17c-85c3-1de1fda67269@bader-muenchen.de> Date: Tue, 2 Jul 2019 11:22:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 3CAA576282 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.51 / 15.00]; MX_GOOD(-0.01)[gate1.bader-muenchen.de,mail.bader-muenchen.de]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8767, ipnet:213.179.128.0/19, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.968,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[bader-muenchen.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[0.999,0]; IP_SCORE(0.65)[asn: 8767(3.28), country: DE(-0.01)]; NEURAL_SPAM_LONG(1.00)[1.000,0]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 02 Jul 2019 09:35:14 -0000 Hello, i'm trying to use pci_passthru to handover a USB interface to windows7 running under bhyve. window7 is running perfect under bhyve. As this does not work i tried to pass a simple network adapter, but the error message is the same when starting bhyve:     bhyve: PCI device at 5/1/0 is not using the ppt(4) driver here the details: uname -a: FreeBSD main2rest2.bader.loc 11.2-RELEASE-p10 FreeBSD 11.2-RELEASE-p10 #1 r349319: Mon Jun 24 06:27:24 CEST 2019 root@main2rest2.bader.loc:/usr/obj/usr/src/sys/MYKERNEL  amd64 cat /boot/loader.conf: vmm_load="YES" pptdevs="5/1/0" hw.vmm.topology.threads_per_core=2 hw.vmm.topology.cores_per_package=4 pciconf -v -l: ppt0@pci0:5:1:0:        class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10 hdr=0x00     vendor     = 'Realtek Semiconductor Co., Ltd.'     device     = 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter'     class      = network     subclass   = ethernet the commandline for starting bhyve: bhyve -S -c 7 -m 5G -w -H \    -s 0,hostbridge\    -s 3,ahci-cd,./empty.iso\    -s 4,ahci-hd,./06_win7bac4.img,sectorsize=512\    -s 5,virtio-net,tap13\    -s 7,passthru,5/1/0\    -s 29,fbuf,tcp=192.168.16.109:5905,w=1024,h=800\    -s 31,lpc -l com1,stdio\    -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd 06win7bac4 any ideas, thanks richard From owner-freebsd-virtualization@freebsd.org Tue Jul 2 23:50:11 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BEF915E070C for ; Tue, 2 Jul 2019 23:50:11 +0000 (UTC) (envelope-from olevole@olevole.ru) Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE19775029 for ; Tue, 2 Jul 2019 23:50:09 +0000 (UTC) (envelope-from olevole@olevole.ru) Received: by mail-ot1-x344.google.com with SMTP id l15so362212otn.9 for ; Tue, 02 Jul 2019 16:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=olevole-ru.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RrtHGepjIoWM1zhuU1vMBz8CSNTZEsTP1ROQLpeulCI=; b=ZSUo4zNZ4wCVTB0YKGK7AijhKJ+3RTaYRdMlyw0BNE4UfdUF0gGXVWLFPL4EIS4h77 qhPtbebO0EmbOQMbvhOoOg3PqnnLeJWlXn4Kjl7EjP36m0qr31cEJxNu7FitoyHEwAMJ NvnUfCz8XFKT8OK/BSHTXg8v+SZqix1pKM3olqf1bfHXt7lgFmsO2I9/K3/Z5jIGQ3vJ YwSCSpOZJrxSAG75bHkSttGeqmq7ylx/gHhuujWN+Uj/bp12JdGOT4Hv5UQXwMts0fF/ y7KAtDrMybJHRrvrMKPuPvb/Pv9t1ahO/otyFkvPVySKys7X/P5Jls3fQr4m4m8m8a1b LOBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RrtHGepjIoWM1zhuU1vMBz8CSNTZEsTP1ROQLpeulCI=; b=XisP8U78vd4sQz6KyMQBUvSGl+obIJUySPywN/rVBzZrHFwHx1j/3CTiOhJvGa8T+K w1kXj3NobwM0s0CEj7SiW2Iu6SmeTPnEEuL9o85IVs4Z/q81RaH9WL6XgpsDvnjFYN6W /H5tuqzEowCWYki0/a3X9JG9rb9N/76poWUF9cF9qwIvpNlaMMGP9Xd/uSBCl3lMhJVP Fti3BhMVAJjnLqCv3b8tMzmYDR8eEvFthN/Oz3VXXpARz6zjJZ2au4KeJYFVj+tyxLbo g/HR/daa203athsgQpU1Zscw7077iyJoXBPeMQBkWjnJds+qnbcMK6dat0hw7IxocAcy AC3Q== X-Gm-Message-State: APjAAAUBg6aWN/PwyrYU9SYZRnikbMJRWyP1EzbvFljkX4HYcO70LGB6 9yO7AW+fJXkOZRNlbvNJBFDqKZr7YPXObW3paSB7YHZxAdo= X-Google-Smtp-Source: APXvYqzujdCJMwT5+pS+N25oQXhvJj3xnxOblE9q43W+e91QImJSDJ6GhxrSahNDMlEbXZYL2JyVxQRCjNXGIwHvJ00= X-Received: by 2002:a05:6830:18a:: with SMTP id q10mr24517188ota.114.1562111407813; Tue, 02 Jul 2019 16:50:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Oleg Ginzburg Date: Wed, 3 Jul 2019 02:49:10 +0300 Message-ID: Subject: Re: freebsd-virtualization Digest, Vol 449, Issue 1 To: freebsd-virtualization@freebsd.org, The Doctor Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: CE19775029 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=olevole-ru.20150623.gappssmtp.com header.s=20150623 header.b=ZSUo4zNZ X-Spamd-Result: default: False [-3.88 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.991,0]; R_DKIM_ALLOW(-0.20)[olevole-ru.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[olevole.ru]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[olevole-ru.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[ASPMX.L.GOOGLE.COM,ALT2.ASPMX.L.GOOGLE.COM,ALT1.ASPMX.L.GOOGLE.COM,ASPMX2.GOOGLEMAIL.COM,ASPMX3.GOOGLEMAIL.COM]; R_SPF_NA(0.00)[]; NEURAL_HAM_SHORT(-0.79)[-0.792,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.78)[ip: (1.65), ipnet: 2607:f8b0::/32(-3.15), asn: 15169(-2.36), country: US(-0.06)] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 02 Jul 2019 23:50:11 -0000 On Tue, Jul 2, 2019 at 3:00 PM wrote: > Message: 1 > Date: Tue, 2 Jul 2019 00:52:04 -0600 > From: The Doctor > To: freebsd-virtualization@freebsd.org > Subject: Debian 10, Current Kali and Current Parrot > Message-ID: <20190702065204.GA63438@doctor.nl2k.ab.ca> > Content-Type: text/plain; charset=us-ascii > > Looks like Deb 10 uses a new grpahical driver that breaks bhyve. > > Same with Kali and PArrot. > > I have been able to get around Kali and Deb 10 via predefining the network, > > which does not work with Parrot. > > Anyone on top of this? > -- This behavior is related to the Xorg xf86-video-vesa driver, not fb. Vesa driver expects for a specific device class: #ifdef XSERVER_LIBPCIACCESS static const struct pci_id_match vesa_device_match[] = { { PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, 0x00030000, 0x00ffffff, CHIP_VESA_GENERIC }, { 0, 0, 0 }, }; #endif which provides by bhyve fbuf devices ( but not working as vesa-compatible device ) As work-around we can change pci_set_cfgdata8(pi, PCIR_CLASS, into anything other than: #define PCIC_DISPLAY 0x03 , for example: PCIS_DISPLAY_OTHER Work-around demo: https://youtu.be/oZuKo87Tmg0 PS: I do not know the right solution at the moment. From owner-freebsd-virtualization@freebsd.org Wed Jul 3 19:45:50 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2BDC15DF0F4 for ; Wed, 3 Jul 2019 19:45:50 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [199.48.133.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2DF548DA14 for ; Wed, 3 Jul 2019 19:45:49 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from disco.vangyzen.net (unknown [70.97.188.230]) by smtp.vangyzen.net (Postfix) with ESMTPSA id A0254564D4 for ; Wed, 3 Jul 2019 14:45:48 -0500 (CDT) To: freebsd-virtualization@freebsd.org From: Eric van Gyzen Subject: Bhyve serial terminal server Message-ID: <61d16595-7327-77bb-6f96-63c1e40aa467@vangyzen.net> Date: Wed, 3 Jul 2019 14:45:45 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Language: en-US X-Rspamd-Queue-Id: 2DF548DA14 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.947,0]; ASN(0.00)[asn:36236, ipnet:199.48.132.0/22, country:US] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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 Jul 2019 19:45:50 -0000 I would like to expose bhyve serial consoles over TCP sockets, like many terminal servers do for hardware serial ports.  Is there any open-source software to do this? I found ports/comms/conserver-com, which is /almost/ what I want.  I want the client to simply connect to a TCP port and get direct, immediate access to the guest console associated with that port.  Can conserver do this?  We have lots of infrastructure and tooling built around this model, and I'd rather avoid modifying it to support the conserver model. Thanks in advance for any advice. Eric From owner-freebsd-virtualization@freebsd.org Wed Jul 3 20:19:25 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19B3415E0037 for ; Wed, 3 Jul 2019 20:19:25 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [IPv6:2001:559:8000:cd::5]) (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 572038FDF8; Wed, 3 Jul 2019 20:19:24 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from [10.188.126.179] (mobile-166-177-251-96.mycingular.net [166.177.251.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id 204BA892C6; Wed, 3 Jul 2019 20:19:15 +0000 (UTC) In-Reply-To: <61d16595-7327-77bb-6f96-63c1e40aa467@vangyzen.net> References: <61d16595-7327-77bb-6f96-63c1e40aa467@vangyzen.net> X-Referenced-Uid: 759141 Thread-Topic: Bhyve serial terminal server User-Agent: Android X-Is-Generated-Message-Id: true MIME-Version: 1.0 Subject: Re: Bhyve serial terminal server From: Paul Vixie Date: Wed, 03 Jul 2019 13:19:13 -0700 To: Eric van Gyzen CC: freebsd-virtualization@freebsd.org Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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 Jul 2019 20:19:25 -0000 i use rtty for this=2E it's in ports=2E =E2=81=A3Get BlueMail for Android = =E2=80=8B On 3 Jul 2019, 12:46, at 12:46, Eric van Gyzen wrote: >I would like to expose bhyve serial consoles over TCP socke= ts, like >many >terminal servers do for hardware serial ports=2E=C2=A0 Is t= here any >open-source >software to do this? > >I found ports/comms/conserve= r-com, which is /almost/ what I want=2E=C2=A0 I >want the client to simply = connect to a TCP port and get direct, >immediate access to the guest consol= e associated with that port=2E=C2=A0 Can >conserver do this?=C2=A0 We have = lots of infrastructure and tooling built >around this model, and I'd rather= avoid modifying it to support the >conserver model=2E > >Thanks in advance= for any advice=2E > >Eric > >_____________________________________________= __ >freebsd-virtualization@freebsd=2Eorg mailing list >https://lists=2Efree= bsd=2Eorg/mailman/listinfo/freebsd-virtualization >To unsubscribe, send any= mail to >"freebsd-virtualization-unsubscribe@freebsd=2Eorg" From owner-freebsd-virtualization@freebsd.org Wed Jul 3 22:40:06 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C735315E29FE for ; Wed, 3 Jul 2019 22:40:05 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [IPv6:2001:559:8000:cd::5]) (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 13ECD6E132; Wed, 3 Jul 2019 22:40:05 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from linux-9daj.localnet (50-255-33-26-static.hfc.comcastbusiness.net [50.255.33.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id BE468892C6; Wed, 3 Jul 2019 22:40:02 +0000 (UTC) From: Paul Vixie To: freebsd-virtualization@freebsd.org Subject: Re: Bhyve serial terminal server Date: Wed, 03 Jul 2019 22:40:01 +0000 Message-ID: <2659111.BS0ceVt7k5@linux-9daj> Organization: none In-Reply-To: <61d16595-7327-77bb-6f96-63c1e40aa467@vangyzen.net> References: <61d16595-7327-77bb-6f96-63c1e40aa467@vangyzen.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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 Jul 2019 22:40:06 -0000 On Wednesday, 3 July 2019 19:45:45 UTC Eric van Gyzen wrote: > I would like to expose bhyve serial consoles over TCP sockets, like many > terminal servers do for hardware serial ports. Is there any open-source > software to do this? as i said, "pkg install rtty" was created for this purpose and it's what i use. but then, i wrote it, in 1991 or so, while employed at d|i|g|i|t|a|l who gave me a room full of vaxes but no way to keep track of them all. a demo: > [mm1.redbarn:amd64] console > family guests pbx sleipnir util > [mm1.redbarn:amd64] console pbx > connected > (use (CR)~? for minimal help; also (CR)~q? and (CR)~s?) > [authorized] > [vixie@/dev/pts/0 connected] > FreeBSD/amd64 (pbx.redbarn.org) (ttyu0) > login: ~. > [rtty exiting] > [mm1.redbarn:amd64] ls -l /usr/local/rtty/dev > total 3 > lrwxr-xr-x 1 root wheel 11 May 18 2014 family@ -> /dev/nmdm2A > lrwxr-xr-x 1 root wheel 11 May 17 2014 guests@ -> /dev/nmdm0A > lrwxr-xr-x 1 root wheel 11 Nov 16 2014 pbx@ -> /dev/nmdm5A > lrwxr-xr-x 1 root wheel 11 Jun 1 2014 sleipnir@ -> /dev/nmdm3A > lrwxr-xr-x 1 root wheel 11 May 18 2014 util@ -> /dev/nmdm1A > [mm1.redbarn:amd64] ps auxwww|grep ttysrv|head -1 > root 1578 0.0 0.0 6440 2088 - I 17Jan19 0:00.03 > /usr/local/rtty/bin/ttysrv -b 9600 -w 8 -p none -t > /usr/local/rtty/dev/family -s /usr/local/rtty/sock/family -l > /usr/local/rtty/log/family -i /usr/local/rtty/pid/family root 1617 and: > [mm1.redbarn:amd64] tail /usr/local/rtty/log/pbx > Jul 3 22:04:01 pbx syslogd: last message repeated 1 times > FreeBSD/amd64 (pbx.redbarn.org) (ttyu0) > login: ~. > [mm1.redbarn:amd64] however, i'd like to add additional detail, below: > I found ports/comms/conserver-com, which is /almost/ what I want. I > want the client to simply connect to a TCP port and get direct, > immediate access to the guest console associated with that port. Can > conserver do this? We have lots of infrastructure and tooling built > around this model, and I'd rather avoid modifying it to support the > conserver model. as hinted by the name, rtty has a tcp listener/connection model in addition to the more common unix domain socket connection model i normally use: > [mm1.redbarn:amd64] ls -l /usr/local/rtty/sock > total 3 > srw-rw---- 1 root wheel 0 Jan 17 15:06 family= > srw-rw---- 1 root wheel 0 Jan 17 15:06 guests= > srw-rw---- 1 root wheel 0 Jan 17 15:06 pbx= > srw-rw---- 1 root sleipnir 0 Jan 17 15:06 sleipnir= > srw-rw---- 1 root wheel 0 Jan 17 15:06 util= however, the protocol is not "direct" or "immediate", and indeed cannot be so, because i have to be able to encode things like BREAK and seeing or changing the baud rate and word size and so on. i should have used telnet encoding, but that didn't have a location broker and i didn't want to have to assign or memorize port numbers, and the only authentication telnet had when i began this work was in-band or kerberos, neither of which fit my needs. my tcp listener and unix domain listener speak the same (stream) protocol. see https://github.com/gitGNU/gnu_rtty/blob/master/ttyprot.h for details. you could pretty easily use the supplied "rtty" client program for management, but, there is no authentication or encryption. when i want to give someone remote access to a guest VM, i do it with ssh, and i use rtty as their login shell. that's when unix domain sockets and their file modes and group and user ownership become important. -- Paul From owner-freebsd-virtualization@freebsd.org Thu Jul 4 09:33:14 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1AD915CE6CA for ; Thu, 4 Jul 2019 09:33:13 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (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 CA3D588A95 for ; Thu, 4 Jul 2019 09:33:12 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id x649X94J015085 for ; Thu, 4 Jul 2019 11:33:09 +0200 (CEST) Received: from [217.29.44.222] ([217.29.44.222]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id x649X9fM091889 for ; Thu, 4 Jul 2019 11:33:09 +0200 (CEST) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Virtualbox on Linux in bhyve? Message-Id: Date: Thu, 4 Jul 2019 11:33:08 +0200 To: FreeBSD virtualization mailing list X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: CA3D588A95 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of hausen@punkt.de designates 217.29.33.131 as permitted sender) smtp.mailfrom=hausen@punkt.de X-Spamd-Result: default: False [-1.27 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.56)[-0.561,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.29.32.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[punkt.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.961,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mailin.pluspunkthosting.de]; NEURAL_HAM_SHORT(-0.78)[-0.777,0]; RCVD_IN_DNSWL_NONE(0.00)[131.33.29.217.list.dnswl.org : 127.0.10.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.16)[ipnet: 217.29.32.0/20(-0.45), asn: 16188(-0.36), country: DE(-0.01)] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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, 04 Jul 2019 09:33:14 -0000 Hi all, is it possible to run Ubuntu 18.04 inside a bhyve VM and use Vagrant with Virtialbox? Currently we have this show stopper: Stderr: VBoxManage: error: AMD-V is not available (VERR_SVM_NO_SVM) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), = component ConsoleWrap, interface IConsole I=E2=80=99m not quite sure how AMD-V relates to VT-x. Any hints welcome. Thanks, Patrick --=20 punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling From owner-freebsd-virtualization@freebsd.org Thu Jul 4 13:31:19 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F8D215D5AA9 for ; Thu, 4 Jul 2019 13:31:19 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (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 9E71791F87 for ; Thu, 4 Jul 2019 13:31:12 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id x64DV50Q020157 for ; Thu, 4 Jul 2019 15:31:05 +0200 (CEST) Received: from [217.29.44.222] ([217.29.44.222]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id x64DV5HY004160 for ; Thu, 4 Jul 2019 15:31:05 +0200 (CEST) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Virtualbox on Linux in bhyve? Date: Thu, 4 Jul 2019 15:31:03 +0200 References: To: FreeBSD virtualization mailing list In-Reply-To: Message-Id: <6C04FC1E-F568-4C78-AF81-E521334871EC@punkt.de> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 9E71791F87 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of hausen@punkt.de designates 217.29.33.131 as permitted sender) smtp.mailfrom=hausen@punkt.de X-Spamd-Result: default: False [-0.76 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.76)[-0.759,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.29.32.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[punkt.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.961,0]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mailin.pluspunkthosting.de,mailin.pluspunkthosting.de]; NEURAL_HAM_SHORT(-0.07)[-0.072,0]; RCVD_IN_DNSWL_NONE(0.00)[131.33.29.217.list.dnswl.org : 127.0.10.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.16)[ipnet: 217.29.32.0/20(-0.44), asn: 16188(-0.35), country: DE(-0.01)] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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, 04 Jul 2019 13:31:19 -0000 Hi, > Am 04.07.2019 um 11:33 schrieb Patrick M. Hausen : > is it possible to run Ubuntu 18.04 inside a bhyve VM > and use Vagrant with Virtialbox? I just found out - yes, you can. As long as you stickt to 32 bit Virtualbox guests. You need nested virtualization for 64 bit guests. Kind regards, Patrick -- punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling From owner-freebsd-virtualization@freebsd.org Sat Jul 6 14:53:28 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7E7415CA0A7 for ; Sat, 6 Jul 2019 14:53:28 +0000 (UTC) (envelope-from peter.laursen84@gmail.com) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A923B8E91B for ; Sat, 6 Jul 2019 14:53:27 +0000 (UTC) (envelope-from peter.laursen84@gmail.com) Received: by mail-ed1-x52a.google.com with SMTP id k21so10390133edq.3 for ; Sat, 06 Jul 2019 07:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qB/aJGR46UCIG2zwQVaXbIKE4tkixsz6Lsd1AwInWC0=; b=crV+2JxHPJ9rytlhs4Ic4+EOnGlruRFHtf+iWiHcaWfV95zXPolJHxQjNqrFMrIWLm 00XJWLiovDv1gQxp6DR4sXvGLa//vcHNHvY1x7xo6gBjM4u4QUUoJJx5Bkj/kDjNkDVp kjeJFlw7OJ6EGIjKa/olX8KFW72VWf8KrjLKxYaUIPSWjDdsog0PYL3PzjwoHJHEINxM QdXKlUqdcUA9+Z2jB9/OUiyPSjlvH6JYEfvF/V1lW2DbulSWUHcEHBBGRY2h0Qj7O7ZO +EzbibBfg6e/153j+y6UhznIpNu1hY8XofMJ4i6bR4cEaJ9sS+fLYf6FQlUteBk1PUuU nnng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qB/aJGR46UCIG2zwQVaXbIKE4tkixsz6Lsd1AwInWC0=; b=Zn2spfeRJM6UlsgGOHpTogd9sfjylA98zZFWB2Jz/lPlPn4wzU9SceKdY/0Antia86 s7CsTm1YziXzKCVaW0sURc/ApRQJ9ttZqd3Swf3mXPIk1N8H2QEY+gfVUzUPpShGS2Lp eLJsqjHGuUCS/uBbCEC46GbGPGaAGRox8hi/BN63cg8Xgqh2yH1DPIHJ2g0eIkGcuuW+ VE7cXzDwNVEDnVjrS/k+kqmLuFIiWz1wvXq1P8uJPwoOSTLVuq1iv2CiHFQZSw0AGLGP iF4cfNKKAQTw7g6Ybu2oFXhgOSzS6pqn0Qj417I1w0sJc3Ol8sQoV2KEdriWIhlTC30u 9MWA== X-Gm-Message-State: APjAAAVzKbvBExrnbr8udbwu+g8hnC2z1Ne5+jZJ2aXKxarB7bSfwh6Z n/vpYTpoGtsa4Rd9dPuijptCzwJtzglukXGOtku5OQ== X-Google-Smtp-Source: APXvYqztgJGce/OyTsmDB5Kk04n1JlZymmqcJJbcpIefWfzoiLnZpEk0F+WeU6KqEpuQKaoFcCMFjR4zHMDQlqJw1Ac= X-Received: by 2002:a17:906:ca9:: with SMTP id k9mr8352071ejh.4.1562424806455; Sat, 06 Jul 2019 07:53:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:4217:0:0:0:0 with HTTP; Sat, 6 Jul 2019 07:53:25 -0700 (PDT) From: Peter Laursen Date: Sat, 6 Jul 2019 16:53:25 +0200 Message-ID: Subject: [bhyve]: Problems with newly added audio support To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: A923B8E91B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=crV+2JxH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of peterlaursen84@gmail.com designates 2a00:1450:4864:20::52a as permitted sender) smtp.mailfrom=peterlaursen84@gmail.com X-Spamd-Result: default: False [-6.64 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.71)[-0.707,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-2.92)[ip: (-9.37), ipnet: 2a00:1450::/32(-2.77), asn: 15169(-2.40), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[a.2.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Sat, 06 Jul 2019 14:53:28 -0000 Hi all, Please keep me CC'd as I am not subscribed to the list. For some reason, I cannot get the BHyve audio support to work with FreeBSD 13 as a guest. Neither does it seem to work with Debian 9. This is on a recent FreeBSD-Current built as of today (the specific revision is R349776). Either, I am told that the virtual channel is dead or I receive an assertion and the bhyve process is killed). Regardless, I hear no audio whatsoever. How to reproduce: 1) I installed a copy of FreeBSD-current in a memory disk. 2) I loaded FreeBSD using bhyveload. 3) I launched bhyve like this: " bhyve -A -H -P -s 0,hostbridge -s 1,lpc -s 2,virtio-net,tap0 -s 3,virtio-rnd -s 4,virtio-blk,/dev/md0 -s 5,hda,play=/dev/dsp,rec=/dev/dsp -m 1024M -l com1,stdio freebsd 4) I installed espeak and tried to get it to speak a sentence. 5) I got the message that the virtual channel is dead. How can I debug this further? Let me know if you need any more outputs or anything else. Thanks in advance for any help, Peter.