Page 1 of 1

Cannot boot from Windws 7 install DVD in UEFI

Posted: 11. Apr 2017, 22:52
by Faxpl Enus
I have to boot Windows 7 installation media in UEFI to repair a Windows 7 boot installed on a virtual HDD. If I boot from the DVD without UEFI, the Windows repair environment complains it's not compatible with this version of Windows. So UEFI boot of Windows 7 installation media is my only option.

Windows installer starts ok, then just hangs demonstrating “Starting Windows” forever.

The last lines in the log file are:

Code: Select all

00:00:21.447132 EFI: VBoxDbg> loadimage64 'o:/w7rtm.obj.amd64fre/minkernel/boot/environ/app/cdboot/efi/objfre/amd64/cdboot.efi' 0x10000000 LB 0xa1000
00:00:28.278936 xHCI: USB Suspended
00:00:28.434514 RTC: period=0x200 (512) 64 Hz
00:00:28.587588 GIM: HyperV: Guest OS reported ID 0x1040601011db1
00:00:28.587605 GIM: HyperV: Open-source=false Vendor=0x1 OS=0x4 (Windows NT or derivative) Major=6 Minor=1 ServicePack=1 Build=7601
00:00:28.587630 GIM: HyperV: Enabled hypercall page at 0x000000001326d000
00:00:28.587649 GIM: HyperV: Enabled TSC page at 0x000000001326e000 - u64TscScale=0x106c05300000000 u64TscKHz=0x260f0e (2 494 222) Seq=1
00:00:28.587691 TM: Switching TSC mode from 'VirtTscEmulated' to 'RealTscOffset'

Re: Cannot boot from Windws 7 install DVD in UEFI

Posted: 12. Apr 2017, 09:27
by socratis
From: viewtopic.php?f=2&t=82479#p389486
Summary: not supported.
socratis wrote:From ticket #7702 UEFI support for Windows guests:
On [url=https://www.virtualbox.org/ticket/7702#comment:13]2014-11-25[/url] frank wrote:Windows 7 guests depend on proper int10 support and are not supported. We might change this eventually but this has low priority.
On [url=https://www.virtualbox.org/ticket/7702#comment:18]2017-02-24[/url] frank wrote:To make it clear: Windows 8.1 and later are able to boot in EFI mode with VirtualBox. As written in comment:13, Windows 7 has different requirements but the priority of implementing them is low because Windows 7 is not that brand new anymore.
And on 2017-03-28 (two days ago), the following change was made in the documentation (r66268). The manual (ch. 3.13 Alternative firmware (EFI)) changed from:
While Mac OS X and Linux guests are known to work fine, Windows guests are currently unable to boot with the VirtualBox EFI implementation.
to:
Mac OS X, Linux and newer Windows guests are known to work fine. Windows 7 guests are unable to boot with the VirtualBox EFI implementation.
The changes in the manual will appear in the next VirtualBox release (or in the test builds as of now). I'm not sure how many people will actually read it though ;)

Re: Cannot boot from Windws 7 install DVD in UEFI

Posted: 12. Apr 2017, 17:33
by Faxpl Enus
Thanks! For whoever experiences a similar problem, I managed to boot VirtualBox from a gparted live CD, used gdisk to convert GPT partition table to MBR, removed reserved and boot partitions, then booted from the Windows 7 installation DVD without EFI, there in the recovery environment I restored MBR, the boot folder and the BCD. Everything works like charm now.

Re: Cannot boot from Windws 7 install DVD in UEFI

Posted: 23. Feb 2018, 21:39
by Rootman
Just curious, is Win 7 64 UEFI support even on the horizon any more?

I've kept VM versions of my companies Windows PCs from our Dell supplied images around just to have a quick way and test stuff. We're almost totally out of 32 bit but still have a lot of Windows 7 64 bit EFI systems out there. Unfortunately the disk images all produce UEFI bootable systems and I sometimes need to test Win 7 64 bit stuff.

Re: Cannot boot from Windws 7 install DVD in UEFI

Posted: 24. Feb 2018, 10:34
by mpack
Rootman wrote:Just curious, is Win 7 64 UEFI support even on the horizon any more?
I would doubt it. How time flies - Win7 will soon be a decade old, and I expect few installations of it in a VM require GPT support (i.e. >2TB drive in a VM), never mind EFI. Assume a certain fraction of interested users, and consider what fraction of those will be paying customers... I don't know, but I'd bet it's a vanishingly small number, getting smaller.