一,virsh attach-disk子命令
[root@localhost src]# virsh help attach-disk
NAME
attach-disk - attach disk device
SYNOPSIS
attach-disk <domain> <source> <target> [--targetbus <string>] [--driver <string>] [--subdriver <string>] [--iothread <string>] [--cache <string>] [--type <string>] [--mode <string>] [--so
urcetype <string>] [--serial <string>] [--wwn <string>] [--rawio] [--address <string>] [--multifunction] [--print-xml] [--persistent] [--config] [--live] [--current]
DESCRIPTION
Attach new disk device.
OPTIONS
[--domain] <string> domain name, id or uuid
[--source] <string> source of disk device
[--target] <string> target of disk device
--targetbus <string> target bus of disk device
--driver <string> driver of disk device
--subdriver <string> subdriver of disk device
--iothread <string> IOThread to be used by supported device
--cache <string> cache mode of disk device
--type <string> target device type
--mode <string> mode of device reading and writing
--sourcetype <string> type of source (block|file)
--serial <string> serial of disk device
--wwn <string> wwn of disk device
--rawio needs rawio capability
--address <string> address of disk device
--multifunction use multifunction pci under specified address
--print-xml print XML document rather than attach the disk
--persistent make live change persistent
--config affect next boot
--live affect running domain
--current affect current domain
attach-disk domain source target [[[--live] [--config] | [--current]] | [--p