Skip to content

Instantly share code, notes, and snippets.

@primalmotion
Created December 12, 2011 12:50
Show Gist options
  • Save primalmotion/1467003 to your computer and use it in GitHub Desktop.
Save primalmotion/1467003 to your computer and use it in GitHub Desktop.
alloc+define
cat definition.xml
<iq type='set'>
    <query xmlns='archipel:hypervisor:control'>
        <archipel action='alloc' name='MA VM'>
            <domain type='kvm'>
                <name>THIS WILL BE IGNORED: you can remove the name tag</name>
                <uuid>THIS WILL BE IGNORED: you can remove the uuid tag</uuid>
                <memory>1048576</memory>
                ....
            </domain>
        </archipel>
    </query>
</iq>
cat definition.xml | archipel-command --jid=admin@fqdn --password=pass --to=hypervisor@fqdn/host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment