使用qemu8.0安装龙芯loongarch64版本archlinux
准备
- Loong Arch Linux官网
- qemu镜像下载
QEMU_EFI_8.0.fd: 固件archlinux-xfce4-2023.05.10-loong64.qcow2.zst: 系统镜像, 下载后需要解压出qcow2文件
安装依赖
建议安装
qemu-full包, 我以前安装的不是这个, 导致gpu加载不了
启动系统
注意固件版本和系统镜像版本
qemu-system-loongarch64 \
-m 4G \
-cpu la464-loongarch-cpu \
-machine virt \
-smp 4 \
-bios ./QEMU_EFI_8.0.fd \
-serial stdio \
-device virtio-gpu-pci \
-net nic -net user \
-device nec-usb-xhci,id=xhci,addr=0x1b \
-device usb-tablet,id=tablet,bus=xhci.0,port=1 \
-device usb-kbd,id=keyboard,bus=xhci.0,port=2 \
-hda archlinux-xfce4-2023.05.10-loong64.qcow2
image
image








