在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:knazarov/homebrew-qemu-virgl开源软件地址:https://github.com/knazarov/homebrew-qemu-virgl开源编程语言:Ruby 100.0%开源软件介绍:3D accelerated qemu on MacOSWhat is it forIf you own a Mac (x86 or ARM) and want to have a full Linux desktop for development or testing, you'll find that having a responsive desktop is a nice thing. The graphical acceleration is possible thanks to the work of Akihiko Odaki. I've only packaged it into an easily-installable brew repository while the changes are not yet merged into upstream. Features:
Installation
Or UsageQemu has many command line options and emulated devices, so the sections are specific to your CPU (Intel/M1). For the best experience, maximize the qemu window when it starts. To
release the mouse, press Usage - M1 MacsLatest release needs virtio-gpu-gl-pci command line option instead of virtio-gpu-pci, otherwise gpu acceleration won't work First, create a disk image you'll run your Linux installation from (tune image size as needed): qemu-img create hdd.raw 64G Download an ARM based Fedora 35 image: curl -LO https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/35/Workstation/aarch64/iso/Fedora-Workstation-Live-aarch64-35-1.2.iso Copy the firmware: cp $(dirname $(which qemu-img))/../share/qemu/edk2-aarch64-code.fd .
cp $(dirname $(which qemu-img))/../share/qemu/edk2-arm-vars.fd . Install the system from the CD image: qemu-system-aarch64 \
-machine virt,accel=hvf,highmem=off \
-cpu cortex-a72 -smp 2 -m 4G \
-device intel-hda -device hda-output \
-device qemu-xhci \
-device virtio-gpu-gl-pci \
-device usb-kbd \
-device virtio-net-pci,netdev=net \
-device virtio-mouse-pci \
-display cocoa,gl=es \
-netdev user,id=net,ipv6=off \
-drive "if=pflash,format=raw,file=./edk2-aarch64-code.fd,readonly=on" \
-drive "if=pflash,format=raw,file=./edk2-arm-vars.fd,discard=on" \
-drive "if=virtio,format=raw,file=./hdd.raw,discard=on" \
-cdrom Fedora-Workstation-Live-aarch64-35-1.2.iso \
-boot d Run the system without the CD image to boot into the primary partition: qemu-system-aarch64 \
-machine virt,accel=hvf,highmem=off \
-cpu cortex-a72 -smp 2 -m 4G \
-device intel-hda -device hda-output \
-device qemu-xhci \
-device virtio-gpu-gl-pci \
-device usb-kbd \
-device virtio-net-pci,netdev=net \
-device virtio-mouse-pci \
-display cocoa,gl=es \
-netdev user,id=net,ipv6=off \
-drive "if=pflash,format=raw,file=./edk2-aarch64-code.fd,readonly=on" \
-drive "if=pflash,format=raw,file=./edk2-arm-vars.fd,discard=on" \
-drive "if=virtio,format=raw,file=./hdd.raw,discard=on" Usage - Intel MacsFirst, create a disk image you'll run your Linux installation from (tune image size as needed): qemu-img create hdd.raw 64G Download an x86 based Fedora 35 image: curl -LO https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/35/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-35-1.2.iso Install the system from the CD image: qemu-system-x86_64 \
-machine accel=hvf \
-cpu Haswell-v4 -smp 2 -m 4G \
-device intel-hda -device hda-output \
-device qemu-xhci \
-device virtio-vga-gl \
-device usb-kbd \
-device virtio-net-pci,netdev=net \
-device virtio-mouse-pci \
-display cocoa,gl=es \
-netdev user,id=net,ipv6=off \
-drive "if=virtio,format=raw,file=hdd.raw,discard=on" \
-cdrom Fedora-Workstation-Live-x86_64-35-1.2.iso \
-boot d Run the system without the CD image to boot into the primary partition: qemu-system-x86_64 \
-machine accel=hvf \
-cpu Haswell-v4 -smp 2 -m 4G \
-device intel-hda -device hda-output \
-device qemu-xhci \
-device virtio-vga-gl \
-device usb-kbd \
-device virtio-net-pci,netdev=net \
-device virtio-mouse-pci \
-display cocoa,gl=es \
-netdev user,id=net,ipv6=off \
-drive "if=virtio,format=raw,file=hdd.raw,discard=on" Usage - AdvancedThis section has additional configuration you may want to do to improve your workflow Clipboard sharingThere's now support for sharing clipboard in both directions: from vm->host and host->vm. To enable clibpoard sharing, add this to your command line:
Mouse integrationBy default, you have mouse pointer capture and have to release mouse pointer from the VM using keyboard shortcut. In order to have seamless mouse configuration,
add the following to your command line instead of
MacOS native networking for VMs (vmnet)akihikodaki's patch set includes support for vmnet which offers more flexibility than For instance, to enable bridge mode, replace:
with
vmnet also offers "host" and "shared" networking model:
caveats:
To work around 2), for now it's possible to set the MAC address within the VM. As root, create a file
replace Reboot or issue a |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论