Home | Blog

Linux, macOS, and Windows running simultaneously on a 1st generation Core i5 and 8GB RAM

Published by Luke M on

Wow. 3rd on Hacker News and 11000 views! Thanks!

macOS Mojave, Windows 10, and Arch Linux with XFCE showing their About dialogs

This is my main computer, a Thinkpad T410 with a 1st generation Intel Core i5 and 8 GB of RAM. It runs Arch Linux with Xfce.

The macOS Mojave (chosen over Catalina or Big Sur for it’s lower resource usage) VM works surprisingly well with 3GB RAM, but even when the Windows VM was allocated that much, it was very sluggish.

The Windows installation was very easy. All you have to do is download the ISO from Microsoft, import into Boxes and fill in your username, password, and product key in the “Express Installation” feature of Gnome Boxes.

For macOS, you can use the excellent scripts by foxlet to automatically download the image from Apple and provision a QEMU virtual machine. The installation will take some time. Once you have installed macOS using the onscreen menus, you need to select the fourth option in the Clover Bootloader, Boot macOS from x. The first option will boot the install media again. I didn’t take screenshots of the install process. (This is not technically allowed per the EULA, but as long as you’re not making money, you should be fine.)

Neofetch on all systems Neofetch

This website on all systems My Website

htop on the physical machine htop on the physical machine

Detailed installation

macOS

Prerequisites:

This guide is basically copied from the GitHub. Thanks @foxlet!

  1. Install a Linux distribution of your choice.
  2. Install the required software.
    • qemu
    • python3
    • pip
    • enable kvm modules

    Here are some examples:

     sudo apt-get install qemu-system qemu-utils python3 python3-pip  # for Ubuntu,  Debian, Mint, and PopOS.
     sudo pacman -S qemu python python-pip python-wheel  # for Arch.
     sudo xbps-install -Su qemu python3 python3-pip   # for Void Linux.
     sudo zypper in qemu-tools qemu-kvm qemu-x86 qemu-audio-pa python3-pip  # for openSUSE Tumbleweed
     sudo dnf install qemu qemu-img python3 python3-pip # for Fedora
     sudo emerge -a qemu python:3.4 pip # for Gentoo
    
  3. Clone the install tools

     git clone https://github.com/foxlet/macOS-Simple-KVM.git
     cd macOS-Simple-KVM.git
    
  4. Download the installation media

     chmod +x jumpstart.sh
     ./jumpstart.sh
    

    This will take a while. The default will use Catalina, but you can add --high-sierra --mojave or --catalina to change the version. Big Sur can be done by using this branch.

  5. Create a virtual hard disk. You can change the name and size.
     qemu-img create -f qcow2 macOS.qcow2 64G
    

    Then, add the following it to the end of basic.sh

     -drive id=SystemDisk,if=none,file=macOS.qcow2 \
     -device ide-hd,bus=sata.4,drive=SystemDisk \
    
  6. Run basic.sh to start the VM
     ./basic.sh
    

    Clover bootloader

  7. Press Enter when this screen appears.

    Mac logo

    Aah, the Apple Logo.

  8. Select Disk utility once the menu loads. Select Erase. Select QEMU HARDDISK Media, change Untitled to macOS, and erase. image of above step

    Click on Disk Utility on the top panel, and quit it. Then select Reinstall macOS. utils

    Follow the on-screen prompts to install macOS. The boot will take a while, and installation might take up to an hour. See the docs for more information. When you restart, select Boot macOS from macOS on the clover menu to boot into your installed system!

Windows

  1. Install Gnome Boxes
     sudo apt-get install gnome-boxes  # for Ubuntu, Debian, Mint, and PopOS.
     sudo pacman -S gnome-boxes  # for Arch.
     sudo xbps-install -Su gnome-boxes   # for Void Linux.
     sudo zypper in gnome-boxes  # for openSUSE Tumbleweed
     sudo dnf install gnome-boxes # for Fedora
     sudo emerge -a gnome-boxes # for Gentoo
    
  2. download the ISO from Microsoft.
  3. Obtain a Product Key
  4. Click the + in the top left corner, and select the iso file.
  5. Toggle Express Install, and fill in your username, password, and product key. express

  6. Change the resource allocation if needed resource

  7. Wait inst

  8. Get bombarded by ads telling you how great Edge is edge More privacy? Really?

:wq

Webmentions and Comments