Creating Debian 11(x86) on Mac book M1(arm64) With QEMU/UTM

Creating Debian 11(x86) on Mac book M1(arm64) With QEMU/UTM

- 3 mins

Tabel of Contents

Introduction?

In this guide, we will walk you through the process of creating a Debian 11 x86 (64-bit) virtual machine on a Macbook M1 ARM64 using QEMU and UTM. This allows you to run x86-based software and explore the Debian 11 environment on your ARM-based Macbook.

Prerequisites:

Before we begin, ensure that you have the following:


Install UTM ?

Step 1: Installing UTM UTM is an iOS virtualization app that leverages QEMU (Quick Emulator) as its core technology. QEMU is an open-source emulator and virtualization tool that allows UTM to provide hardware-level emulation for running different operating systems on iOS devices. With QEMU support, UTM can offer a wide range of compatibility and performance optimizations, making it a powerful tool for virtualization on iOS. Users can take advantage of QEMU’s flexibility and features within the UTM app to create and manage virtual machines effectively. To start, install UTM on your Macbook M1. UTM is a virtual machine app that supports various architectures, including x86 and ARM. Visit the UTM website and follow the installation instructions provided for your Macbook.

You can install UTM via https://mac.getutm.app/ , UTM has a GUI that you can see your VMs and YOu can use predefined VM template. UTM employs Apple’s Hypervisor virtualization framework to run ARM64 operating systems on Apple Silicon at near native speeds. On Intel Macs, x86/x64 operating system can be virtualized. In addition, lower performance emulation is available to run x86/x64 on Apple Silicon as well as ARM64 on Intel. For developers and enthusiasts, there are dozens of other emulated processors as well including: ARM32, MIPS, PPC, and RISC-V. Your Mac can now truly run anything. Under the hood of UTM is QEMU, a decades old, free and open source emulation software that is widely used and actively maintained. While QEMU is powerful, it can be difficult to set up and configure with its plethora of command line options and flags. UTM is designed to give users the flexibility of QEMU without the steep learning curve that comes with it.

Downloading Debian 11 ISO

You can use different Linux distrubitions (Ubuntu, Kali Linux, RHEL, CentOS). I wanted to virtualize debian 11 so I downloaded Debian 11 ISO. You can dowload the ISO file from offical Debian https://www.debian.org/download

Installing QEMU

Now that we have brew on the system we can proceed to the QEMU installation. To do that we use a simple command:

 brew install qemu

When the installation is finished, we can run the following command to test if the installation was successful:

 qemu-system-x86_64 --version

Creating a Virtual Machine in UTM

You can use UTM UI and It will use QEMU You don’t need to use QEMU commands with that way. Steps of creating VM below.

  1. Create VM → Emulate utm1

  2. Select “Linux”

  3. Browse for the Linux installation ISO

  4. Configure system settings. utm2

  5. After you’re done, go into the settings of the VM again: go to System and check Force Multicore: ✅

Installing Debian 11

Thanks for reading,

Guneycan Sanli.


Guneycan Sanli

Guneycan Sanli

A person who like learning, music, travelling and sports.

comments powered by Disqus