Laine Stump <laine@xxxxxxxxx>
wrote on 2021/07/17 00:01:36:
> From: Laine Stump <laine@xxxxxxxxx>
> To: Libvirt <libvir-list@xxxxxxxxxx>
> Cc: Motohiro Kawahito <JL25131@xxxxxxxxxx>,
"Daniel P. Berrangé"
> <berrange@xxxxxxxxxx>
> Date: 2021/07/17 00:01
> Subject: [EXTERNAL] Re: Question
about skipping virDomainDiskDefAssignAddress
>
> To expand on that, in the case of detaching a disk, you could 1) provide
> the target dev in the XML you give to "virsh detach-device",
2) give the
> target dev name that you provided in the original XML when you call
> "virsh detach-disk", or 3) you could specify a custom alias
in the
> original XML ("<alias name='ua-somename'/>" - note
that the leading
> "ua-" is *required* for a custom alias name) and then give
that same
> alias to "virsh detach-device-alias". All three will allow
you to
> reliably select the disk you want, and have the same result.
>
Thank you very
much for the information. I didn't know how to use a custom alias. I'm
going to study about it.