Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

19.6. 设备选项

这部分提供有关设备选项的信息。

常规设备

-device <driver>[,<prop>[=<value>][,...]]
所有驱动程序都支持以下属性
  • id
  • 总线
支持以下驱动程序(具有可用属性):
  • pci-assign
    • 主机
    • bootindex
    • configfd
    • addr
    • rombar
    • romfile
    • 多功能
    如果设备具有多个功能,则需要把所有这些功能分配给同一客户端。
  • rtl8139
    • mac
    • netdev
    • bootindex
    • addr
  • e1000
    • mac
    • netdev
    • bootindex
    • addr
  • virtio-net-pci
    • ioeventfd
    • 向量
    • indirect
    • event_idx
    • csum
    • guest_csum
    • gso
    • guest_tso4
    • guest_tso6
    • guest_ecn
    • guest_ufo
    • host_tso4
    • host_tso6
    • host_ecn
    • host_ufo
    • mrg_rxbuf
    • status
    • ctrl_vq
    • ctrl_rx
    • ctrl_vlan
    • ctrl_rx_extra
    • mac
    • netdev
    • bootindex
    • x-txtimer
    • x-txburst
    • tx
    • addr
  • qxl
    • ram_size
    • vram_size
    • 修订
    • cmdlog
    • addr
  • ide-drive
    • unit
    • 驱动器
    • physical_block_size
    • bootindex
    • ver
    • wwn
  • virtio-blk-pci
    • class
    • 驱动器
    • logical_block_size
    • physical_block_size
    • min_io_size
    • opt_io_size
    • bootindex
    • ioeventfd
    • 向量
    • indirect_desc
    • event_idx
    • scsi
    • addr
  • virtio-scsi-pci - 6.3 中的技术预览,自 6.4 开始支持。
    对于 Windows 客户机,Windows Server 2003 一直是技术预览,自 6.5 起不再受支持。但是,自 6.5 开始,Windows Server 2008 和 2012, Windows 桌面 7 和 8 被完全支持。
    • 向量
    • indirect_desc
    • event_idx
    • num_queues
    • addr
  • isa-debugcon
  • ISA-serial
    • index
    • iobase
    • irq
    • chardev
  • virtserialport
    • nr
    • chardev
    • name
  • virtconsole
    • nr
    • chardev
    • name
  • virtio-serial-pci
    • 向量
    • class
    • indirect_desc
    • event_idx
    • max_ports
    • flow_control
    • addr
  • ES1370
    • addr
  • AC97
    • addr
  • intel-hda
    • addr
  • hda-duplex
    • cad
  • hda-micro
    • cad
  • hda-output
    • cad
  • i6300esb
    • addr
  • ib700 - 无属性
  • sga - 无属性
  • virtio-balloon-pci
    • indirect_desc
    • event_idx
    • addr
  • USB-tablet
    • migrate
    • port
  • usb-kbd
    • migrate
    • port
  • USB-mouse
    • migrate
    • port
  • USB-ccid - 自 6.2 起受支持.
    • port
    • 插槽
  • USB-host - 自 6.2 起技术预览.
    • hostbus
    • hostaddr
    • hostport
    • vendorid
    • productid
    • isobufs
    • port
  • USB-hub - 自 6.2 起支持.
    • port
  • USB-ehci - 自 6.2 起技术预览.
    • freq
    • maxframes
    • port
  • USB-storage - 自 6.2 起技术预览.
    • 驱动器
    • bootindex
    • serial
    • removable
    • port
  • USB-redir - 6.3 技术预览,自 6.4 开始支持
    • chardev
    • filter
  • SCSI-cd - 6.3 技术预览,自 6.4 开始支持
    • 驱动器
    • logical_block_size
    • physical_block_size
    • min_io_size
    • opt_io_size
    • bootindex
    • ver
    • serial
    • scsi-id
    • LUN
    • channel-scsi
    • wwn
  • SCSI-hd - 自 6.4 起支持 6.3 技术预览
    • 驱动器
    • logical_block_size
    • physical_block_size
    • min_io_size
    • opt_io_size
    • bootindex
    • ver
    • serial
    • scsi-id
    • LUN
    • channel-scsi
    • wwn
  • SCSI-block - 自 6.4 起支持 6.3 技术预览
    • 驱动器
    • bootindex
  • SCSI-disk - 对 6.3 技术预览
    • drive=drive
    • logical_block_size
    • physical_block_size
    • min_io_size
    • opt_io_size
    • bootindex
    • ver
    • serial
    • scsi-id
    • LUN
    • channel-scsi
    • wwn
  • piix3-usb-uhci
  • piix4-usb-uhci
  • ccid-card-passthru

全局设备设置

-global <device>.<property>=<value>
这些附加设备的 "General device" 部分支持的设备和属性:
  • isa-fdc
    • driveA
    • driveB
    • bootindexA
    • bootindexB
  • qxl-vga
    • ram_size
    • vram_size
    • 修订
    • cmdlog
    • addr

字符设备

-chardev 后端,id=<id>[,<options>]
支持的后端有:
  • null,id=<id> - null device
  • socket,id=<id>,port=<port>[,host=<host>][,to=<to>][,ipv4][,ipv6][,nodelay][,server][,nowait][,telnet] - tcp socket
  • socket,id=<id>,path=<path>[,server][,nowait][,telnet] - unix socket
  • file,id=<id>,path=<path> - trafit to file。
  • stdio,id=<id> - 标准 i/o
  • spicevmc,id=<id>,name=<name> - spice 频道

启用 USB

-usb