xref: /qemu/contrib/vmapple/uuid.sh (revision f5e6e13124440797308d2c044f44d9e655fcb74d)
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