Booting Windows 8 EFI Partition with Parallels 8

How I got it to work, was i made a small 200MB, virtual hdd, to use as the EFI boot loader.

In the Boot Order tab in Hardware, I moved the new Hard Disk to the top position, and enabled "Use EFI Boot"

Next I made sure my windows 8 installation media was plugged into my mac, in this case a bootable usb installer, but I'm sure a dvd/or mounted iso in parallels would work just as well.

I booted the machine, went ahead and skipped the auto configuration, for manual config.
if it didn't automatically boot into the windows installer. You at this point should see an command line like interface(this is the EFI Terminal), go ahead and type exit. select device manager, than select you installation media USB or DVD will be in the device name depending on the media your using (make sure you've mounted the usb device in parallels, usb icon at bottom of the window).

In the windows installer don't install windows. click repair computer.
click advanced options. and than command prompt.

DISCLAIMER: I take no responsibility for loss of data for using the following commands incorrectly.

while in command prompt do the following commands. "3 dashes indicate a comment that shouldn't be entered"

diskpart
list disk ---NOTE this lists the "disks" the parallels has access to.
select disk 1 ---WARNING make sure the disk number here is the 200MB virtual disk you created earlier.
clean
convert gpt
create partition efi size=200
format fs=fat32 quick label=EFI
select partition 1
assign letter=S
exit

C: ---this is assuming you have had windows installed and booted previously, drive letter could be different.
bcdboot C:\Windows /l en-us /s S: /f UEFI ---ditto here.

now go ahead and exit out of the command prompt, and shut down the virtual machine.
reboot the VM, and than you should now boot into windows 8.
You might have to "exit" out of the EFI terminal again, and choose a device to boot from again, but after that it should remember and continue booting properly.

Note. I had to re-activate windows 8. I ended up doing the phone activation, as it was telling me I've already used my maximum activations. the phone activation's worked with no problems though.

A few notes:
Native EFI booted windows 8 still works.
Sound works when in windows 8 VM.
Does not fix sound when booted natively in EFI.

Can you explain what to do with the vhd and where should I place it?
 
Can you explain what to do with the vhd and where should I place it?

I struggled all day to get Parallels to use the bootcamp partition but finally got it to work following WillFM advice. I am using Windows 8 x64 on a 2013 Macbook Air 13" with OS X 10.8.4 and Parallels 8. I already got Boot Camp to partition and install a working version of Windows 8, the latter part with its own slew of other problems!

I'll just make a small parentheses here, highlights in bold, for posterity and for whoever encounters said slew of problems during Boot Camp installation with the same combination of OS X 18.4 and Windows 8 x64. Skip the following block of text if you already have Windows 8 working under Boot Camp.

Indeed, before I could even begin to consider using my bootcamp installation inside parallels, the boot camp assistant itself, for some reasons or another, kept failing to create a bootable USB flash drive using a windows 8 iso. My having a macbook air, this is the way to go short of using an external superdrive, which I don't have. Several people complained about the exact same error on apple forums with no working solution to be found, something nondescript and stubborn like "Your bootable USB drive could not be created", period. Some people get this error, some people don't, nobody seems to know why. So what I did was to create a x64 Windows 8 USB installation drive using microsoft's own Windows7-USB-DVD-tool inside a normal parallels VM of windows 8 x64. If you want an x64 installation, use a 64-bit installation of windows 7 or 8 to create the dvd/usb installation drive. Similarly for a x86/32-bit installation. 15-20 minutes later I had said bootable USB installation drive, no problem there. Now the catch is that Windows7-USB-DVD-tool creates a NTFS USB installation drive rather than a fat32 one like bootcamp. Unfortunately, when you boot the USB Windows 8 installation drive using apple's boot manager (holding alt at boot), you will not be booting using the installation drive's own EFI/UEFI bootloader but indeed apple's own manager/old version of UEFI/whatever, I am not sure. What is sure though is that it will lead to the next problem, namely that when you get to select the partition inside windows 8 setup, the setup will refuse to install it on the GPT partition that the Boot Camp assistant created earlier. Apparently you need to boot using (the correct?recent?working?) EFI/UEFI to install windows 8 on a GPT partition. Windows7-USB-DVD-tool put a working EFI/UEFI bootloader on the USB Windows 8 installation drive allright, so in theory one could use another EFI boot load other than apple's. I used rEFInd. It's easy to install (as short as sudo ./install.sh) and it puts itself inside /EFI on your OSX partition. Pretty nonintrusive.I then installed the shell.efi component found on rEFInd's website to be able to access the EFI shell at boot time and proceeded to try and get it to load the EFI bootloader found on the USB Windows 8 installation drive, but remember this guy is NTFS formatted, and rEFInd only comes by default with drivers for reiserFS, ext3 and ext4, fat, HFS+ and some other, but not NTFS, so you need a NTFS driver for rEFInd, which you can get from inside the 64-bit Clover EFI tools package (Contents/Resources/EFI/CLOVER/drivers64/NTFS.efi). I put NTFS.efi in /EFI/refind/drivers_x64 and reboot again, enter the shell, and typed
  • load ntfs.efi (or wherever it is, you might have to change drive first to your OS X partition using fs0: and then "cd \EFI\refind" and "ls" around to get to it)
  • map -r
  • blkX: (change drive to the USB Windows 8 installation drive, so X is its partition number, mine was 5 or 6, you'll have to search or inspect the map list)
  • load \EFI\BOOT\BOOTX64.EFI
and voilà! the Windows 8 setup started and I could select the partition created by the Boot Camp assistant. The setup might ask you to reformat it to NTFS, do it, otherwise you can't proceed. Be careful not to reformat your other partitions. Evidently you're careful and you have a fresh Time Machine backup lying somewhere just in case.

Back to the matter at hand, pardon the preceding ugly block of text but I had to get it out of my system. I have a feeling that with the new macbook air out people might end up in the exact same situation as me quite soon.

The only thing missing from WillFM's post concerns the said virtual hard drive. So what I did was:

Stop the virtual machine completely to access the "Virtual Machine" -- "Configure..." menu.

Then go into the "Hardware tab" and click the little "+" at the bottom-left of the list (just over the padlock), and select "Hard Disk".

Type: New image file
Location: Leave as it is
Size: 0.2GB (200MB)

Leave "Split the disk..." unchecked, uncheck "Expanding disk", and click Ok. You should now have two HDs in the list, mine were now labelled "Hard Disk 1", which is my actual ssd on which both the OS X and Windows 8 partitions are found, and "Hard Disk 2", the 200MB virtual HD.

Now that this is done, select "Boot Order" from the list, check both "Select boot device on startup" and "Use EFI Boot", and be sure to check both hard disk 1 and 2 in the list. Then follow WillFM's post.
 
Last edited:
I struggled all day to get Parallels to use the bootcamp partition but finally got it to work following WillFM advice. I am using Windows 8 x64 on a 2013 Macbook Air 13" with OS X 10.8.4 and Parallels 8. I already got Boot Camp to partition and install a working version of Windows 8, the latter part with its own slew of other problems!

Glad I found this thread. I installed Win8x64 on the same computer using Boot Camp no problem, but can't get the virtual machine to boot. Made the 200mb partition, and can boot to my Boot Camp made USB using EFI. Why can it boot to the USB with EFI but not my Win8 partition? I'm not given the repair option using my Boot Camp made USB, and the virtual machine won't boot to my mounted Win8 ISO that made the USB. So next step I'll have to try and make a Windows installation USB another way.
 
Made my own bootable USB using my own Win8 DVD, and followed WillFM's instructions. Not sure how you figured that out, but WillFM, you're a genius. Thanks WillFM and phphphph! Everything seems great.
 
Paralles 10: This may be too late but windows 10 has a similiar issue since its not yet supported. After manually creating the vm for an exisiting bootcamp partition make sure you configure the harddrive -[selelct harddrive] then edit partition and check both Partition 1 and Partition 2.
Make sure to also check use efi boot in the boot order
 
Back
Top