[libvirt] question about syntax of storage volume <target> element

Jim Fehlig jfehlig at suse.com
Fri Sep 28 04:54:24 UTC 2018


I've attempted to use virt-manager to create a new VM that uses a volume from an 
rbd-based network pool, but have not been able to progress past step 4/5 where 
VM storage is selected. It appears virt-manager has problems properly detecting 
the volume as network-based storage, but before investigating those further I 
have a question about the syntax of the <target> element of a storage volume. 
The storage management page [0] of the website describing rbd volumes claims 
that the <path> subelement contains an 'rbd:rbd/' prefix in the volume path. But 
the page describing pool and volume format [1] syntax does not contain any info 
wrt specifying network URLs in the <path> subelement.

What is the expectation wrt the <path> subelement of the <target> element within 
rbd volume config? In general, should the <path> subelement encode the scheme 
(e.g. rbd://) of a network-based volume? And if so, should it be formatted in 
the traditional 'rbd://' vs 'rbd:rbd/' syntax?

Regards,
Jim

[0] https://libvirt.org/storage.html#StorageBackendRBD
[1] https://libvirt.org/formatstorage.html#StorageVolTarget




More information about the libvir-list mailing list