在Apple Silicon(M1)Mac上安装基于x86的PintOS

Problems

I’m now currently using MacBook Pro 14-inch 2021 which uses Apple Silicon (based on Aarch64).

While the .ovi image given by our professor is based on x86_64.

VMWare Fusion 13 can run on Apple Silicon Mac, but can not run x86 virtual machines.

Oracle VirtualBox 7 beta can run also run on Apple Silicon Mac (Using rosetta), but can not create x86 virtual machines.

After several hours trying, I finally find a proper way to solve this problem.

Preparation

  • Install UTM for Mac (actually it is also available for iOS and iPadOS) [LINK]
  • PintOS.ova / PintOS.qcow2 (EXCELLENT!!! 👐)

Step1 Convert .ova into .qcow2

Run in Terminal:

brew install qemu

tar -xvf OS.ova

qemu-img convert -O qcow2 Ubuntu-disk001.vmdk PintOS.qcow2

Now, we only need the PintOS.qcow2 file, everything else from .ova is not needed any more.

Step2 Create the Machine

  • Open UTM.
    请添加图片描述
  • Choose ‘Create a New Virtual Machine’
    请添加图片描述
  • Choose ‘Emulate’
    请添加图片描述
  • Choose ‘Other’ and pick ‘Skip ISO boot’
    请添加图片描述
  • Deploy as much Memory and CPU Cores as you can. Reference: my MacBook is 8 Cores + 16 GB.
    请添加图片描述
  • For storage, I guess for learning purpose, 64GB is enough.
    请添加图片描述
  • Choose a shared folder if needed.
    请添加图片描述
  • Name your machine and done.
  • Right click your machine and edit.
    请添加图片描述
    • System - ✅Force Multicore
    • QEMU - ❌UEFI Boot
    • Display - ✅Retina Display
    • New Drive - NVMe - Choose the PintOS.qcow2 file.
    • Save settings.

Step3 Boot the Machine

  • Run and press <ESC> immediately.
    请添加图片描述
  • Press 2 to choose NVMe option.
  • Pray for the success!!!

Done!

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值