Outils pour utilisateurs

Outils du site


tech:notes_bios_uefi_efi_-_virtualisation_kvm

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:notes_bios_uefi_efi_-_virtualisation_kvm [2025/11/13 20:32] Jean-Baptistetech:notes_bios_uefi_efi_-_virtualisation_kvm [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Boot EFI Virt KVM}}
 +
 +
 +# Notes bios uefi efi - Virtualisation KVM
 +
 +http://www.tianocore.org/ovmf/
 +
 +OVMF is an [EDK II](http://www.tianocore.org/edk2) based project to enable UEFI support for Virtual Machines. OVMF contains a sample UEFI firmware for [QEMU](http://www.qemu.org/) and [KVM](http://www.linux-kvm.org/).
 +
 +
 +`/usr/share/edk2.git/ovmf-x64/`
 +
 +~~~bash
 +mkdir /var/lib/libvirt/qemu/nvram/
 +~~~
 +
 +`/etc/libvirt/qemu.conf`
 +~~~ini
 +nvram = [ "/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd:/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd" ]
 +~~~
 +
 +~~~bash
 +virsh -c qemu:///system edit VM-UEFI
 +~~~
 +
 +~~~xml
 +  <os>
 +    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
 +    <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
 +  </os>
 +~~~
 +
 +
 +## Debian / Ubuntu
 +
 +Liens :
 +* http://cdimage.debian.org/ubuntu/ubuntu/pool/multiverse/e/edk2/
 +* http://packages.ubuntu.com/xenial/all/ovmf/download
 +
 +~~~bash
 +sudo dpkg -i ovmf_0-20160408.ffea0a2c-2_all.deb
 +~~~
 +
 +
 +## RedHat
 +
 +~~~bash
 +sudo dnf install dnf-plugins-core
 +sudo dnf config-manager --add-repo http://www.kraxel.org/repos/firmware.repo
 +sudo dnf install edk2.git-ovmf-x64
 +~~~
 +
 +
 +## Notes
 +
 +Certaine VM créés avec une ROM nécessite une reconfig pour booter avec une autre ROM en fonction de comment son nommé les périphériques par la rom je suppose  (par exemple : vda au lieu de sda si virtio driver utilisé) 
 +
 +Avec le shell efi // (un truc du genre) // :
 +~~~winbatch
 +bcfg boot -opt 3 "initrd=\initramfs-linux.img root=/dev/sda2"
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki