Page 1 of 1

[Solved] Creating a UEFI dual boot on single virtual disk

Posted: 30. Dec 2017, 01:09
by Cknight
Hello, I've had trouble finding anything on the topic so I thought I'd ask here.
I'm trying to test a configuration with Windows 10 and Arch Linux on the same hard drive and wanted to try it on a virtual machine first.
The reason it has to be dual boot is because I am going to be using the Windows boot loader to point to the Grub boot loader, and the reason it has to be UEFI is because I am going to be messing with the EFI partition and that is what will be doing on real hardware later.

Will Virtual box be up to the task? I know UEFI features are still somewhat experimental. Any recommended configurations I should make (like the kind of Disk image file to use)?
If Hyper-V g2, VMware Viewer, or some other product is better suited to this kind of task, I'd be happy to receive a recommendation too.

Re: Creating a UEFI dual boot virtual disk

Posted: 30. Dec 2017, 10:11
by mpack
I don't see why any of that would present a problem. If you have a clear plan for how you're going to achieve that boot then I'd suggest there's no harm in you trying it. You should avoid activating Windows 10 until you're absolutely sure you're done fiddling with the VM - because changing an important hardware component after activation can present problems.

Re: Creating a UEFI dual boot virtual disk

Posted: 1. Jan 2018, 18:39
by Cknight
Hey thanks for the response, I'll reply to this thread again if anything is different from the actual installation when I eventually get around to it.

Re: Creating a UEFI dual boot virtual disk

Posted: 20. Jan 2018, 20:42
by Cknight
Everything went great! I was able to dual boot on both Virtual box and my real desktop with only two things I think need to be addressed, which I'll just list here in the case anyone who finds this from a Google search or something like that in the future:

1) The first time you boot in VirtualBox you will be greeted with an EFI shell which I had never seen before.
It lists your devices, I wanted to boot a Windows 10 install disk so I would type

Code: Select all

fs0
and hit enter, assuming this is your cd drive

Code: Select all

\EFI\Boot\Bootx64.efi
and enter to boot from the disk.

2) Virtual box is maybe a little less flexible in where it boots from than some BIOS's. I'd recommend reading this little excerpt on booting UEFI from the Arch wiki if you are having issues, even if it isn't arch you are running.
https://wiki.archlinux.org/index.php/Vi ... n_EFI_mode

Re: Creating a UEFI dual boot on single virtual disk

Posted: 21. Jan 2018, 16:06
by mpack
Thanks for reporting back. I'll mark the topic as solved.