Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Feb 2022 12:17:06 -0500
From:      Aryeh Friedman <aryeh.friedman@gmail.com>
To:        Mario Marietto <marietto2008@gmail.com>
Cc:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>
Subject:   Re: Multiple bugs on bhyve present on FreeBSD 13R p7 while passing thru USB controller and graphic card
Message-ID:  <CAGBxaXnak5sOpiceofttORyfThXSnby7aw9e5BpODPnbgJ_uNw@mail.gmail.com>
In-Reply-To: <CA%2B1FSigMNsuGGAqi7hQZTuAFzMuByKtcFs554SVs6oXrfUZs-g@mail.gmail.com>
References:  <CA%2B1FSigMNsuGGAqi7hQZTuAFzMuByKtcFs554SVs6oXrfUZs-g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000098be9605d784e3b8
Content-Type: text/plain; charset="UTF-8"

> I'm using bhyve on FreeBSD 13R p7 and I'm trying to pass thru my usb
> controller and / or my graphic card while at the same time I'm trying to
> boot 3 operating systems (Ubuntu,Windows and FreeBSD 13) installed on a
> SATA and / or NVME disk using the virtio-blk driver and the ahci-hd driver.
>

It is my understand for devices to be successfully passed through (based on
my own semi-working attempts and research) the device must meet the
following two conditions:

1. Be used exclusively by the guest OS and not the host OS
2. The host OS needs to not even load drivers for the device(s)

For example on the GPU this means you would need to boot the host from a
serial port and/or GPU that is not used by the host and not loaded at boot
time and then, and only then, can you pass it through to the guest OS
(wither or not the guest OS recognizes it is an other question though).

As to good stable bhyve invocation I recommend you look at the source
code/output of either the shell based ports for making bhyve VM's or at
PetiteCloud (if you do the second I would be very interested in the results
so I can incorporate them into a future version of PC).


-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org

--00000000000098be9605d784e3b8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><div class=3D"gmail_quote"><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div><div>I&=
#39;m using bhyve on FreeBSD 13R p7 and I&#39;m trying to pass thru my usb =
controller and / or my graphic card while at the same time I&#39;m trying t=
o boot 3 operating systems (Ubuntu,Windows and FreeBSD 13) installed on a S=
ATA and / or NVME disk using the virtio-blk driver and the ahci-hd driver. =
<br></div></div></div></blockquote><div><br></div><div>It is my understand =
for devices to be successfully passed through (based on my own semi-working=
 attempts and research) the device must meet the following two conditions:<=
/div><div><br></div><div>1. Be used exclusively by the guest OS and not the=
 host OS</div><div>2. The host OS needs to not even load drivers for the de=
vice(s)</div><div><br></div><div>For example on the GPU this means you woul=
d need to boot the host from a serial port and/or GPU that is not used by t=
he host and not loaded at boot time and then, and only then, can you pass i=
t through to the guest OS (wither or not the guest OS recognizes it is an o=
ther question though).</div><div><br></div><div>As to good stable bhyve inv=
ocation I recommend you look at the source code/output of either the shell =
based ports for making bhyve VM&#39;s or at PetiteCloud (if you do the seco=
nd I would be very interested in the results so I can incorporate them into=
 a future version of PC).<br></div></div><br clear=3D"all"><br>-- <br><div =
dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr">Aryeh M. Friedman, L=
ead Developer, <a href=3D"http://www.PetiteCloud.org" target=3D"_blank">htt=
p://www.PetiteCloud.org</a><br></div></div></div>

--00000000000098be9605d784e3b8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXnak5sOpiceofttORyfThXSnby7aw9e5BpODPnbgJ_uNw>