From owner-freebsd-virtualization@freebsd.org Wed Jun 12 21:37:35 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 CAA6C15C2735 for ; Wed, 12 Jun 2019 21:37:35 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 560BB8E5A6 for ; Wed, 12 Jun 2019 21:37:33 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (093105243006.raciborz.vectranet.pl [93.105.243.6]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x5CLbP2L037831 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 12 Jun 2019 21:37:25 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host 093105243006.raciborz.vectranet.pl [93.105.243.6] claimed to be ultrabook.yoonka.com To: freebsd-virtualization@freebsd.org From: Grzegorz Junka Subject: WebThings on bhyve and USB Message-ID: Date: Wed, 12 Jun 2019 21:37:19 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB-large X-Rspamd-Queue-Id: 560BB8E5A6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-6.88 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.01)[gjunka.com]; NEURAL_HAM_SHORT(-0.95)[-0.951,0]; DMARC_NA(0.00)[gjunka.com]; IP_SCORE(-3.62)[ip: (-9.48), ipnet: 88.98.192.0/18(-4.74), asn: 56478(-3.79), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[6.243.105.93.zen.spamhaus.org : 127.0.0.10] 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, 12 Jun 2019 21:37:36 -0000 How to best approach Mozilla IoT Gateway? I have a FreeBSD home server and was thinking about running the gateway on it instead of a dedicated Raspberry Pi. Mozilla does provide instructions how to compile: https://github.com/mozilla-iot/gateway I could try to adapt to compile on FreeBSD natively, but this already sounds like a lot of work before even considering the main issue, which is the availability of FreeBSD drivers for supported IoT adapters: https://github.com/mozilla-iot/wiki/wiki/Supported-Hardware So, my first question is, if those devices should or would in any way be supported by FreeBSD kernel? Then, if not natively on FreeBSD, how about running the docker image on Linux running on bhyve? https://hub.docker.com/r/mozillaiot/gateway I would need to somehow pass the USB ports to bhyve, so that Linux can pass them to the docker container. I heard it's not possible to pass specific USB ports but instead the whole PCI has to be passed and it seems to be as complex as it sounds: https://forums.freebsd.org/threads/bhyve-and-usb-passthru.67273/ https://github.com/pr1ntf/iohyve/wiki/USB-3.0-PCI-Controller-Pass-through So, my second question is if that approach to passing USB to bhyve is still the most recommended? GrzegorzJ