A virtual machine (VM) is a software emulation of a computer system that behaves like a separate physical machine. It enables the creation and execution of multiple operating systems or applications on a single physical computer. VMs provide isolation, allowing different software environments to run independently of each other.
You are using a Macbook as the development device and you want to use an application that only has a Windows or Linux version available.
My scenario is as follows; I wanted to install Power BI Client on my computer and saw that only the Windows version is available. I set out thinking that I could solve this problem by setting up a virtual machine. Unfortunately, it is very difficult to find free solutions in the macOS world, but you can solve this problem with open-source software.
The first solution that comes to mind is Oracle VM VirtualBox, but Oracle VM VirtualBox does not yet support Apple Silicon processors. (Currently in Developer Preview), My second solution is UTM. UTM is a full-featured system emulator and virtual machine host for iOS and macOS. It is based on QEMU. In short, it allows you to run Windows, Linux, and more on your Mac, iPhone, and iPad. Let's start.
Step 1: You need to install UTM. You can download UTM from the GitHub page.
Step 2: Install the required libs.
brew install cabextract wimlib cdrtools minacle/chntpw/chntpw aria2
Step 3: Download the installer creator. To do this, you need to one of the following addresses.
Once you downloaded and extracted the installer creator, you need to run
uup_download_macos.sh from Terminal to generate the ISO.
Step 4: Open the UTM and start the Windows installation.
Following steps are required for the successful installation.
Open UTM and click the “+” button to open the VM creation wizard.
- Select “Virtualize”.
- Select “Windows”.
- Make sure “Import VHDX Image” is unchecked and “Install Windows 10 or higher” is checked. Also, make sure “Install drivers and SPICE tools” is checked. Press “Browse” and select the ISO you built in Step 3.
- Pick the amount of RAM and CPU cores you wish to give access to the VM. Press “Next” to continue.
- Specify the maximum amount of drive space to allocate. Press “Next” to continue.
- If you have a directory you want to mount in the VM, you can select it here. Alternatively, you can skip this and select the directory later from the VM window’s toolbar. The shared directory will be available after installing SPICE tools (see below). Press “Next” to continue.
- Press “Save” to create the VM. Wait for the guest tools to finish downloading and press the Run button to start the VM.
- Follow the Windows installer. If you have issues with the mouse, press the mouse capture button in the toolbar to send mouse input directly. Press Control+Option together to exit mouse capture mode. Sometimes, due to driver issues, you can enter and exit capture mode and the mouse cursor works normally again.
In this article, we talked about how to install Windows with the help of a virtual machine on the MacOS operating system. I hope it was useful.
See you in the next article. 👻