diff --git a/tools/virsh.c b/tools/virsh.c index 0bf7443049..b0c6a76267 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -7364,7 +7364,8 @@ cmdAttachInterface(vshControl *ctl, const vshCmd *cmd) } else if (STREQ(type, "bridge")) { typ = 2; } else { - vshError(ctl, _("No support %s in command 'attach-interface'"), type); + vshError(ctl, _("No support for %s in command 'attach-interface'"), + type); goto cleanup; } @@ -7626,14 +7627,16 @@ cmdAttachDisk(vshControl *ctl, const vshCmd *cmd) if (STREQ(driver, "file") || STREQ(driver, "tap")) { isFile = 1; } else if (STRNEQ(driver, "phy")) { - vshError(ctl, _("No support %s in command 'attach-disk'"), driver); + vshError(ctl, _("No support for %s in command 'attach-disk'"), + driver); goto cleanup; } } if (mode) { if (STRNEQ(mode, "readonly") && STRNEQ(mode, "shareable")) { - vshError(ctl, _("No support %s in command 'attach-disk'"), mode); + vshError(ctl, _("No support for %s in command 'attach-disk'"), + mode); goto cleanup; } } diff --git a/tools/virsh.pod b/tools/virsh.pod index 05ba731c27..6e01a89c38 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -528,13 +528,17 @@ format of the device sections to get the most accurate set of accepted values. Attach a device to the domain, using a device definition in an XML file. See the documentation to learn about libvirt XML format for a device. +For cdrom and floppy devices, this command only replaces the media within +the single existing device; consider using B for this usage. =item B I I I optional I<--driver driver> I<--subdriver subdriver> I<--type type> I<--mode mode> Attach a new disk device to the domain. I and I are paths for the files and devices. I can be I, I or I depending on the kind of access. -I can indicate I or I as alternative to the disk default. +I can indicate I or I as alternative to the disk default, +although this use only replaces the media within the existing virtual cdrom or +floppy device; consider using B for this usage instead. I can specify the two specific mode I or I. =item B I I I optional I<--target target> I<--mac mac> I<--script script> @@ -564,6 +568,13 @@ I can be either I to indicate a physical network device or I option to distinguish between the interfaces if more than one are present on the domain. +=item B I I optional I<--persistent> + +Update the characteristics of a device associated with I, +based on the device definition in an XML I. If the I<--persistent> +option is used, the changes will affect the next boot of the domain. +See the documentation to learn about libvirt XML format for a device. + =back =head1 VIRTUAL NETWORK COMMANDS