Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2024 19:50:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279720] virtualization/bhyve: it does not boot from the slot where the parameter bootindex=1 is declared.
Message-ID:  <bug-279720-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279720

            Bug ID: 279720
           Summary: virtualization/bhyve: it does not boot from the slot
                    where the parameter bootindex=3D1 is declared.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: marietto2008@gmail.com

Hello to everyone.

I want to show you what it seems to be a bug in bhyve. Please evaluate the
situation below :

/usr/sbin/./bhyve-win -S -c sockets=3D4,cores=3D2,threads=3D1 -m 8G -w -H \
-S -c sockets=3D4,cores=3D2,threads=3D1 -m 8G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/mnt/$vmdisk0'p2'/bhyve/img/Windows/Windows11.img,bootindex=3D=
1 \
-s 2,ahci-hd,/dev/$vmdisk5 \
-s 8:0,passthru,2/0/0 \
-s 8:1,passthru,2/0/1 \
-s 8:2,passthru,2/0/2 \
-s 8:3,passthru,2/0/3 \
-s 13,virtio-net,tap18 \
-s 29,fbuf,tcp=3D0.0.0.0:5918,w=3D1600,h=3D950,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \
vm0:18 < /dev/null & sleep 2 && vncviewer 0:18

as you can see I have attached all the slots of my GPU. Infact my Nvidia GPU
has 4 slots :

02:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX 20=
80
Ti] (rev a1)
02:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio Contro=
ller
(rev a1)
02:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller (r=
ev
a1)
02:00.3 Serial bus controller: NVIDIA Corporation TU102 USB Type-C UCSI
Controller (rev a1)

As you can see my GPU has one USB controller and one USB port mini integrat=
ed
with the controller. Well,I attached a pen drive on the port of the USB
controller and then I tried to boot the Windows 11 vm. What's happened ?
that,despite I have declared that I want boot the Windows11 vm at slot 1 by
adding the parameter bootindex=3D1,instead,it booted from the USB stick att=
ached
to the mini USB port of the USB controller (yes because on that USB stick I
have installed Windows 7,so it can boot). This seems to be a bug,because it
does not do what I want. And it is easy to reproduce. Just put bootindex=3D=
1 to
every OS that you want to boot and then attach a bootable USB stick to the =
usb
port of the GPU (it should be recent,it should be a GPU with the USB contro=
ller
integrated,but the latest high quality GPU models have it),and just run the
bhyve VM and you will see that it will not boot the OS you want.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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