libvirt + zvol + bhyve: no storage pool with matching name

Boris Samorodov bsam at passap.ru
Fri Oct 16 23:05:37 UTC 2015


Hi All,

I try to use libvirt to run a zvol-backed vm. The vm starts just fine
if run from a command line. But libvirt does not create a domain
(raw file images work though). Here is the output:
-----
% virsh create test.xml
error: Failed to create domain from test.xml
error: Storage pool not found: no storage pool with matching name 'zroot'
-----

The relevant part from the config:
-----
      <disk type='volume' device='disk'>
        <source pool='zroot' volume='test'/>
        <target dev='vdb' bus='virtio'/>
      </disk>
-----

The host:
-----
zfs get type,volmode zroot/test
NAME        PROPERTY  VALUE    SOURCE
zroot/test  type      volume   -
zroot/test  volmode   dev      local

% uname -a
FreeBSD bb055.bsnet 11.0-CURRENT FreeBSD 11.0-CURRENT #2 r289095: Sat
Oct 10 05:10:17 MSK 2015     bsam at bb055.bsnet:/usr/obj/usr/src/sys/BB64X
 amd64

% pkg info -x virt
libvirt-1.2.20
-----

Is it just me, a bug or something else?

Thanks!
-- 
WBR, bsam


More information about the freebsd-virtualization mailing list