By Simon Coter-Oracle on May 13, 2016
In today's spotlight, I want to share some useful tools that are built on top of Oracle VM Manager Command Line Interface (CLI). You can take advantage of the tools to automate some common tasks, thus bring more flexibility to help you deploy and manage an Oracle VM environment.
As you already know, main components building the Oracle VM Server for x86 architecture are:
- Oracle VM Server incorporates an open source Xen hypervisor component, which has been customized and optimized to integrate into the larger, Oracle-developed virtualization server.
- Oracle VM Manager, the Browser user interface (BUI) to manage Oracle VM environment.
But there are further options to manage an Oracle VM deployment!
Both options really resides on Oracle VM Manager host and are already part of your Oracle VM ecosystem; this kind of features opens further integration opportunity:
So while the Oracle VM Web-Services API options allows to integrate 3rd parties products to manage Oracle VM ecosystem, Oracle VM CLI allows to automate and schedule different operations that usually are manually executed by the BUI.
Between them we can find different operations that maybe need many clicks or human interaction to be completed or, for example, need to be scheduled at a certain time/date; different examples can be:
- create a huge list of objects (like networks, virtual-disks, vms...etc)
- execute, sequentially, more operations of the same type (clone, move, start, stop...etc)
- execute the same operation for N times (like execute the same operation on tens/hundreds of vms)
- schedule the execution of a particular operation at a given date/time without user interaction
- ....and even much more
All these types of operations can be accomplished and executed in a faster manner using Oracle VM CLI where, thanks to the scripting option available, you can estimate which is the best logic to apply before executing the command requested; so you can really design your flowchart and decide which kind of checks needs to be executed before introduce any change or perform any operation; an example:
A very interesting example, with all the details, of this approach can be found at this link where I created a simple Oracle VM CLI script able to move an entire VM (vm configuration file and all virtual-disks) from one repository to an other one.
Even if the VM moving is an easy operation that can be accomplished also using the Oracle VM Manager BUI interface, it could happen that you are in one of these cases:
- You need to move a huge list of VMs from one repository to a new one
- You need to move a list of VMs with many virtual-disks
- You need to schedule the vm-moving at a specific date/time
and this is only one example of the very cool things that you can automate thanks to Oracle VM Manager Web-Services API or Oracle VM Manager CLI.
Feel free to comment and ask for details on this blog entry!