qvm-device – List/set VM devices¶
Synopsis¶
Tool can be called either as qvm-device *DEVICE_CLASS* …, or qvm-*DEVICE_CLASS* …. The latter is used for qvm-pci, qvm-block etc.
Options¶
-
--help,-h¶ Show this help message and exit
-
--verbose,-v¶ increase verbosity
-
--quiet,-q¶ decrease verbosity
Commands¶
list¶
List devices.
aliases: ls, l
attach¶
Attach the device with DEVICE_ID from BACKEND_DOMAIN to the domain VMNAME
-
--option,-o¶ Specify device-class specific option, use name=value format. You can specify this option multiple times. See below for options specific to different device classes.
-
--ro¶ Alias for the read-only=yes option. If you specify both –ro and –option read-only=no, –ro takes precedence.
-
--persistent,-p¶ Attach device persistently, which means have it attached also after qube restart.
aliases: a, at
detach¶
Detach the device with BACKEND_DOMAIN:DEVICE_ID from domain VMNAME
aliases: d, dt
Device classes¶
block¶
Block device. Available options:
- frontend-dev - device node in target domain, by default first available, starting from xvdi
- read-only - attach device in read-only mode; default depends on device, if possible - attach read-write; if device itself is read-only, only read-only attach is allowed
- devtype - type of device - either disk or cdrom; default: disk
usb¶
USB device. This type of device does not support options.
pci¶
PCI device. Only dom0 expose such devices. One should be very careful when attaching this type of devices, because some of them are strictly required to stay in dom0 (for example host bridge). Available options:
- no-strict-reset - allow to attach device even if it does not support any reliable reset operation; switching such device to another domain (without full host restart) can be a security risk; default: False, accepted values: True, False (option absent)