Request an invite
Docs menu

osmates vm update-macos

Save a running macOS machine, then install the macOS update Software Update offers it.

Usage
osmates vm update-macos <machine> [--list] [--update <update>] [--json]

OSMates lists the updates with softwareupdate in the machine, saves the machine as a snapshot named "Before macOS <version>", and only then has macOS install the update of the machine's own major version, as the machine's account, with the password vm password keeps. If the snapshot cannot be taken, nothing is installed. macOS restarts the machine to install, which can take 30 minutes or more; this command follows it and says which version came back. To go back, revert to the snapshot it names. --list only lists. An upgrade to a new major version is named and left to System Settings in the machine. Control-C stops following; once softwareupdate runs, the install goes on in the machine.

Arguments

<machine>Required

The machine's name or identifier.

--list

List what Software Update offers the machine and change nothing.

--update <update>

The label of the update to install, as --list prints it.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/vm/update-macos.json

accountstring
itemsarray of objectsRequired
items[].isRecommendedbooleanRequired
items[].labelstringRequired
items[].restartsbooleanRequired
items[].sizeinteger

At least 0.

items[].titlestringRequired
items[].versionstring
machinestringRequired
outcomeobject or string

One of unchanged, notRestarted, notBack, shutDown, or an object that holds one key: updated.

outcome.updatedobject
snapshotobject
snapshot.createdAtstring (date-time)Required
snapshot.discstring (uri)
snapshot.discControllerboolean
snapshot.firmwareobject
snapshot.frameworkSoundobject
snapshot.guestToolsboolean
snapshot.hardwareobjectRequired
snapshot.hostBuildstring
snapshot.idstring (uuid)Required
snapshot.includesMemorybooleanRequired
snapshot.isCrashConsistentbooleanRequired
snapshot.isKeptbooleanRequired
snapshot.namestringRequired
snapshot.networkPathstring

One of direct, detached, filtered.

snapshot.originstring or objectRequired

One of manual, or an object that holds one key: agentSession, agent, beforeRevert, schedule, beforeUpdate, beforeDrivers, guest, beforeGuestRevert, codeSession, beforeMacOSUpdate or beforeFirmwareUpdate.

snapshot.partitionGrowthobject
snapshot.rosettaboolean
snapshot.windowsDriversobject
snapshot.withoutNetworkbooleanRequired
updateobject
update.isRecommendedbooleanRequired
update.labelstringRequired
update.restartsbooleanRequired
update.sizeinteger

At least 0.

update.titlestringRequired
update.versionstring
upgradeobject
upgrade.isRecommendedbooleanRequired
upgrade.labelstringRequired
upgrade.restartsbooleanRequired
upgrade.sizeinteger

At least 0.

upgrade.titlestringRequired
upgrade.versionstring
versionstringRequired

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page