定制OVMF固件实现PVE8环境UEFI模式直通Intel核显并显示BIOS适用于intel6-13代处理器pve8核显直通画面教程可以外接显示Proxmox VE

3 min read 2 days ago
Published on Jan 04, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial will guide you through the process of customizing OVMF firmware to enable UEFI mode passthrough for Intel integrated graphics in a Proxmox VE 8 (PVE8) environment. This setup is particularly useful for users with Intel 6th to 13th generation processors who wish to utilize integrated graphics with Proxmox VE. By following these steps, you can achieve a seamless passthrough that allows external display capabilities.

Step 1: Prepare Your Environment

  • Ensure you have Proxmox VE 8 installed on your server.
  • Verify that your hardware is compatible, particularly the Intel CPU and integrated graphics.
  • Backup your current configuration to prevent data loss.

Step 2: Install Required Tools

  • Access the terminal in your Proxmox VE environment.
  • Install necessary packages by running the following command:
    apt update && apt install ovmf qemu-system-x86
    
  • Ensure that you have the latest updates for Proxmox VE to avoid compatibility issues.

Step 3: Configure OVMF Firmware

  • Locate the OVMF firmware directory. This is usually found under /usr/share/OVMF/.
  • Create a copy of the original firmware file for customization:
    cp OVMF_CODE.fd OVMF_CODE_CUSTOM.fd
    
  • Open the OVMF_CODE_CUSTOM.fd file in a suitable editor for modifications.

Step 4: Modify Firmware Settings

  • Edit the file to enable UEFI support for passthrough:
    • Find the section that configures the graphics settings.
    • Ensure that the integrated graphics settings are enabled.
  • Save the changes and exit the editor.

Step 5: Configure Proxmox for Passthrough

  • Access the Proxmox web GUI.
  • Navigate to your VM settings and enable UEFI firmware:
    • Under the "Options" tab, select "OVMF (UEFI)" as the firmware.
  • Add a new PCI device for the integrated graphics:
    • Go to the "Hardware" tab and click on "Add" → "PCI Device".
    • Select the Intel integrated graphics device from the list.

Step 6: Verify BIOS Settings

  • Restart your server and enter the BIOS setup:
    • Ensure that the integrated graphics option is enabled.
    • Check for any settings related to virtualization and enable them.
  • Save the BIOS settings and exit.

Step 7: Test the Setup

  • Boot into your Proxmox VE environment.
  • Create a virtual machine (VM) that utilizes the integrated graphics passthrough.
  • Verify that the VM can display output through the integrated graphics on the connected monitor.

Conclusion

By following these steps, you have successfully configured the OVMF firmware for UEFI mode passthrough of Intel integrated graphics in Proxmox VE 8. This setup allows for external display capabilities using the integrated graphics of Intel CPUs from the 6th to 13th generation. For further enhancements, consider exploring additional passthrough options for other hardware components like USB and audio devices.