Boot a Windows guest from a Linux host in VirtualBox when Windows' bootmanager is on a different drive


boss

I'm dual booting Windows and Linux, both are on different drives, but both boot managers are on the same drive (Linux is on the same drive).

I want to run an existing Windows installation through Virtualbox in Linux, following this guide : https://superuser.com/a/756731/954036

So I created a vdmk image /dev/sdaand added that image to the VirtualBox VM. After starting the virtual machine, I get the following error:

FATAL: Could not read from the boot medium! System halted.

I believe this is because the actual bootmanager for Windows is on a different drive, this is the output fdisk -l:

Disk /dev/nvme0n1: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SAMSUNG MZVLW128HEGR-000L2              
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 4FE65E84-A0C4-4173-AD7F-CE3C128F56B4

Device             Start       End   Sectors  Size Type
/dev/nvme0n1p1      2048 234883071 234881024  112G Linux filesystem
/dev/nvme0n1p2 234883072 247875583  12992512  6.2G Linux swap
/dev/nvme0n1p3 247875584 250069646   2194063    1G EFI System


Disk /dev/sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 850 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 369746B4-CA1B-47E1-84C8-237D4200861E

Device         Start       End   Sectors   Size Type
/dev/sda1       2048 634562559 634560512 302.6G Linux filesystem
/dev/sda2  634562560 976773119 342210560 163.2G Microsoft basic data

The boot files for Windows 10's boot manager and the boot manager for the Linux partition (rEFInd) are located on the EFI system partition (/dev/nvme0n1p3).

How do I let VirtualBox know where to find Windows' boot manager?

boss

I also fixed it by adding a drive with Windows Boot Manager (/dev/nvme0n1) and then enabling EFI in the VM's settings.

Related


How to copy paste from Ubuntu VirtualBox guest to Windows host?

Misha Moroshko I'm running VirtualBox 4.1.4 on a Windows 7 laptop with an Ubuntu 11.10 guest. I want to copy text from Ubuntu terminal and paste it into a file on Windows host. For some reason this doesn't work. Any ideas? Soekarno Start your VM, then install

Run command on Ubuntu guest in VirtualBox VM from Windows host

that 88 I'm writing some code and I have an idea that should work, but I don't know how to make it work. I'm running some code with Wolfram Mathematica on a Windows host, but I have to export the files to a Linux based program running in an Ubuntu Virtualbox V

How to copy paste from Ubuntu VirtualBox guest to Windows host?

Misha Moroshko I'm running VirtualBox 4.1.4 on a Windows 7 laptop with an Ubuntu 11.10 guest. I want to copy text from Ubuntu terminal and paste it into a file on Windows host. For some reason this doesn't work. Any ideas? Soekarno Start your VM, then install

VirtualBox - how to pass modem from ubuntu host to windows guest

Carlos Castellanos Is it possible to pass a USB modem that is not recognized by the host Ubuntu 15.04 to a Windows guest? , I have Windows drivers and I want to use dialup while keeping my Ubuntu host. what should I do? Can any other virtualization software he

How to copy paste from Ubuntu VirtualBox guest to Windows host?

Misha Moroshko I'm running VirtualBox 4.1.4 on a Windows 7 laptop with an Ubuntu 11.10 guest. I want to copy text from Ubuntu terminal and paste it into a file on Windows host. For some reason this doesn't work. Any ideas? Soekarno Start your VM, then install

Run command on Ubuntu guest in VirtualBox VM from Windows host

that 88 I'm writing some code and I have an idea that should work, but I don't know how to make it work. I'm running some code with Wolfram Mathematica on a Windows host, but I have to export the files to a Linux based program running in an Ubuntu Virtualbox V

VirtualBox - how to pass modem from ubuntu host to windows guest

Carlos Castellanos Is it possible to pass a USB modem that is not recognized by the host Ubuntu 15.04 to a Windows guest? , I have Windows drivers and I want to use dialup while keeping my Ubuntu host. what should I do? Can any other virtualization software he