From nobody Mon Jun 27 18:50:25 2022 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4E1BA8681E1; Mon, 27 Jun 2022 19:00:08 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:c2c:26d8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LWxqq4cQpz3QMH; Mon, 27 Jun 2022 19:00:07 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.16.1/8.16.1) with ESMTPS id 25RIoRZW060789 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Jun 2022 18:50:27 GMT (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: marietto2008@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.16.1/8.16.1) with ESMTP id 25RIoPBP008179; Tue, 28 Jun 2022 01:50:26 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: how to run bhyve and virtualbox at the same time To: Mario Marietto , =?UTF-8?Q?Corvin_K=c3=b6hne?= , FreeBSD virtualization , hackers@freebsd.org References: From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <62B9FBF1.6030906@grosbein.net> Date: Tue, 28 Jun 2022 01:50:25 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT autolearn=disabled version=3.4.2 X-Spam-Report: * -0.0 SHORTCIRCUIT No description available. * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 4LWxqq4cQpz3QMH X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of eugen@grosbein.net does not designate 2a01:4f8:c2c:26d8::2 as permitted sender) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [2.56 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FREEFALL_USER(0.00)[eugen]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; GREYLIST(0.00)[pass,body]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.34)[-0.343]; FORGED_MUA_THUNDERBIRD_MSGID(4.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-virtualization,hackers]; FREEMAIL_TO(0.00)[gmail.com,beckhoff.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 26.06.2022 20:43, Mario Marietto wrote: > Hello to everyone. > > Just for educational purposes I've virtualized MacOS Monterey with Virtualbox in FreeBSD : > > Screenshot_2022-06-26_15-32-51.jpg > > Now,the problem is that Virtualbox supports only USB 1.0 speed devices because it does not support the USB 3.0/3.1 plugin/addon and since I use a lot of USB disks and I transfer data between them,I can't have a low level speed like that. So,I've thought of some ideas to overcome the problem. If you need to pass USB disk only (not other kinds of USB devices), then USB pass-through is not only way, there is another one: you can pass block device without performance hit. Optionally, in the /etc/devfs.rules: [localrules=10] add path 'da*' mode 0660 group vboxusers So, any CAM-supported disks including USB-attached is writable by vboxusers group. Then create VMDK link to actual device: $ VBoxManage internalcommands createrawvmdk -filename $HOME/usbdisk.vmdk -rawdisk /dev/da1 Then attach VMDK to the VM as fixed HDD.