-
Notifications
You must be signed in to change notification settings - Fork 48
QEMU
QEMU is a is a free and open-source emulator that performs hardware virtualization, while qemu-img is its corresponding disk image utility. Adding support for qemu-img was suggested by @tvsutton way back in Feburary 2016.
First, you need to install qemu-img. I recommend either homebrew
$ brew install qemu
or macports:
$ sudo port install qemu
Regardless of how you install it, qemu-img will exist at some location, and you can instruct vfuse to use it by passing the --use-qemu flag:
$ sudo vfuse -i /path/to/your.dmg --use-qemu=/path/to/wherever/you/installed/qemu-img
If you don't supply a path, then vfuse will assume you installed it with brew and look for it at /usr/local/bin/qemu-img. Additionally, you can use a template and define the path to qemu-img there. Here is a sanitized Mojave template I'm currently providing out for folks who have Fusion 11 installed:
{
"output_name": "Mojave",
"source_dmg": "https://example.com/vms/osx-10.14.1-18B75.apfs.dmg",
"checksum": "ef4db95ce9e363399b7645140c46222f1978f709b8ec0cbb3ec0021f27ef1f79",
"cache": true,
"snapshot": true,
"serial_number": "random",
"use_qemu": true,
"qemu_path": "/opt/local/bin/qemu-img"
}
Again, you can edit the qemu_path in that template to point to where you have installed qemu-img, and if you leave it blank, then vfuse will try to find it in /usr/local/bin/qemu-img.