Passer au contenu principal

Qemu for Mac M1

 

installation de Qemu :

brew install knazarov/qemu-virgl/qemu-virgl

 

Création du dossier et téléchargement de l'archive pour ArchLinux :

mkdir archlinuxKDE                                                                                                                       
cd archlinuxKDE
curl -L https://github.com/m-bers/Arch-Linux-Arm-M1/releases/latest/download/archlinux.tar.gz | tar xzf -

 

Lancement de la machine Qemu pour l'installation :

sudo qemu-system-aarch64 -L ~/bin/qemu/share/qemu \                                                                                      
-smp 8 \
-machine virt,accel=hvf,highmem=off \
-cpu cortex-a72 -m 4096 \
-drive "if=pflash,media=disk,id=drive0,file=flash0.img,cache=writethrough,format=raw" \
-drive "if=pflash,media=disk,id=drive1,file=flash1.img,cache=writethrough,format=raw" \
-drive "if=virtio,media=disk,id=drive2,file=archlinux.qcow2,cache=writethrough,format=qcow2" \
-device virtio-net-pci,netdev=net \
-netdev user,id=net,ipv6=off \
-device virtio-rng-device -device virtio-balloon-device -device virtio-keyboard-device \
-device virtio-mouse-device -device virtio-serial-device -device virtio-tablet-device \
-object cryptodev-backend-builtin,id=cryptodev0 \
-device virtio-crypto-pci,id=crypto0,cryptodev=cryptodev0 \
-nographic

Dans la machine virtuelle :

user : root:root

pacman-key --init
pacman-key --populate archlinuxarm
pacman -Suy
pacman -S nano git