Created
August 24, 2011 14:43
-
-
Save primalmotion/1168223 to your computer and use it in GitHub Desktop.
Archipel Libvirt Storage API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # POOLS | |
| ## pool define | |
| <iq type='get' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:pool'> | |
| <archipel action='pooldefine' build="true"> | |
| <pool type="dir" > | |
| <name>totoman</name> | |
| <capacity>47394578432</capacity> | |
| <allocation>3920236544</allocation> | |
| <available>43474341888</available> | |
| <source> | |
| </source> | |
| <target> | |
| <path>/tmp/virt-images2</path> | |
| <permissions> | |
| <mode>0700</mode> | |
| <owner>-1</owner> | |
| <group>-1</group> | |
| </permissions> | |
| </target> | |
| </pool> | |
| </archipel> | |
| </query> | |
| </iq> | |
| ## pool undefine | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:pool'> | |
| <archipel action='poolundefine' identifier="totoman" delete="true"/> | |
| </query> | |
| </iq> | |
| ## pool create | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:pool'> | |
| <archipel action='poolcreate' identifier="totoman"/> | |
| </query> | |
| </iq> | |
| ## pool destroy | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:pool'> | |
| <archipel action='pooldestroy' identifier="totoman"/> | |
| </query> | |
| </iq> | |
| ## pool autostart | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:pool'> | |
| <archipel action='poolsetautostart' identifier="totoman" autostart="true"/> | |
| </query> | |
| </iq> | |
| ## pool info | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:pool'> | |
| <archipel action='poolinfo' identifier="totoman"/> | |
| </query> | |
| </iq> | |
| # VOLUMES | |
| ## volume info | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:volume'> | |
| <archipel action='volumeinfo' pool="totoman" identifier="sparse.img"/> | |
| </query> | |
| </iq> | |
| ## volume define | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:volume'> | |
| <archipel action='volumedefine' pool="totoman"> | |
| <volume> | |
| <name>sparse.img</name> | |
| <allocation>0</allocation> | |
| <capacity unit="M">1</capacity> | |
| <target> | |
| <path>sparse.img</path> | |
| <permissions> | |
| <owner>107</owner> | |
| <group>107</group> | |
| <mode>0744</mode> | |
| <label>virt_image_t</label> | |
| </permissions> | |
| </target> | |
| </volume> | |
| </archipel> | |
| </query> | |
| </iq> | |
| ## volume xml | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:volume'> | |
| <archipel action='volumedescription' pool="totoman" identifier="sparse.img"/> | |
| </query> | |
| </iq> | |
| ## volume undefine | |
| <iq type='set' to='hypervisor@ramucho/ramucho'> | |
| <query xmlns='archipel:storage:volume'> | |
| <archipel action='volumeundefine' pool="totoman" identifier="sparse.img"/> | |
| </query> | |
| </iq> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment