Question about skipping virDomainDiskDefAssignAddress

Motohiro Kawahito JL25131 at jp.ibm.com
Mon Jul 19 00:04:57 UTC 2021


Laine Stump <laine at laine.org> wrote on 2021/07/17 00:01:36:

> From: Laine Stump <laine at laine.org>
> To: Libvirt <libvir-list at redhat.com>
> Cc: Motohiro Kawahito <JL25131 at jp.ibm.com>, "Daniel P. Berrangé" 
> <berrange at redhat.com>
> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210719/95817706/attachment-0001.htm>


More information about the libvir-list mailing list