In oVirt (Red Hat Enterprise Virtualization) you can create a Virtual Machines Pool to allow your users to retrieve virtual machines from this pool.

I found how a user, in the RHEV User Portal, can request a Virtual Machine from the pool, this is explained here

The thing is that i will need to retrieve virtual machines from the pool with the REST API and, after reading the documentation I can't found the way to do this.

  • pls see update to the answer – dyasny Dec 17 '12 at 13:21

AFAIK there is no such an API call, however, since the system is under very fast development, you as a customer can submit an RFE through a support ticket, those are usually satisfied with the next version, if they make sense and don't require very heavy changes

UPDATE: In RHEV 3.1 there is an API action called allocatevm:

  <vmpool href="/api/vmpools/cfc75028-2942-11e2-8f69-52540042e41d" id="cfc75028-2942-11e2-8f69-52540042e41d">
    <link href="/api/vmpools/cfc75028-2942-11e2-8f69-52540042e41d/allocatevm" rel="allocatevm"/>
  • Are you sure? I'm using oVirt 3.1 (3.1.0-2.fc17) and there is no such call, or at least is not visible When I request the vmpools using the API (as it seems in your example). – FerCa Jan 2 '13 at 9:07
  • It could have been backported from oVirt 3.2 into RHEV 3.1 – dyasny Jan 2 '13 at 9:38
  • I found the patch for this feature (gerrit.ovirt.org/…) and the bug report (bugzilla.redhat.com/show_bug.cgi?format=multiple&id=864438) but I can't find a way to know in what version this will be fixed. – FerCa Jan 3 '13 at 8:22
  • what you found is a RHEV bug, and it's closed as fixed - the feature exists in the current version of RHEV – dyasny Jan 3 '13 at 8:26
  • Can you please tell me the detailed number of version of RHEV are you using? – FerCa Jan 3 '13 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.