xref: /qemu/contrib/vmapple/uuid.sh (revision f07a5674cf97b8473e5d06d7b1df9b51e97d553f)
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
11plutil -extract machineId raw "$1" | base64 -d | plutil -extract ECID raw -
12
13