# 在 Mac M1 Fedora Asahi Linux 上安裝 KVM 因為網路上缺少相關資料,Chatgpt 常會鬼打牆給不出正確的安裝方式。因此紀錄下這次在 M1 fedora asahi linux 安裝 KVM 的經驗。 我選擇安裝的是 debian 的 KVM ```bash sudo dnf groupinstall "virtualization" sudo systemctl enable --now libvirtd sudo usermod -aG libvirt $USER && newgrp libvirt test -e /dev/kvm && echo "KVM device exists" ``` ```bash sudo virt-install --connect qemu:///system --name deb12arm \ --memory 4096 --vcpus 4 --cpu host-passthrough \ --disk path=/var/lib/libvirt/images/deb12arm.qcow2,size=20,format=qcow2 \ --location 'http://deb.debian.org/debian/dists/stable/main/installer-arm64/' \ --extra-args 'console=ttyAMA0' \ --boot uefi,loader.readonly=yes,loader.type=pflash \ --os-variant debian12 --network default --graphics none --arch aarch64 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up