qemu - qemu-system-aarch64:-accel hvf:加速器 hvf 无效
问题描述
我已经在 MacBook pro M1 中自己编译了 QEMU,并下载了 ubuntu 20.04。
当我尝试通过以下方式安装 ubuntu 时:
DYLD_LIBRARY_PATH=. \
./qemu-system-aarch64 \
-M virt,highmem=off \
-accel hvf \
-m 4G \
-smp 4 \
-cpu max \
-drive file=ubuntu.img,index=0,media=disk,format=raw \
-serial stdio \
-netdev type=user,id=net0 \
-device virtio-gpu-pci -vga none \
-device nec-usb-xhci \
-device usb-kbd \
-device usb-tablet \
-device intel-hda -device hda-duplex \
-device virtio-net-pci,netdev=net0,romfile="" \
-drive file=ubuntu-20.04.2-live-server-arm64.iso,media=cdrom,if=none,id=cdrom -device usb-storage,drive=cdrom \
-bios QEMU_EFI.fd
我得到一个错误:qemu-system-aarch64: -accel hvf: invalid accelerator hvf
。
我试过这个:sudo xattr -rd com.apple.quarantine ~/Desktop/buildV6
关闭看门人,但它没有用。
我不太明白这一点,我是 QEMU 的新手。你能给我解决方案吗?
解决方案
我发现https://github.com/knazarov/homebrew-qemu-virgl是最简单的解决方案:
brew install qemu
brew install knazarov/qemu-virgl/qemu-virgl
推荐阅读
- flutter - 通过蓝牙在 Dart/Flutter 上使用 ModBus?
- amazon-web-services - 如何在 yml 中正确使用 CloudFormation 的内在函数
- telegram - 在电报中将简单文本应用于图片 API
- excel - 复制并粘贴一个单元格,以便在 vlookup 后数据不会更改
- typescript - 打字稿:函数应该返回泛型类型的值
- python - wtforms 表单字段是类对象还是函数?
- node.js - 错误:找不到模块“@babel/runtime/regenerator”
- c# - .NET Core 3.1 控制台应用程序无法在 Windows 7 上运行
- node.js - 带有express的NodeJS:res.get()总是返回未定义的
- flutter - 无法从颤振中的模型类获取数据