[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] create a directory storage pool in a random location

On Wed, Dec 02, 2015 at 11:41:46AM +0000, Andrei Perietanu wrote:
Hi all,
  I am trying to figure out if you can store the definition of a directory
storage pool in a custom location.

This is how I create the storage pool:
xmlDesc = """
<pool type='dir'>
<capacity unit='bytes'>4306780815</capacity>
<allocation unit='bytes'>237457858</allocation>
<available unit='bytes'>4069322956</available>
pool = conn.storagePoolDefineXML(xmlDesc, 0)

This creates guest_images_storage_pool.xml in /etc/libvirt/storage. I
assume this is the default path libvirt looks for any storage pools on the

The problem is that /etc is mapped to a ramdisk on my system. So after
restart anything in there would be wiped.

Well, how do you expect applications to save configurations then?

You can compile libvirt with --sysconfdir=/something_else_than/etc, but
I would expect problems with more than libvirt if you have /etc on ramdisk...

The path /disk1 maps to an actual hdd partition so ideally libvirt sould
look for it's storage pools in there. I can't seem to make that happen.

I tried adding a source path:

<dir path="/disk1/storage_pool"/>

But that has no effect.

Any ideas?



The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you receive
this in error please contact the sender and delete the material from any
computer immediately. It is the policy of Klas  Limited to disavow the
sending of offensive material and should you consider that the material
contained in the message is offensive you should contact the sender
immediately and also your I.T. Manager.

Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW,
Washington, DC 20007.

Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish
Limited Liability Company, with its registered office at Fourth Floor, One
Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland.

libvirt-users mailing list
libvirt-users redhat com

Attachment: signature.asc
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]