directions for getting windows 10 to work with virtualbox 5.2 based on this page
- macOS Mojave 10.14
- Windows 10 x64 Enterprise
- VirtualBox 5.2.18
- VirtualBox 5.2.18 Oracle VM VirtualBox Extension Pack
- Terminal
- Boot Camp Support Software
- Requires you to remove any external hard drives before continuing
- Probably should download the Boot Camp Support Software prior to installing Windows 10 to a USB key for installation
- Boot back into macOS when you are done and confirmed all drivers are installed
- Download and install the latest version of VirtualBox
- Download and install the matching VirtualBox Oracle VM VirtualBox Extension Pack for your version of Virtualbox
In order to use your bootcamp partition with VirtualBox it will need to be unmounted first. This can be done manually from the Terminal using the following commands:
diskutil list
diskutil unmount /Volumes/BOOTCAMP <--- this is the name of the BOOTCAMP volume
sudo chmod 777 /dev/disk0s1 <--- This is the drive number of the EFI disk
sudo chmod 777 /dev/disk0s3 <--- This is the drive number of the BOOTCAMP disk
If your bootcamp volume doesn't have a name for some reason, use /Volumes/Untitled
.
To create an image that represents an entire physical hard disk (which will not contain any actual data, as this will all be stored on the physical BOOTCAMP partition). You will need the following information from diskutil list
:
/dev/disk0 (internal, physical):
/dev/disk0s1
- the drive number of the EFI disk/dev/disk0s3
- the drive number of the BOOTCAMP disk
mkdir ~/virtualbox
cd ~/virtualbox
sudo vboxmanage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename win10raw.vmdk -partitions 1,3
sudo chown your_username_here *.vmdk
Please note that vboxmanage internalcommands
is an internal tool and is completely unsupported and will change in compatible ways without warning.
This command will create an image that will reference the EFI and BOOTCAMP partitions on our internal hard drive. If this command fails, then you may need to disable System Integrity Protection. This requires you to boot into Recovery Mode and execute the following command csrutil disable
:
-bash-3.2# csrutil status
System Integrity Protection status: enabled.
-bash-3.2# csrutil disable
Successfully disabled System Integrity Protection. Please restart the machine for the changes to take effect.
Documentation on configuring System Integrity Protection can be found here and here.
- In the Finder menu, go to Machine --> New.
- Click Expert Mode to continue.
- Name:
Boot Camp
- Type:
Microsoft Windows
- Version:
Windows 10 (64-bit)
- Memory Size:
4096 MB
- Use an existing virtual hard disk file:
~/virtualbox/win10raw.vmdk
Click Create. In the main application window, select theBoot Camp
VM and click Settings.
- Boot Order: Only check
Hard Disk
andOptical
and moveHard Disk
beforeOptical
- Enable EFI (special OSes only): Checked
- Processors:
4
- Execution Cap:
100%
- Enable PAE/NX:
Checked
- Controller: SATA: Check the
Use Host I/O Cache
option
Click OK to save these settings.
You should now be able to run Windows 10 from your BOOTCAMP partition!
Remember that you have to complete the steps under Unmount the BOOTCAMP partition upon every restart.
There may be a way to prevent the partition from mounting upon boot using the vifs
command
as detailed on this page
Just tried this, Catalina 10.15.6 working great!