How to Switch from BIOS to UEFI - Complete Guide
Question: How do I switch my VM from BIOS to UEFI?
Answer: Change BIOS type and configure boot properly
Why Switch to UEFI?
Benefits of UEFI
- Secure Boot: Protects from boot malware
- GPT Support: Disks larger than 2TB
- Faster Boot: Modern boot technology
- Better Features: NVRAM, restart fixes
How to Change BIOS Type
Method 1: Web UI
- Go to VM → Options
- Edit BIOS
- Select OVMF
- Save
Method 2: CLI
qm set 100 --bios ovmfHow to Add EFI Disk
Create EFI Partition
# Add EFI disk
qm set 100 --efidisk0 local:1GVerify EFI Disk
qm config 100 | grep efidiskHow to Configure Boot Order for UEFI
Set Boot Order
# Boot from EFI disk first
qm set 100 --boot order=efidisk0
# Or with other options
qm set 100 --boot order=efidisk0;scsi0How to Enable Secure Boot
Prerequisites
- OVMF BIOS enabled
- EFI disk added
Enable Secure Boot
# Enable secure boot
qm set 100 --bios ovmf --secure-boot 1
# Default VM certificates
qm set 100 --bios ovmfKeywords
uefi secureboot bios conversion how-to efi