Install macOS on Virtualbox in Windows 10 PC [ Mojave ]

Want to install macOS on Virtualbox?

If yes, then this post is definitely for you.

In the previous posts, I have already talked about installing linux ubuntu on Virtualbox & other operating systems also.

Everyone knows Mac OS is one of the most premium Operating systems.

And everyone wants to use it but it’s a little expensive.

And that’s why people try to find out different ways to install Mac OS on their PC.

Two years back I also installed Mac OS High Sierra Hackintosh on my PC.

And now I am installing the Mojave version.

So in this post, I will show you how to install macOS Mojave on Virtualbox on Windows PC.

Let’s see How it works.

Also Read: Chromebook ChromeOS on Virtual machines.

How to Install macOS on Virtualbox in Windows 10 PC [ Mojave ]

But before we begin.

Please make sure that you have downloaded the Oracle Virtualbox and the macOS Mojave ISO file from the given link.

Virtualbox: Download link
macOS Mojave Virtualbox image: Download link

Also Read:- How to fix or bypass Google Drive download limit.

I know you might be thinking of creating your own iso file but it’s a little time-consuming.

And that’s why I have already given the link for the Mojave image file.

Now I hope you have already downloaded all the given files & installed Virtualbox successfully.

Note:- Please check the VT-x or AMD-V virtualization feature must be enabled in your BIOS settings.

So Let’s get started & follow this step by step guide.

Also, check out how to install Windows 11 on Virtualbox.

1. Open & Install Virtualbox Extension Pack

Now Open Virtualbox and install the Extension Pack from the given link. Download link

Install Virtualbox Extension Pack

Now that you have installed the extension pack, it’s time to create a virtual machine.

2. Create a macOS Mojave Virtual Machine

Open Virtualbox and Click on the “New” button to create a macOS virtual machine.

Create a Virtual Machine

Now type the name as “macOS Mojave“, type of OS as Mac OS X and the version of OS as Mac OS X (64-bit). And then Click on Next.

macOS Mojave

3. Memory Size (RAM)

Now select the amount of RAM to be allocated to the virtual machine. And to run macOS on Virtualbox, the minimum recommended RAM size is 2048Mb.

Virtual RAM Size

4. Setup a Virtual Hard Disk

Now the next step is to create a virtual disk for this machine. But here instead of creating a new virtual hard disk, we will import the macOS Mojave 10.14 disk image file which we have downloaded earlier. So Click on Use an existing virtual hard disk file.

macOS Mojave 10.14 disk image file

And then click on the Folder icon and browse to the image file.

Browse Folder

Now select the image file and Click Open.

Open Image File

And you can see that you have successfully created the macOS virtual machine and here comes the configuration part.

Virtual Machine Created

5. Configuring macOS Virtual Machine

Note:- All these settings are mandatory to run and install macOS Mojave on Virtualbox on Windows PC properly.

Now Click on Settings.

macOS Settings

Now in the Next screen Go to System, then Click on Motherboard Tab and Select the Boot Order as Optical and Hard disk. And in the Extended Features Enable I/O APICEnable EFI (Special OSes only) and Hardware Clock in UTC Time. Click OK.

Virtualbox System

Next Go to Processor Tab. And select the minimum processor as 2 and Enable PAE/NX in the extended features. Click OK.

Processor Tab

Further, Go to Display Settings and change the Video Memory to 128 MB or the maximum you can have.

Display Settings

Next, Go to the Storage tab and Enable the Use Host I/O Cache and Click OK.

Storage tab

Now, Go to the USB tab and Enable the USB 3.0 (xHCI) Controller and Click OK.

Enable USB Mouse 3.0

Note:- After installing it successfully, if you face a mouse & keyword lagging issue then please change the USB controller settings from USB 3.0 to USB 2.0 controller & then apply.

6. Modify Virtualbox Virtual Machine using Command Prompt

Note:- Before running the Command Prompt, please make sure that you have Closed the Virtualbox & it is not in the running state.

Also, I would recommend you to Restart or Reboot your pc before using these command-line codes.

Now add the following commands to Virtualbox Virtual Machine using Command Prompt (CMD). And to Open Command Prompt, click on Search and type “CMD” and Right Click on it and select Run as Administrator.

Command Prompt

Now run each command one by one in the command prompt. And before running each command, please make sure to change the “Your VM Name” part with the name of the virtual machine that you have created earlier.

cd “C:\Program Files\Oracle\VirtualBox\”

VBoxManage.exe modifyvm “Your VM Name” cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1

Like I will replace “Your VM Name” with “macOS Mojave” in all the codes.

It will be easier if you first copy all the codes to a notepad file & edit them and then paste them into the CMD.

Adding Commands to Virtualbox Machine

And you are done with the configuration part. Now comes the major part to install the macOS Mojave on Virtualbox Virtual machine.

Install macOS Mojave on Virtualbox PC

Note:- All this installation process of mac on Virtualbox works the same as on the original MacBook. This means that this process is also applicable to Mac Users installing the Mac operating system.

So Let’s get started & install it properly.

1. Start & Run macOS Mojave

Now Open Virtualbox & select the virtual machine and then Click on Start.

Run macOS Mojave

Now, wait for a few minutes while the virtual machine boots up and start loading the installer or the installation files.

2. Select Country & Keyboard Layout

Now select the United States as a country & Click on Continue.

Select Country

And Keyboard layout as the US and Click on Continue.

macOS Keyboard Layout

3. Data and Privacy

Now in the next screen, it will ask for the Data and Privacy settings which are by default. So Click on Continue.

Data and Privacy settings

4. Transfer information to this Mac

On this screen, it will ask if you want to transfer any sort of information from any Mac or Windows PC. So, select Don’t transfer any information now and Click on Continue.

Transfer Information from Windows

5. Sign in with Your Apple ID

Now it will ask to sign in with your Apple ID. If you already have the apple ID then you can enter or you can simply on Set up Later. And Continue.

Sign in with Your Apple ID

6. Term and Conditions

Now the Term and conditions part, So simply Click on Agree.

Term and Conditions

7. Create a Computer Account

Its time to create a computer account that is similar to the user account created in Windows PC. So, fill out all the details like Full name, Account name and Password. And Click on Continue.

Create a Computer Account

8. Express Set-Up

Next is Express Set Up where you can also customize settings or you can simply click on Continue.

Express Set Up

9. Choose your MacOS Look

Since macOS Mojave comes in two different looks, one is the Light look which is similar to normal and the other one is the Dark look. You may choose according to your Preference & Click on Continue.

Choose MacOS Look

10. Installed Mac OS Mojave on Virtualbox

Installed Mac OS Mojave on Virtualbox

And Done! You have successfully installed the macOS Mojave 10.14 on Virtualbox virtual machine in Windows 10 PC.

Some FAQs

Can you install Mac on a virtual machine?

Yes, you can easily install MAC operating system on a virtual machine with the help of virtualization software like Virtualbox, VMware, and QEMU.

How install macOS Mojave on Windows VirtualBox?

Installing macOS Mojave on Virtualbox is very simple, just follow these instructions properly.
1. Open Virtualbox
2. Create macOS Virtual machine
3. Configuring the Mojave VM
4. Modify Commands to install on Windows
5. Run VM and Setup it up accordingly.

How can I install macOS on Windows PC?

If you want to install macOS directly on a Windows PC then you need a Hackintosh and your system must be compatible with 64-bit and has at least 50Gb free space.

How do I run Catalina on VirtualBox?

Running Catalina on Virtualbox is almost similar to the other operating systems, just need to follow the correct steps and be done.

That’s it for now…


So that’s how you can easily install a Mac OS on Windows 10 PC using Virtual Box Virtual Machine. And you can also follow the same method for other different OSes like Catalina & High Sierra.

Stay tuned for the next post on install mac os on VMware.

Feel free to share your thoughts and also tell us if you know any better way to Install macOS on Virtualbox in Windows 10 PC [ Mojave ].

If you liked this post, Don’t forget to share this awesome post with your friends.

25 thoughts on “Install macOS on Virtualbox in Windows 10 PC [ Mojave ]”

  1. So I got to the part where I load the mac VM, and it doesn’t load. It looks like I get the error

    BdsDxe: failed to load Boot0001 “UEFI VBOX CD-ROM VB1-1a2b3c4d” from PciRoot (0x0)/Pci (0x1F,0x2)/Sata (0x1,0xFFFF, 0x0): Not Found

    It then goes through a bunch of start and end processes, and ends with ‘End RandomSeed’

    • Hi AI,

      Can you please tell me on which part you are getting these errors? Because I have thoroughly checked and installed the same on my Virtualbox PC. And please make sure to close the Virtualbox VM manager before running the commands in the command prompt.


      • It happens to me too. When I start the VM after doing all the steps it makes a few thinks, then it says root device uuid is … and stops after End RandomSeed. I had it running for over an hour yesterday but nothing happened :/

  2. On the line : VBoxManage.exe modifyvm “Your VM Name” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff you missed a –

    should say

    VBoxManage.exe modifyvm “Your VM Name” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

  3. Hello,
    I am struggling with applying the command, VBoxManage.exe modifyvm “Your VM Name” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
    The issue I am having is, CMD is telling me “VBoxManage.exe: error: Unknown option: -cpuidset”. Please what should I do at this point of receiving the error. I would be very grateful for a quick response to my troubles. Thanks in advance.

    • Hi Gerald,

      I think Virtualbox has stopped supporting this custom OS but you can still try using the old version of Virtualbox. Or you can try the info given by Namirred of adding a -. Maybe this also works for you.
      Figuring out this issue and will update you soon. 🙂


  4. Hi Abhay,

    I’m experiencing the same issue. The error occurs at the “Start & Run macOS Mojave” step, with the same error message as Al.

    Thanks in advance!

    • I think the new version of Virtualbox doesn’t support this custom OS. I will figure out this issue and will definitely fix it soon. Also, you can checkout the info given by Namirred above. 🙂

  5. Definitely nee to add the extra – to that command line.

    VBoxManage.exe modifyvm “MAC” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

    Once starting up my VB, it stops at “End RandomSeed” and doesn’t go any further. I waited minutes or so.

    Other than that, this tutorial is great, got me so much further than any other I have tried.

    • Hi Wade,

      Earlier it was working really fine without an extra – in the first command. I have also installed this mac version on my laptop & it was working great. I think in the version of Virtualbox, these commands are not working correctly. Will update the other working codes soon.


  6. Hi, I have a problem, when I try to use my mouse it says something about key host capture, I can’t control my mouse or keyboard it all worked but it’s just the mouse and keyboard, thanks

    • Hi Adams,

      I am glad that it all worked and you have installed the macOS on your Virtualbox. But I can see that you & some other users are still struggling with the mouse and keyword issue. And for that, you need to change your mouse settings from USB 3.0 to USB 2.0 & then apply.


  7. I know why it wasn’t working. I have an AMD CPU and if you have an AMD system, you have to add >>VBoxManage modifyvm “Your Virtual Machine Name” –cpu-profile “Intel Core i7-6700K”<< as another command. Working now. Thank you so much


Leave a Comment

Share via
Copy link
Powered by Social Snap