osmates vm usb detach
Detach a device, as if unplugged, and forget it; a shut-down machine only forgets it.
osmates vm usb detach <machine> <vendor:product> [--serial <serial>] [--json]Arguments
<machine>RequiredThe machine's name or identifier.
<vendor:product>RequiredThe device's vendor and product ID in hex.
--serial <serial>The device's serial, when the machine has two of its ID.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/vm/usb/detach.json
entryobjectentry.attachedbooleanRequiredentry.deviceobjectRequiredentry.labelstringRequiredentry.refusalobject or stringOne of
noController,notOnThisEngine, or an object that holds one key:networkClassorinterfacesUnknown.entry.rememberedbooleanRequiredentry.warningsarray of stringsRequiredEach item is one of
isochronous.keyobjectRequiredkey.namestringkey.productIDintegerRequiredAt least 0.
key.serialstringkey.vendorIDintegerRequiredAt least 0.
rememberedbooleanRequired
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |