Hyper-V Question -- Boot from file (shim.efi)


jimbo45

Well-known member
Pro User
VIP
Local time
11:21 PM
Posts
5,862
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Hi Hyper-V Gurus.

Creating a Linux Guest on Hyper-V -- no problems -runs perfectly but looking at the VM settings seems the "boot device" is a file with the name shim.efi. I'd have thought that the Guest would have booted from the appropriate boot file, grub2/systemd in Linux or the efi partition on Windows.

Any idea or is it just how Hyper-V names a "foreign" e.g non Windows boot manager file.

Skjámynd 2024-10-14 114401.png

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Never really explored it, but it's likely it may contain required content to boot a hyper-v VM. EFI's can be chained so it may ultimately load another EFI that is part of the VM
 

My Computer My Computer

At a glance

Linux Mint
OS
Linux Mint
Computer type
Laptop
Manufacturer/Model
System76 Lemur Pro
Hi Hyper-V Gurus.

Creating a Linux Guest on Hyper-V -- no problems -runs perfectly but looking at the VM settings seems the "boot device" is a file with the name shim.efi. I'd have thought that the Guest would have booted from the appropriate boot file, grub2/systemd in Linux or the efi partition on Windows.

Any idea or is it just how Hyper-V names a "foreign" e.g non Windows boot manager file.

View attachment 112493

Cheers
jimbo
Shim.efi will be the name of the .efi configuration file in the guest vm EFI partition.

Hyper-V is quite clever and uses that as the fastest way to boot bypassing boot managers (in effect).

Hyper-V does the same with Windows guests i.e. it points to a .efi file by default.

However, once in a while, it does not boot properly, so I change order to boot from hard drive instead and presumably the boot manager takes over.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Shim.efi will be the name of the .efi configuration file in the guest vm EFI partition.

Hyper-V is quite clever and uses that as the fastest way to boot bypassing boot managers (in effect).

Hyper-V does the same with Windows guests i.e. it points to a .efi file by default.

However, once in a while, it does not boot properly, so I change order to boot from hard drive instead and presumably the boot manager takes over.
Thanks
!!
I think you must be replacing karifor the moment. as the current resident Hyper-V guru.I hope he's still around somewhere.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Thanks
!!
I think you must be replacing karifor the moment. as the current resident Hyper-V guru.I hope he's still around somewhere.

Cheers
jimbo
He was last noted as logging in at end of September. So I guess he is still with us.

My fear is his illness has left him unable to easily type any more.

Re. being resident guru, I can only walk in @Kari's shadow as Grasshopper to the Master.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
He was last noted as logging in at end of September. So I guess he is still with us.

My fear is his illness has left him unable to easily type any more.

Re. being resident guru, I can only walk in @Kari's shadow as Grasshopper to the Master.
Hi there
I'm working currently at the moment in finding out why latest version of (std- 24H2 non insider version) of Hyper-V seems to prevent communication FROM GUEST to HOST (but OK with communication TO GUEST from HOST) using exactly the same (not any change) in either HOST hardware), external switch and also with no any updates of any sort on the Guest (Linux) system. Even ping from GUEST to HOST doesn't work --gives me ping from lan.vmname xxx.xxx.xxx.xxx which is correct but then just freezes and anything like filezilla / ssh etc to host doesn't work either --but 100% the other way around. All OK on other computers on LAN -- so I suspect (as per usual) it's a Windows Networking problem.

On insider builds W11 build 26257.5000 - even though expiry date is 15 / sep is the last insider build I have and that works OK too -- I really don't though want to mess around with these insider builds unless I really have to.

I'll see what happens when updating this build though.

cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Back
Top Bottom