Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2019 17:03:05 +0200
From:      =?UTF-8?Q?Goran_Meki=C4=87?= <meka@tilda.center>
To:        freebsd-usb@freebsd.org, Tomasz CEDRO <tomek@cedro.info>, Johannes Lundberg <johalun0@gmail.com>
Cc:        "freebsd-usb@FreeBSD.org" <freebsd-usb@freebsd.org>, freebsd-x11@freebsd.org, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>, Jung-uk Kim <jkim@freebsd.org>
Subject:   Re: VirtualBox Extensions Pack (for USB and Video)
Message-ID:  <3F6B7381-976C-416F-8D28-4C669A9AA003@tilda.center>
In-Reply-To: <CAFYkXjm3rJR-1ZAgfptbaWMjJ-kckY-BRga8Y-aE_7R%2Bp88bAw@mail.gmail.com>
References:  <CAFYkXjnT5iunTh=RkkT7BRKL3P4wF22_ToSJX_3j5_YyV_gWzw@mail.gmail.com> <bf4789e9-3cfd-1403-22c9-9674c0a52d23@FreeBSD.org> <CAFYkXjmZhftTtH-mAfdeeQ6mv8ECJFFeE93ShMWxh6Bu7GRE1g@mail.gmail.com> <f93eda0f-fa66-7403-5553-19bcce6be291@selasky.org> <85e11f37-c111-0052-bdcd-d87386a2c49b@gmail.com> <CAFYkXjk9RDPpAMLfzVHpUUM2bP3bpk5F0bKjcVuYOBkMoJYFxQ@mail.gmail.com> <96026bdc-5c60-6724-b96f-5da8aa17d55c@gmail.com> <CAFYkXjm3rJR-1ZAgfptbaWMjJ-kckY-BRga8Y-aE_7R%2Bp88bAw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As far as I know bhyve doesn't have USB passthroug which I understand you'r=
e after=2E It might be false as I didn't check since last year

On 7 May 2019 16:44:45 CEST, Tomasz CEDRO <tomek@cedro=2Einfo> wrote:
>On Tue, May 7, 2019 at 4:40 PM Johannes Lundberg <johalun0@gmail=2Ecom>
>wrote:
>> On 5/7/19 7:26 AM, Tomasz CEDRO wrote:
>> > On Tue, May 7, 2019 at 4:11 PM Johannes Lundberg
><johalun0@gmail=2Ecom> wrote:
>> >> On 5/6/19 12:42 PM, Hans Petter Selasky wrote:
>> >>> On 2019-05-06 20:49, Tomasz CEDRO wrote:
>> >>>> @HPS have you ever considered such operation? If the FreeBSD's
>USB can
>> >>>> be shared to the userland, maybe that could be also shared to
>the
>> >>>> Virtual Machine?
>> >>> Hi,
>> >>> The problem is inside VBOX, that the USB APIs only support USB
>1=2Ex and
>> >>> not in FreeBSD from what I understand last time I checked=2E
>> >>> --HPS
>> >> Maybe bhyve is an option? I have completely replaced virtualbox
>with
>> >> bhyve for my vms and loving it but I haven't tested it with usb
>yet=2E
>> > Hmm, thanks Johannes for that hint=2E=2E can you run Windoze (yuck),
>Linux
>> > and other stuff as full hypervisor or does this work more like
>> > separated dedicated FreeBSD Jail?
>>
>> I haven't tried Windows but it's supposed to work=2E I'm running Ubuntu
>> successfully with graphical desktop in bhyve=2E It uses VNC for the
>> graphical interface so it's not the best experience but it's usable
>if
>> you don't have too high requirements=2E Mostly my VMs are headless=2E
>>
>> Check
>https://www=2Efreebsd=2Eorg/doc/handbook/virtualization-host-bhyve=2Ehtml
>>
>> For managing my VMs I like this one
>https://github=2Ecom/churchers/vm-bhyve
>
>Sounds really nice and what I need! More than that we would develop
>true Open-Source solution :-)
>
>Thank you Johannes !! :-)
>
>Best regards :-)
>Tomek
>
>--=20
>CeDeROM, SQ7MHZ, http://www=2Etomek=2Ecedro=2Einfo
>_______________________________________________
>freebsd-usb@freebsd=2Eorg mailing list
>https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-usb
>To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd=2Eorg"

--=20
Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E
From owner-freebsd-questions@freebsd.org  Tue May  7 15:37:41 2019
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@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 72834158B553
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Tue,  7 May 2019 15:37:41 +0000 (UTC)
 (envelope-from tomek@cedro.info)
Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com
 [IPv6:2607:f8b0:4864:20::22e])
 (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 CED3E8E651
 for <freebsd-questions@freebsd.org>; Tue,  7 May 2019 15:37:39 +0000 (UTC)
 (envelope-from tomek@cedro.info)
Received: by mail-oi1-x22e.google.com with SMTP id x16so6820746oic.6
 for <freebsd-questions@freebsd.org>; Tue, 07 May 2019 08:37:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=JgH/hfyy0LJKhao1U5l2be4lOsyZ0C0wCGT7hYRYUOA=;
 b=gV3MC/tmzzECo0NjnuuL0ICldryOtl141/lFWBFVjWkPuf81HZmyj6Gy+njfV/5kpN
 R2Jmg2caXr8XsY+/l/naiWOxyZs46o5hhDYZ4npFMjGOHPfvdb9lxSi/6ydiIzd9kNUE
 YO45nLT0cojxUq+iovE0gwBuDNZWzRgPiM0UM27KUdwDKRgx9hyt1Uy6p8BnnuIj7FJP
 J/vRYevvjC1zU9xoZjjQgU6jvVE8OmZlG/Xf7F+4AsPE/fMOk+IUZOlk1qoYgsoYUB9A
 WfSw3f1ui5SamddIPhBps6uY9JYtMgh2+t3wuSuJiY5gBc9W4LZWh7KFwfhKQqxkSfST
 u2dw==
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:cc;
 bh=JgH/hfyy0LJKhao1U5l2be4lOsyZ0C0wCGT7hYRYUOA=;
 b=Cio3XIpQzuYow+NvWYhMLWTdanGyRx+LyqEiJUk/fmIhjLPAO3sppD0Zcy7JRE+19P
 cjnEl0J95GeVpTplz3/HCiMZlWJjqNQw0QOk7xeHrGpixbdGMje3pX58mRg6Tjqf63eD
 2zAlVmF/8/mlhue11vh0qPieSVKCa9n6Z5DgMpD7IFAaLDgA4T8g3mPSHd+9IXma7g1b
 W3yGL60eFZnbbL6g37k33IMMUI9GzsFgzsabWvLVuSAZhFZypxH9iMQbDW0OBIqLtweJ
 Pyun8JGzbu3/e/vQbqjFx+AZctFQpd4r5OWkDjxt+v2PTJpEbxHP/iqU0BtGAHQ9+1dq
 pGew==
X-Gm-Message-State: APjAAAUdKnbluIhHe3Uv65z884IWGziTA/q7Mp0VMU1EWauYWN64ePg9
 5zVw8iH6dnrNnHt8eZV71kujr9u2R/O5FQ==
X-Google-Smtp-Source: APXvYqy8gDEo/zBbpnM+1j+JHG2Uxvodh7LKYLJuUPJK87yFmQqVrRxdXbqf9Qm4GNTVIPDIwnXVrA==
X-Received: by 2002:aca:bcc1:: with SMTP id m184mr578648oif.158.1557243458971; 
 Tue, 07 May 2019 08:37:38 -0700 (PDT)
Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com.
 [209.85.210.54])
 by smtp.gmail.com with ESMTPSA id c124sm6837414oih.53.2019.05.07.08.37.37
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 07 May 2019 08:37:37 -0700 (PDT)
Received: by mail-ot1-f54.google.com with SMTP id 66so5926448otq.0;
 Tue, 07 May 2019 08:37:37 -0700 (PDT)
X-Received: by 2002:a05:6830:1390:: with SMTP id
 d16mr23258799otq.174.1557243457484; 
 Tue, 07 May 2019 08:37:37 -0700 (PDT)
MIME-Version: 1.0
References: <CAFYkXjnT5iunTh=RkkT7BRKL3P4wF22_ToSJX_3j5_YyV_gWzw@mail.gmail.com>
 <bf4789e9-3cfd-1403-22c9-9674c0a52d23@FreeBSD.org>
 <CAFYkXjmZhftTtH-mAfdeeQ6mv8ECJFFeE93ShMWxh6Bu7GRE1g@mail.gmail.com>
 <f93eda0f-fa66-7403-5553-19bcce6be291@selasky.org>
 <85e11f37-c111-0052-bdcd-d87386a2c49b@gmail.com>
 <CAFYkXjk9RDPpAMLfzVHpUUM2bP3bpk5F0bKjcVuYOBkMoJYFxQ@mail.gmail.com>
 <96026bdc-5c60-6724-b96f-5da8aa17d55c@gmail.com>
 <CAFYkXjm3rJR-1ZAgfptbaWMjJ-kckY-BRga8Y-aE_7R+p88bAw@mail.gmail.com>
 <3F6B7381-976C-416F-8D28-4C669A9AA003@tilda.center>
 <0135d85a-396e-faf6-bd40-4cd42a4373d0@gmail.com>
In-Reply-To: <0135d85a-396e-faf6-bd40-4cd42a4373d0@gmail.com>
From: Tomasz CEDRO <tomek@cedro.info>
Date: Tue, 7 May 2019 17:37:25 +0200
X-Gmail-Original-Message-ID: <CAFYkXjnNPw=z=PHd9PguUHkzb_Q_E8W7p_Sh3Ckj2K6V9YKnJQ@mail.gmail.com>
Message-ID: <CAFYkXjnNPw=z=PHd9PguUHkzb_Q_E8W7p_Sh3Ckj2K6V9YKnJQ@mail.gmail.com>
Subject: Re: VirtualBox Extensions Pack (for USB and Video)
To: Johannes Lundberg <johalun0@gmail.com>
Cc: "freebsd-usb@FreeBSD.org" <freebsd-usb@freebsd.org>,
 freebsd-x11@freebsd.org, 
 FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Content-Type: text/plain; charset="UTF-8"
X-Rspamd-Queue-Id: CED3E8E651
X-Spamd-Bar: ------
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=cedro.info header.s=google header.b=gV3MC/tm
X-Spamd-Result: default: False [-6.13 / 15.00]; ARC_NA(0.00)[];
 TO_DN_EQ_ADDR_SOME(0.00)[];
 R_DKIM_ALLOW(-0.20)[cedro.info:s=google];
 RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[];
 RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org];
 DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4];
 TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+];
 MX_GOOD(-0.01)[cached: ASPMX.L.GOOGLE.COM];
 RCVD_IN_DNSWL_NONE(0.00)[e.2.2.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]; NEURAL_HAM_SHORT(-0.99)[-0.992,0];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[];
 FREEMAIL_TO(0.00)[gmail.com]; 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];
 IP_SCORE(-2.82)[ip: (-8.58), ipnet: 2607:f8b0::/32(-3.23), asn: 15169(-2.26),
 country: US(-0.06)]
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 07 May 2019 15:37:41 -0000

On Tue, May 7, 2019 at 5:23 PM Johannes Lundberg <johalun0@gmail.com> wrote:
>
> Out of curiosity I googled and it seems you might be able to
> pass-through the entire USB controller using PCI pass-through. Not sure
> it's so practical  if you end up loosing input capability on the host
> (and also the guest since it's VNC)... Would be nice though if bhyve had
> all the required functionality so we'd have a more "native" and open
> source solution for all VM needs.

In VirtualBox, when you select a given USB device, it is then lost to
the Host and re-connected into Guest. Then you can "unselect" the
device from a list the disconnect it from Guest and re-connect to the
Host. This is for the "on-the-fly" attachments. But some devices needs
to be enumerated directly and would not work that way, so you can
create a "filter" that would directly attach given USB device into the
Guest.

Loosing all of the USB Host for the Guest may not be desirable because
then I would loose touchscreen, LTE modem, touchpad, etc.. but I am
sure @HPS can invent a solution for that problem :-)

Another thing would be 2D/3D graphics acceleration in bhyve Guest
under Xorg. But if nVidia driver could implement 3D acceleration into
Linux Emulation, that could be also implemented into bhyve..?

That bhyve stuff sounds really nice! Once again thanks for that great
hint! I have to finish some hardware+firmware project and then I would
get into bhyve :-)

Best regards! :-)
Tomek

ps/2: I have to check if bhyve can emulate ARM on x86 that would be fun!!

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F6B7381-976C-416F-8D28-4C669A9AA003>