Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2022 20:51:35 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Chuck Tuffli <chuck@tuffli.net>
Cc:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>
Subject:   Re: [nvme]: Windows10: inaccessible boot device
Message-ID:  <CAFDf7UKKNePeRfkQVc4UTW2JJ=hb6201vjr2u-h-wpkZON%2B89A@mail.gmail.com>
In-Reply-To: <CAM0tzX1ggWJZrBcmeXsKNfWp3Yi3TAbQMFDMnBV3K%2B%2BaVFXnXA@mail.gmail.com>
References:  <CAFDf7UKUZjtVJmN8oZkjN3DQKmLoCpkkMOZoZ3UWFUQ3D5f0uQ@mail.gmail.com> <CAM0tzX1ggWJZrBcmeXsKNfWp3Yi3TAbQMFDMnBV3K%2B%2BaVFXnXA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello Chuck!

`doas vm configure Windows10`:
---
loader="uefi"
graphics="yes"
graphics_res="1920x1080"
xhci_mouse="yes"
cpu=4
memory=4G

# put up to 8 disks on a single ahci controller.
# without this, adding a disk pushes the following network devices onto
higher slot numbers,
# which causes windows to see them as a new interface
ahci_device_limit="8"

# ideally this should be changed to virtio-net and drivers installed in the
guest
# e1000 works out-of-the-box
network0_type="virtio-net" # OK
#network0_type="e1000" # OK
network0_switch="public"

#disk0_type="nvme" # NOK: INACCESSIBLE BOOT DEVICE
#disk0_type="ahci-hd" # OK
disk0_type="virtio-blk" # OK
#disk0_type="virtio-scsi" # NOK: loader doesn't to see this driver
disk0_name="disk0.img"

#disk1_type="ahci-cd"
#disk1_dev="custom"
#disk1_name="/work/ISO/virtio-win-0.1.221.iso"

# windows expects the host to expose localtime by default, not UTC
utctime="no"
uuid="fcabf7ce-bf4b-4a83-be49-46c51ae8610e"
network0_mac="58:9c:fc:0b:d1:fa"

# sound
#bhyve_options="-s 6,hda,play=/dev/dsp,rec=/dev/dsp" # SAMPLE
bhyve_options="-s 1,hda,play=/dev/dsp" # OK, why and how we know what
device to use? '-s slot,emulation[,conf]'
---

Cheers,

Chuck Tuffli <chuck@tuffli.net> escreveu no dia sábado, 20/08/2022 à(s)
18:15:

> On Fri, Aug 19, 2022 at 12:55 PM Nuno Teixeira <eduardo@freebsd.org>
> wrote:
> >
> > Hello,
> >
> > I'm running bhyve at main-n257521-97be6fced7db and I'm trying to use
> 'nvme' to access Windows disk but it fails with message "INACCESSIBLE BOOT
> DEVICE".
> >
> > I've read that nvme was fixed in recent commit.
> > Do I missing some config params?
> >
> > I use vm-bhyve with virtio net and blk drivers atm.
>
> What does the vm configuration file contain?
>
> --chuck
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)

[-- Attachment #2 --]
<div dir="ltr"><div>Hello Chuck!</div><div><br></div><div>`doas vm configure Windows10`:</div><div>---</div><div>loader=&quot;uefi&quot;<br>graphics=&quot;yes&quot;<br>graphics_res=&quot;1920x1080&quot;<br>xhci_mouse=&quot;yes&quot;<br>cpu=4<br>memory=4G<br><br># put up to 8 disks on a single ahci controller.<br># without this, adding a disk pushes the following network devices onto higher slot numbers,<br># which causes windows to see them as a new interface<br>ahci_device_limit=&quot;8&quot;<br><br># ideally this should be changed to virtio-net and drivers installed in the guest<br># e1000 works out-of-the-box<br>network0_type=&quot;virtio-net&quot; # OK<br>#network0_type=&quot;e1000&quot; # OK<br>network0_switch=&quot;public&quot;<br><br>#disk0_type=&quot;nvme&quot; # NOK: INACCESSIBLE BOOT DEVICE<br>#disk0_type=&quot;ahci-hd&quot; # OK<br>disk0_type=&quot;virtio-blk&quot; # OK<br>#disk0_type=&quot;virtio-scsi&quot; # NOK: loader doesn&#39;t to see this driver<br>disk0_name=&quot;disk0.img&quot;<br><br>#disk1_type=&quot;ahci-cd&quot;<br>#disk1_dev=&quot;custom&quot;<br>#disk1_name=&quot;/work/ISO/virtio-win-0.1.221.iso&quot;<br><br># windows expects the host to expose localtime by default, not UTC<br>utctime=&quot;no&quot;<br>uuid=&quot;fcabf7ce-bf4b-4a83-be49-46c51ae8610e&quot;<br>network0_mac=&quot;58:9c:fc:0b:d1:fa&quot;<br><br># sound<br>#bhyve_options=&quot;-s 6,hda,play=/dev/dsp,rec=/dev/dsp&quot; # SAMPLE<br>bhyve_options=&quot;-s 1,hda,play=/dev/dsp&quot; # OK, why and how we know what device to use? &#39;-s slot,emulation[,conf]&#39;</div><div>---</div><div><br></div><div>Cheers,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Chuck Tuffli &lt;<a href="mailto:chuck@tuffli.net">chuck@tuffli.net</a>&gt; escreveu no dia sábado, 20/08/2022 à(s) 18:15:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Aug 19, 2022 at 12:55 PM Nuno Teixeira &lt;<a href="mailto:eduardo@freebsd.org" target="_blank">eduardo@freebsd.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m running bhyve at main-n257521-97be6fced7db and I&#39;m trying to use &#39;nvme&#39; to access Windows disk but it fails with message &quot;INACCESSIBLE BOOT DEVICE&quot;.<br>
&gt;<br>
&gt; I&#39;ve read that nvme was fixed in recent commit.<br>
&gt; Do I missing some config params?<br>
&gt;<br>
&gt; I use vm-bhyve with virtio net and blk drivers atm.<br>
<br>
What does the vm configuration file contain?<br>
<br>
--chuck<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKKNePeRfkQVc4UTW2JJ=hb6201vjr2u-h-wpkZON%2B89A>