As of lately I’ve been playing around with some of the many management tools and that are available from VMware. One nifty tool that I’ve decided to start using a bit more due to top secret reasons is the Ruby vSphere Console (RVC). For those of you who don’t know about RVC here is a bit of information about it.
Ruby vSphere Console (RVC) is a Linux console UI for vSphere, built on the RbVmomi bindings to the vSphere API. RVC is a console UI for ESXi and vCenter servers. The vSphere object graph is presented as a virtual filesystem, allowing you to navigate and run commands against managed entities using familiar shell syntax. RVC doesn’t (yet) have every feature vSphere Client does, but for common tasks it can be much more efficient than clicking through a GUI.
The RVC has been available for some time as one of the Flings available at the VMware labs website. While I’m not new to the tool, it has been a long while since I last played around with it. While trying to complete one of my projects testing interoperability and capabilities of the tool I came a cross an error that halted my progress for a few minutes, but lucky for me my old school Ruby skills haven’t been completely flushed out my brain and some searching I was able to correct issue.
Here is the problem I experienced and the solution implemented:
When attempting to open a connection to a vCenter Server virtual appliance from the Terminal application in OS X (10.8.4) I received the error illustrated below:
From the looks of it, there seems to be some sort of problem with one of the RVC ruby modules which is called out in the first line of the error output with a (SyntaxError) listed in parenthesis.
- /Library/Ruby/Gems/1.8//gems/rvc/-1.7.0/lib/rvc/modules/vds.rb:662:in ‘load_code’: compile error (SyntaxError)
- :switchUuid =>portgroup.config.distributedVirtualSwitch.uuid,