master
sh 12 lines 401 Bytes
Raw
1 #!/bin/sh
2 #
3 # Used for converting a guest provisioned using Virtualization.framework
4 # for use with the QEMU 'vmapple' aarch64 machine type.
5 #
6 # Extracts the Machine UUID from Virtualization.framework VM JSON file.
7 # (as produced by 'macosvm', passed as command line argument)
8 #
9 # SPDX-License-Identifier: GPL-2.0-or-later
10
11 plutil -extract machineId raw "$1" | base64 -d | plutil -extract ECID raw -
12