<div dir="ltr"><div>Hi all,</div><div>   I am trying to figure out if you can store the definition of a directory storage pool in a custom location.</div><div><br></div><div>This is how I create the storage pool:</div><div><div>xmlDesc = """</div><div><span class="" style="white-space:pre">            </span><pool type='dir'></div><div><span class="" style="white-space:pre">            </span>  <name>guest_images_storage_pool</name></div><div><span class="" style="white-space:pre">              </span>  <uuid>8c79f996-cb2a-d24d-9822-ac7547ab2d01</uuid></div><div><span class="" style="white-space:pre">           </span>  <capacity unit='bytes'>4306780815</capacity></div><div><span class="" style="white-space:pre">                </span>  <allocation unit='bytes'>237457858</allocation></div><div><span class="" style="white-space:pre">             </span>  <available unit='bytes'>4069322956</available></div><div><span class="" style="white-space:pre">              </span>  <source><span class="" style="white-space:pre">         </span>  <span class="" style="white-space:pre">       </span></div><div><span class="" style="white-space:pre">           </span>  </source></div><div><span class="" style="white-space:pre">         </span>  <target></div><div><span class="" style="white-space:pre">                  </span><path>/disk1/guest_images</path></div><div><span class="" style="white-space:pre">                       </span><permissions></div><div><span class="" style="white-space:pre">                        </span>  <mode>0755</mode></div><div><span class="" style="white-space:pre">                   </span>  <owner>-1</owner></div><div><span class="" style="white-space:pre">                   </span>  <group>-1</group></div><div><span class="" style="white-space:pre">                   </span></permissions></div><div><span class="" style="white-space:pre">               </span>  </target></div><div><span class="" style="white-space:pre">         </span></pool>"""</div><div><span class="" style="white-space:pre">    </span></div><div><span class="" style="white-space:pre">   </span></div><div><span class="" style="white-space:pre">           </span>pool = conn.storagePoolDefineXML(xmlDesc, 0)<span class="" style="white-space:pre">      </span></div></div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre"><br></span></div><div>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 system</div><div><br></div><div>The problem is that /etc is mapped to a ramdisk on my system. So after restart anything in there would be wiped.  </div><div>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.</div><div><br></div><div>I tried adding a source path:</div><div><br></div><div><div>  <source></div><div><span class="" style="white-space:pre">       <dir path="/disk1/storage_pool"/>               </span>  <span class="" style="white-space:pre">      </span></div><div>  </source></div></div><div><br></div><div>But that has no effect.</div><div><br></div><div>Any ideas?</div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><font color="#666666" face="verdana, sans-serif">Andrei</font></div></div></div></div>
</div>

<br>

        
        
        


<p><img src="http://www.klasonline.com/klas_telecom_email_sig_1_01.jpg"></p><p><span style="font-family:Arial;font-size:x-small">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.</span></p><p><span style="font-family:Arial;font-size:x-small">Klas Telecom
Inc., a Virginia Corporation with offices at 1101 30th St. NW,
Washington, DC 20007.</span></p>
<p>
<font color="#000000"><font face="Arial"><font size="1">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.</font></font></font></p>