How to install amd64/x86 Ubuntu on MacBook pro with Silicon chip

Stanley Meng
1 min readFeb 27, 2024

My Mackbook pro is M1. Never test it in M2 or M3.

  1. Download Ubuntu server image AMD64 iso. Here, I saved it as ubuntu-x86.iso
  2. Install qemu: brew install qemu
  3. Create an image, the size is up to you: qemu-img create -f qcow2 ubuntu-x86.qcow2 80G
  4. Install Ubuntu 22.04 x86 server. I forgot the link, but it has a bug that causes you can only use 3000 KB maximum for the RAM, not sure it’s fixed or not: qemu-system-x86_64 -machine q35 -m 3000 -smp cores=2 -cdrom ubuntu-x86.iso -drive file=ubuntu-x86.qcow2,format=qcow2 -device usb-ehci -device usb-kbd -device usb-mouse -usb -net nic -net user -display default
    A window will pop up with the installation wizard.
  5. Once the installation is done, you can start the Ubuntu like this: qemu-system-x86_64 -machine q35 -m 3000 -smp cores=2 -drive file=ubuntu-x86.qcow2,format=qcow2 -device usb-ehci -device usb-kbd -device usb-mouse -usb -net nic -net user,hostfwd=tcp::2222-:22 -display default

Now you can access the Ubuntu x86 via the console or via SSH (ssh -p 2222 <username>@localhost )

Have fun ~

--

--