New boot entry on UEFI is lost unless existing ones are removed
- Dominant language
- Swift
- Stars
- 35.5k
- Forks
- 1.8k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 7
Description
**BEFORE SUBMITTING YOUR ISSUE, PLEASE LOOK AT THE PINNED ISSUES AND USE THE SEARCH FUNCTION TO MAKE SURE IT IS NOT ALREADY REPORTED. ALWAYS COMMENT ON AN EXISTING ISSUE INSTEAD OF MAKING A NEW ONE.**
**Describe the issue**
I have installed multiple Linux distros (ArchLinux, VoidLinux, etc) inside UTM VMs and after adding the EFI entry and ensuring that there is a EFI boot entry using `efibootmgr`, the system forgets the boot entry, no matter how many times I do this process. However, once I remove one existing boot entry, then the system stops forgetting the newly added EFI entry.
I don't know if this issue is specific to UTM, but given that this issue does not occur on Physical Machines (which I checked multiple times), I believe it is related to at least a component inside UTM. My best guess is that the VM that UTM configures for us inside QEMU has a hard limit of how many boot entry the firmware can handle.
If you need any information from me, I would be happy to provide.
**Configuration**
* UTM Version:
* macOS Version:
* Mac Chip (Intel, M1, ...):
**Crash log**
Not Applicable.
**Debug log**
I don't have Debug Log now because I have fixed the issue but if the above description is not sufficient to recreate this issue, I can do everything so that relevant Debug Log is created.
**Upload VM**
The issue is not related to a specific VM. However, if you need it, here it is:
```
Backend
QEMU
ConfigurationVersion
4
Display
DownscalingFilter
Linear
DynamicResolution
Hardware
virtio-gpu-gl-pci
NativeResolution
UpscalingFilter
Nearest
Drive
Identifier
FEFBAC5B-147E-4AF5-ABA0-7175930CB920
ImageType
CD
Interface
USB
InterfaceVersion
1
ReadOnly
Identifier
C515E7F0-A6D4-4894-99B4-913336AD23C8
ImageName
C515E7F0-A6D4-4894-99B4-913336AD23C8.qcow2
ImageType
Disk
Interface
VirtIO
InterfaceVersion
1
ReadOnly
Information
Icon
linux
IconCustom
Name
VoidLinux(XFCE)
UUID
22148880-E17F-4270-8F6E-01E7B4FFAB3B
Input
MaximumUsbShare
3
UsbBusSupport
3.0
UsbSharing
Network
Hardware
virtio-net-pci
IsolateFromHost
MacAddress
22:14:31:41:6C:31
Mode
Shared
PortForward
QEMU
AdditionalArguments
BalloonDevice
DebugLog
Hypervisor
PS2Controller
RNGDevice
RTCLocalTime
TPMDevice
TSO
UEFIBoot
Serial
Sharing
ClipboardSharing
DirectoryShareMode
VirtFS
DirectoryShareReadOnly
Sound
Hardware
intel-hda
System
Architecture
aarch64
CPU
cortex-a72
CPUCount
1
CPUFlagsAdd
CPUFlagsRemove
ForceMulticore
JITCacheSize
0
MemorySize
1024
Target
virt
```
Contributor guide
Assessment
This issue has not been assessed yet.