This guide details my experience trying to run my dualbooted Windows install as a VirtualBox guest under a Linux host. This procedure was tested with Windows 8.1 Pro and VirtualBox 5.1.2.
vmdk-raw-parts1 and follow the instructions. You'll end up executing something along the lines of2:
./vmdk-raw-parts /dev/sda ~/WindowsVM 1 2 3 4if your Windows partition is
/dev/sda3, and various recovery partitions are 1, 2, and 4. You now have a directory with a
.vmdkfile and some other important files that direct VirtualBox to your physical Windows partition.
.vmdkyou just created. Important settings are:
amhill's guide as linked below in the References section.
virtio-winISO from Fedora3. Pop the ISO in the virtual CD drive, open Device Manager, find the Ethernet Controller under Other Devices, right click Update Drivers, browse locally, and point towards the CD (the checkbox "including subdirectories" should be true). If all goes well, Windows will prompt whether you want to install the "Red Hat VirtIO Ethernet Adapter." Accept and you're on your way!
1 I had to use
vmdk-raw-parts since VirtualBox's builtin
createrawvmdk does not support physical GPT partition schemes at this time. If your drive uses MBR instead of GPT, feel free to use
createrawvmdk (as detailed in
amhill's guide) instead. ⇑
2 If you get permission errors, you may need to
chmod the correct device files in
/dev as detailed in
amhill's guide and add yourself to the
disk group. ⇑