From nobody Sat Aug 20 19:51:35 2022 X-Original-To: freebsd-virtualization@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 4M98QX0Dq4z4Z7cV for ; Sat, 20 Aug 2022 19:51:48 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M98QW6tXqz3rS2 for ; Sat, 20 Aug 2022 19:51:47 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661025108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FyauqFphH3SMYLZC+VY6MmdXCQn5v6bcGoQmpFhLz4Q=; b=UCZkZM7fxmxaj4vWZsA9NUmlY9VpH1y36qxI17cgCarQAqdcxW/c1TRizump9KeKezasdO tfl3HvDStfRP73TrPtIZz9GQhwmvnekMweYf0dsoT8aUpRSX1Tmz3BcOo/uYw07D0dK6sP RcsEr3Gx4cmjHDJ/q3S19Uw2AQFMCM+vUylIlX2aYJo/bQw9gAQmEkmVZuV3W5U7MGzK/L 1HjP2ylVdVudVROKMo3pKdj6nz+jbb8rRWX7cPKfsoWqdWXTWdwcdcHcImaDuNe22kbxOJ DCgjOZl7AbLxUnx5y/G3QljGNeeYuVpjkxboL0r3lec/auSpv601mKXpQwefxQ== Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4M98QW5yhRzlCN for ; Sat, 20 Aug 2022 19:51:47 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vk1-f169.google.com with SMTP id d6so1639335vko.7 for ; Sat, 20 Aug 2022 12:51:47 -0700 (PDT) X-Gm-Message-State: ACgBeo1au8Alz1vTEqQ9wLbopH3IAJmn3kh/wkvWyxON81S+xb0PlF3T MvTyvzYKBdiyba3sZen826fBgCJAKaw0mckuK8E= X-Google-Smtp-Source: AA6agR5YXq9kvUwqZRzy3aUkep+vHdqgo2tay4eW849uEhGKiZSu1kQwj1Fg1DBY1rdigO1BSI/XkZgtl/JXNVZ6gWY= X-Received: by 2002:a1f:5c42:0:b0:382:3eac:56f7 with SMTP id q63-20020a1f5c42000000b003823eac56f7mr5094820vkb.24.1661025107307; Sat, 20 Aug 2022 12:51:47 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Sat, 20 Aug 2022 20:51:35 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [nvme]: Windows10: inaccessible boot device To: Chuck Tuffli Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000007bf2d205e6b18b22" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661025108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FyauqFphH3SMYLZC+VY6MmdXCQn5v6bcGoQmpFhLz4Q=; b=A5Q/H//gLaajoqUzRRqGLjEqQB3U9C/sja08xmQgmSmK97L631UP24cqAyXv5nOPLayKPP XU7OrrpHt1GCFFtcTQeawUMvIsOR3/LKhcP8vy/wWZIIHfN7IF3+xacppE8CHMXdi+ZCLM uVAyoXDb0H7SUiL0euMbFCnUo3WgOzJj+8rC9fnsW0ejq/qeRcPHh8eQqYBIvD28qrNelR aaTk0au1L7pP40G0qiJEilAh4/FHIBbFnK11ZJ1VZOB2SaJ8PXevjq5sj6cc7SQCHt2HU+ tySqxZKQE5UEauoOVwlPGDM3PwB61lJNucAxtMhr2/xbe7uTVG5zV83FYiLPIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661025108; a=rsa-sha256; cv=none; b=bLYiuQImjiOamuYpbrWNdmmJVtwi5f5EU6P9548LpL00YXQmOXU7zBz1bCCS2EB3E7fXNX 0L8dn8YQ8gMJBLzOE6ZIQoJnIgX0h1Kwj018uc1bCXPbdDFSbhqnvYXk3Rj9gQKtWbrCAZ 0cG7YAPFk+3G22kMKCuTliactjML+fWConn6W3EtksIE8tdxrc+IZHrD0KlDMa7T3zPnSv TpIl//XO6rhvwmT+Au6+LAvLC06aiXHtalH0v0do73Ipp03t6DOkBnRIxEObWJ13NuRiEI FnO3Cb7GSZYOiwo6KPolf6Ug8INJh0IiWsUILHjt2Zwr25wxj/dmG+sXa5bFcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --0000000000007bf2d205e6b18b22 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Chuck! `doas vm configure Windows10`: --- loader=3D"uefi" graphics=3D"yes" graphics_res=3D"1920x1080" xhci_mouse=3D"yes" cpu=3D4 memory=3D4G # 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=3D"8" # ideally this should be changed to virtio-net and drivers installed in the guest # e1000 works out-of-the-box network0_type=3D"virtio-net" # OK #network0_type=3D"e1000" # OK network0_switch=3D"public" #disk0_type=3D"nvme" # NOK: INACCESSIBLE BOOT DEVICE #disk0_type=3D"ahci-hd" # OK disk0_type=3D"virtio-blk" # OK #disk0_type=3D"virtio-scsi" # NOK: loader doesn't to see this driver disk0_name=3D"disk0.img" #disk1_type=3D"ahci-cd" #disk1_dev=3D"custom" #disk1_name=3D"/work/ISO/virtio-win-0.1.221.iso" # windows expects the host to expose localtime by default, not UTC utctime=3D"no" uuid=3D"fcabf7ce-bf4b-4a83-be49-46c51ae8610e" network0_mac=3D"58:9c:fc:0b:d1:fa" # sound #bhyve_options=3D"-s 6,hda,play=3D/dev/dsp,rec=3D/dev/dsp" # SAMPLE bhyve_options=3D"-s 1,hda,play=3D/dev/dsp" # OK, why and how we know what device to use? '-s slot,emulation[,conf]' --- Cheers, Chuck Tuffli escreveu no dia s=C3=A1bado, 20/08/2022 =C3= =A0(s) 18:15: > On Fri, Aug 19, 2022 at 12:55 PM Nuno Teixeira > 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 BOO= T > 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 > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000007bf2d205e6b18b22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Chuck!

`doas vm config= ure Windows10`:
---
loader=3D"uefi"
graphi= cs=3D"yes"
graphics_res=3D"1920x1080"
xhci_mouse= =3D"yes"
cpu=3D4
memory=3D4G

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

# = ideally this should be changed to virtio-net and drivers installed in the g= uest
# e1000 works out-of-the-box
network0_type=3D"virtio-net&qu= ot; # OK
#network0_type=3D"e1000" # OK
network0_switch=3D&q= uot;public"

#disk0_type=3D"nvme" # NOK: INACCESSIBLE = BOOT DEVICE
#disk0_type=3D"ahci-hd" # OK
disk0_type=3D"= ;virtio-blk" # OK
#disk0_type=3D"virtio-scsi" # NOK: load= er doesn't to see this driver
disk0_name=3D"disk0.img"
=
#disk1_type=3D"ahci-cd"
#disk1_dev=3D"custom"#disk1_name=3D"/work/ISO/virtio-win-0.1.221.iso"

# window= s expects the host to expose localtime by default, not UTC
utctime=3D&qu= ot;no"
uuid=3D"fcabf7ce-bf4b-4a83-be49-46c51ae8610e"
n= etwork0_mac=3D"58:9c:fc:0b:d1:fa"

# sound
#bhyve_option= s=3D"-s 6,hda,play=3D/dev/dsp,rec=3D/dev/dsp" # SAMPLE
bhyve_o= ptions=3D"-s 1,hda,play=3D/dev/dsp" # OK, why and how we know wha= t device to use? '-s slot,emulation[,conf]'
---

Cheers,

Chuck Tuffli <chuck@tuffli.net> escreveu no dia s=C3=A1bado, 20/08/2022= =C3=A0(s) 18:15:
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 &quo= t;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


--
Nun= o Teixeira
FreeBSD Committer (ports)
--0000000000007bf2d205e6b18b22--