Oracle VM CLI RPM is available

About 2 months ago I wrote a little blog entry that had a preview of the "upcoming" cli tool for Oracle VM. Well, as of today, if you have ULN (Unbreakable Linux Network) access, you can actually grab the cli rpms. We released the first version.

Likely by the end of next week, we are also going to publish these rpms on our freely accessible public yum server.

Package Names :

ULN channels :
el5_i386_oracle_addons | el5_x86_64_oracle_addons
el5_i386_addons | el5_x86_64_addons

have fun !


any chance you will have packages or sources available so that I can use this from my OSX workstation?

Posted by Joe Hoot on July 24, 2009 at 09:16 AM PDT #

sure - technically you can just grab the rpm and cpio extract it. its pure python so if you grab the python zsi packages from the zsi websitm, then drop the cli python code in a directory, you should be good to go. Maybe we can write up a note on this too - we test this on windows as well, don't have an exe but it's the same code. :) I have an OS X setup - will also give it a try but the above is basically how to make it work :)

Posted by Wim Coekaerts on July 24, 2009 at 09:25 AM PDT #

I tried using cpio -idvm ovmcli-1.0-1.el5.noarch.rpm, but that didn't appear to work. I also looked around and found rpm2cpio and something called I believe the would work, but you can't extract all files. It only appears to let you extract one file at a time. I have a linux parallels vm that I can use to install the rpm. I can do that and then just tar it up. I'd imagine that should be fine too.

Posted by Joe Hoot on July 24, 2009 at 09:00 PM PDT #

Check out save the script (beware of the newline on line 33/34) do myscript ovmcli-1.0-1.el5.noarch.rpm > ovm.cpio cpio -idmv < ovm.cpio that should do the job on macosX

Posted by Wim Coekaerts on July 24, 2009 at 09:22 PM PDT #

I tried that also. I couldn't get it to work. I did, however, get it to work by doing the following: On my linux VM: 1) install the ovmcli-1.0-1.el5 rpm 2) for x in `rpm -ql ovmcli-1.0-1.el5`; do tar -rvpf /tmp/ovmcli.tar $x; done On my Mac: 3) scp the ovmcli.tar from my linux vm to my mac 4) Install the ZSI package after dnloading it from 5) tar xvpf ovmcli.tar 6) cp -Rp the site-packages from the tar (./usr/lib/python2.4/site-packages/*) over to /Library/Python/2.5/site-packages <-- that happens to be the python version that is referenced on my mac. Now it works :) Thanks, Joe

Posted by Joe Hoot on July 25, 2009 at 09:37 AM PDT #

Did you publish the rpm on the yum server? I did not find it and I don't have a up2day support account.

Posted by Heri on July 30, 2009 at 06:03 PM PDT #

not yet- they're working on it tho. ll post a note when they do. just a few things going on :)

Posted by Wim Coekaerts on July 31, 2009 at 06:03 AM PDT #

Hello. Any updates on the rpm to the yum server?

Posted by Andrei Dumitru on September 20, 2009 at 08:29 PM PDT # so it is actually there in the EL5 oracle_addons x86_64 channel Wim

Posted by wim.coekaerts on September 21, 2009 at 04:15 AM PDT #

Does the latest ovmcli support older versions of manager? I have Oracle VM 2.1.2, with 2.1.2 manager, I've installed ovmcli 2.2-9.el5 via yum public server. (lifesciences isn't certified under 2.1.5 or 2.2) My config looks like: Oracle VM Manager hostname: Oracle VM Manager port number: 8888 Deploy path (leave blank for default): Location of vncviewer (leave blank to skip): Enable HTTPS support? (Y/n): n but I get something like this: [root@OVM-mgr Desktop]# ovm group ls Login: admin Password: Access denied or server error. Please check the OVM Manager configuration. I'm using the same login and pw as I'd put into the web manager tool. Any thoughts? btw, I'm looking forward to using this tool. thanks for writing it. Eric

Posted by Eric Oosting on March 21, 2010 at 11:04 AM PDT #

I'd like to run these commands scripted but I get prompted for login which makes things tacky. Is there any way to provide credentials either in-line or in a file so it can be automated?

Posted by Charles Meo on July 01, 2010 at 09:25 AM PDT #

Wim, I thought you would be happy to know that the ovm cli was invaluable to me yesterday. We have a medium-sized environment here and had some database corruption issues with our ovm manager (something about constraint issues). In any case, we could have probably solved the issues through SR's that we had opened. But that would likely have taken a couple of days and I needed to get this resolved more quickly. Therefore, I created a few scripts: 1) import shared disks: if [ $# -ne 3 ] #!/bin/sh if [ $# -ne 3 ] then echo "Usage: ./ " exit 1 fi USERNAME="$1" PASSWD="$2" POOLNAME="$3" for device in $(ovm -u "${USERNAME}" -p "${PASSWD}" sd disc -s "${POOLNAME}" | grep -v "^Name" | grep Multipath | awk '{print $1}') do ovm -u "${USERNAME}" -p "${PASSWD}" sd reg -s "${POOLNAME}" -g "SYSNET" -m -n $device done and 2) #!/bin/sh if [ $# -ne 3 ] then echo "Usage: ./ " exit 1 fi USERNAME="$1" PASSWD="$2" POOLNAME="$3" for vm in $(ovm -u "${USERNAME}" -p "${PASSWD}" img disc -s "${POOLNAME}" | grep -v "^Discoverable") do ovm -u "${USERNAME}" -p "${PASSWD}" img reg -s "${POOLNAME}" -g "SYSNET" -o "Oracle Enterprise Linux 5" -a -c conpasshere -n $vm done Those two scripts saved me probably 5 hours of clicking through the ovm manager to import roughly 120 vms :) gotta love command-line!

Posted by Joe Hoot on October 06, 2010 at 08:55 PM PDT #

glad to hear its working for ya Joe :) thanks!

Posted by wim.coekaerts on October 07, 2010 at 12:32 AM PDT #

Being new to yum, I struggled with this setup quite a bit. I went to the public yum repository, selected what I thought was the right repository, etc. and ended up after attempting to install python-ZSI and ovmcli with a large number of unsatisfied dependencies. It turned out that I had selected the repo for Oracle Linux 5 when I actually was running on Oracle Linux 4. I had my vm re-imaged to Oracle Linux 5 (figuring it was a good idea to use a more recent version anyway) and then everything worked fine. In public-yum-el5.repo I set: [ol5_u5_base] name=Oracle Linux $releasever - U5 - x86_64 - base baseurl= gpgkey= gpgcheck=1 enabled=1 [el5_addons] name=Enterprise Linux $releasever - $basearch - addons baseurl=$basearch/ gpgkey= gpgcheck=1 enabled=1 [el5_oracle_addons] name=Enterprise Linux $releasever - $basearch - oracle_addons baseurl=$basearch/ gpgkey= gpgcheck=1 enabled=1 then did yum install python-ZSI yum install ovmcli and everything worked fine. For yum experts maybe this is obvious, but for others like me who are not, I hope this helps. Jim

Posted by Jim Gish on October 21, 2010 at 12:34 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Wim Coekaerts is the Senior Vice President of Linux and Virtualization Engineering for Oracle. He is responsible for Oracle's complete desktop to data center virtualization product line and the Oracle Linux support program.

You can follow him on Twitter at @wimcoekaerts


« August 2016