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 :
se connecter en root :
user : root:root
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Suy
pacman -S nano git
editer le fichier pacman.conf et modifier :
Color
ParallelDownloads = 8
Modifier la langue :
nano /etc/locale.gen
locale-gen
echo “LANG=fr_FR.UTF-8” >> /etc/locale.conf
Installation de endeavouros :
git clone https://github.com/endeavouros-arm/install-script.git
cd install-script
chmod 777 endeavour-ARM-install-V2.6.sh
./endeavour-ARM-install-V2.6.sh
nano run.sh
==== ajouter ceci ====
sudo /opt/homebrew/Cellar/qemu/6.2.0_1/bin/qemu-system-aarch64 \
-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 intel-hda -device hda-output \
-device qemu-xhci \
-device usb-kbd \
-device virtio-mouse-pci \
-device virtio-tablet-pci \
-object cryptodev-backend-builtin,id=cryptodev0 \
-device virtio-crypto-pci,id=crypto0,cryptodev=cryptodev0 \
-display cocoa,show-cursor=on \
-device virtio-gpu-pci
======================
chmod +x run.sh
Pas de commentaires