Following xml file was used to create storage pool using 'virsh pool-create <xml>'

<pool type='dir'>
<host name='localhost'/>

The command succeeds and a pool is created -

# virsh pool-list --all
Name State Autostart
my-diskpool active no

When I try to set it up for autostart, I get -

# virsh pool-autostart my-diskpool
error: failed to mark pool my-diskpool as autostarted
error: invalid argument in pool has no config file

Why is it failing to autostart?

/etc/libvirt/storage has no xml file.

Sharad Mishra