Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jul 2024 16:03:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@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-27103-26Z6Fu8fEP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279720-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279720-27103@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #8 from mario felicioni <marietto2008@gmail.com> ---
Sorry,your patch does not work for me :

.....
make[2]: Leaving directory
'/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdeMod=
ulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe'

Fd File Name:BHYVE
(/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE.f=
d)

Generate Region at Offset 0x0
   Region Size =3D 0x40000
   Region Name =3D DATA

Generate Region at Offset 0x40000
   Region Size =3D 0x1000
   Region Name =3D None

Generate Region at Offset 0x41000
   Region Size =3D 0x1000
   Region Name =3D DATA

Generate Region at Offset 0x42000
   Region Size =3D 0x42000
   Region Name =3D None

Generate Region at Offset 0x84000
   Region Size =3D 0x348000
   Region Name =3D FV

Generating FVMAIN_COMPACT FV

Generating PEIFV FV
####
Generating DXEFV FV
#########
Generate Region at Offset 0x3CC000
   Region Size =3D 0x34000
   Region Name =3D FV

Generating SECFV FV
#
Fd File Name:BHYVE_VARS
(/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_V=
ARS.fd)

Generate Region at Offset 0x0
   Region Size =3D 0x40000
   Region Name =3D DATA

Generate Region at Offset 0x40000
   Region Size =3D 0x1000
   Region Name =3D None

Generate Region at Offset 0x41000
   Region Size =3D 0x1000
   Region Name =3D DATA

Generate Region at Offset 0x42000
   Region Size =3D 0x42000
   Region Name =3D None

Fd File Name:BHYVE_CODE
(/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_C=
ODE.fd)

Generate Region at Offset 0x0
   Region Size =3D 0x348000
   Region Name =3D FV

Generate Region at Offset 0x348000
   Region Size =3D 0x34000
   Region Name =3D FV

Fd File Name:MEMFD
(/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/MEMFD.f=
d)

Generate Region at Offset 0x0
   Region Size =3D 0x6000
   Region Name =3D None

Generate Region at Offset 0x6000
   Region Size =3D 0x1000
   Region Name =3D None

Generate Region at Offset 0x7000
   Region Size =3D 0x1000
   Region Name =3D None
Padding region starting from offset 0x8000, with size 0x8000

Generate Region at Offset 0x8000
   Region Size =3D 0x8000
   Region Name =3D None

Generate Region at Offset 0x10000
   Region Size =3D 0x10000
   Region Name =3D None

Generate Region at Offset 0x20000
   Region Size =3D 0xE0000
   Region Name =3D FV

Generate Region at Offset 0x100000
   Region Size =3D 0xB00000
   Region Name =3D FV

GUID cross reference file can be found at
/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/Guid.xref

FV Space Information
SECFV [5%Full] 212992 (0x34000) total, 11808 (0x2e20) used, 201184 (0x311e0)
free
PEIFV [11%Full] 917504 (0xe0000) total, 106104 (0x19e78) used, 811400 (0xc6=
188)
free
DXEFV [45%Full] 11534336 (0xb00000) total, 5210672 (0x4f8230) used, 6323664
(0x607dd0) free
FVMAIN_COMPACT [41%Full] 3440640 (0x348000) total, 1437760 (0x15f040) used,
2002880 (0x1e8fc0) free

- Done -
Build end time: 17:34:22, Jul.01 2024
Build total time: 00:01:29

=3D=3D=3D>  Staging for edk2-bhyve-g202308_5
=3D=3D=3D>   Generating temporary packing list
/bin/mkdir -p
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/
install  -m 0644
/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE.fd
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE=
_UEFI.fd
install  -m 0644
/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_CO=
DE.fd
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE=
_UEFI_CODE.fd
install  -m 0644
/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_VA=
RS.fd
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE=
_UEFI_VARS.fd
install  -m 0644
/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_CO=
DE.fd
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE=
_UEFI.fd
/bin/mkdir -p
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/
install -l rs
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE=
_UEFI.fd
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/BH=
YVE_UEFI.fd
install -l rs
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE=
_UEFI_CODE.fd
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/BH=
YVE_UEFI_CODE.fd
install -l rs
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE=
_UEFI_VARS.fd
/usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/BH=
YVE_UEFI_VARS.fd
=3D=3D=3D=3D> Compressing man pages (compress-man)
=3D=3D=3D>  Installing for edk2-bhyve-g202308_5
=3D=3D=3D>  Checking if edk2-bhyve is already installed
=3D=3D=3D>   Registering installation for edk2-bhyve-g202308_5
Installing edk2-bhyve-g202308_5...

[root@marietto /usr/ports/sysutils/edk2]=3D=3D> pkg remove edk2-bhyve=20=20=
=20=20=20=20

Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packag=
es
in the universe):

Installed packages to be REMOVED:
        bhyve-firmware: 1.0_2
        edk2-bhyve: g202308_5

Number of packages to be removed: 2

The operation will free 7 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/2] Deinstalling bhyve-firmware-1.0_2...
[1/2] Deleting files for bhyve-firmware-1.0_2: 100%
[2/2] Deinstalling edk2-bhyve-g202308_5...
[2/2] Deleting files for edk2-bhyve-g202308_5: 100%

[root@marietto /usr/ports/sysutils/edk2]=3D=3D> FLAVOR=3Dbhyve make reinsta=
ll

=3D=3D=3D>  Deinstalling for edk2-bhyve
=3D=3D=3D>   edk2-bhyve not installed, skipping
=3D=3D=3D>  Installing for edk2-bhyve-g202308_5
=3D=3D=3D>  Checking if edk2-bhyve is already installed
=3D=3D=3D>   Registering installation for edk2-bhyve-g202308_5
Installing edk2-bhyve-g202308_5...

I launch the vm using these params :

/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/11/Windows11.img,bootindex=
=3D1 \
-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,tap12 \
-s 29,fbuf,tcp=3D0.0.0.0:5912,w=3D1600,h=3D950,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \
vm0:12 < /dev/null & sleep 2 && vncviewer 0:12

this is what happens :

vm exit[0]
        reason          VMX
        rip             0x00000000000f0015
        inst_length     3
        status          0
        exit_reason     2 (Triple fault)
        qualification   0x0000000000000000
        inst_type               0
        inst_error              0

--=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-27103-26Z6Fu8fEP>