Date: Thu, 23 Jan 2020 08:49:06 +0100 From: Mathieu Arnold <mat@FreeBSD.org> To: virtualization@freebsd.org Subject: Re: Bhyve and UEFI NVRAM Message-ID: <20200123074906.bhbpr2cbdmeeqwvz@atuin.in.mat.cc> In-Reply-To: <20200116090442.xgmiwlaiwwyajqgk@atuin.in.mat.cc> References: <20200116090442.xgmiwlaiwwyajqgk@atuin.in.mat.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
--elafskrj3fxxew2c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Maybe I am going at it in the wrong way, but any hints would be appreciated. On Thu, Jan 16, 2020 at 10:04:42AM +0100, Mathieu Arnold wrote: > Hi, >=20 > I have been trying to install arch linux in bhyve, it works great if I > uses the BIOS with grub, but for my purpose, I need to be able to boot > using UEFI mode. > So, I install the vm using the arch iso, it works just fine, I use the > tutorial here https://wiki.archlinux.org/index.php/EFISTUB to boot using > UEFI directly, without adding a layer of boot manager, which is > basically using: >=20 > efibootmgr --disk /dev/vda --part 1 --create --label "Arch Linux" --loade= r /vmlinuz-linux --unicode 'root=3DPARTUUID=3DXXXXXXXX-XXXX-XXXX-XXXX-XXXXX= XXXXXXX rw initrd=3D\initramfs-linux.img' --verbose >=20 > to add a boot entry to the NVRAM with the correct "thingies" to get the > UEFI firmware to find all it needs. >=20 > It works correctly because if at that point I reboot the vm, it boots > correctly into the arch installation, and as long as I don't stop/start > the vm it works. >=20 > Now, if I stop the vm and start it up again, it does not work anymore > because whatever UEFI NVRAM efibootmgr wrote to, it seems it was only > non volatile as long as the bhyve process was running, but it was not > actually saved anywhere for later use. >=20 > So, I am wondering, is there some magic bhyve thing that I could not > find in the man page that would allow me to map the nvram to a file on > the host? Or some other magic that would allow me to change the bhyve > nvram from the bhyve command line? >=20 > Regards, >=20 > PS: as a side note, I don't use bhyve directly but I use it through > sysutils/vm-bhyve, but it should probably not matter. > --=20 > Mathieu Arnold --=20 Mathieu Arnold --elafskrj3fxxew2c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEOraXidLtEhBkQLpbOkUW81GDzkgFAl4pT/JfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNB QjY5Nzg5RDJFRDEyMTA2NDQwQkE1QjNBNDUxNkYzNTE4M0NFNDgACgkQOkUW81GD zkhvJxAAu7tGyrCja30TPr+6b6EWrK66hb5Aghtsn8BtKoBD4cg0TKoJLhL2ucQd Mb9iXnu1PLoDvDTONC1rx8VS/KHBPM673YDq6+IxM/cuXLnDYi8oPywvc1KGdtwW gj2KL9Kfqk3D7dbbZEvJIdgzXUrCHxJUARrSyGmpoyb+/So3xEfWUtJyv2UL/H8j d9IPJ+uZEbak7eoQj7kDLdbpy6kmbk8E07dK+Ete9M//qhpCgWO2095rxVKKakgD HTFeXdTe78CyBarwcNX1dr8/5UO83UPcSbaCBee9BS/fUr+PeDfZ6l5M8WHuQvyX l6ZuQ14r+DKXIE0GHHfc5EaS+hZsm0hFC0I7fr75S+dde8XjXrS6Aq2qBAXCv+6+ PRUBmBMc7XSEfEAAIST80F971w44JRextOksMr+O7S/gCKGDuWPWJjCkUlaklkZX MURyrfMdRmjhQ10buzDp/IF/OzdY8lqzs+iT1fM79PJ9Kmoy0zqXBEw38VbzO20b POTKCcBmob6hoMed29x3MNrkRTnojIsJDNPtafQzdW8IwAzykyZfnLJWLhiaC6Cr xcfHmJzLMWtItsmit3rodAcr14mMfS8Qj3zG/P3OFGroj8gM7gdYHx299/4TUGa8 iS8Rkmq6Dg00dJfwlgY3VrP4Sf5yTvZrewp21WV1aPfhuYPKzB8= =EvAC -----END PGP SIGNATURE----- --elafskrj3fxxew2c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200123074906.bhbpr2cbdmeeqwvz>