Tl;dr: You need the vApp > Import permission to deploy templates from a Content Library. Read on for the full adventure. I have mixed feelings about VMware’s documentation. On certain products or topics, I’ve found it to be quite good. On others, it can certainly be lacking. Among all of that though, the VMware community seems to always step in to fill the gap. Today was not one of those days.
I’m not sure how long ago I actually wrote this script, or why it took me so long to get around to blogging it, but this is easily the most used script I’ve ever written. Since VMware made its debut at Sheetz over a decade ago, the number of vCenters to manage has grown quite a bit. The actual number is honestly irrelevant, because connecting PowerCLI to more than one at a time annoys me.
My biggest annoyance in having multiple vCenters that aren’t in Enhanced Linked Mode is having to do the same task over and over again against different targets. Luckily, PowerCLI and I have become friends over the past few months, and it’s quite good at repetitive tasks. Today, we’ll be using it to clone a role from one vCenter to one or many others. Thanks to an awesome community, I quickly found a blog post on how to clone a role from one vCenter to another.
This post is mostly just going to be a short shoutout to a blog that has helped me a few times now. Eric Shanks at The IT Hollow has a great series on vRealize Automation 7. He covers topics from installation and configuration, through administration, integration, and upgrades. I haven’t been through all of it yet, but I’m betting I’ll be referencing most of it over the next few months.
I’ve been quiet on here for a while, and I wanted to give you an explaination. It’s not because I’ve got nothing going on or to talk about. It’s quite the opposite. First I want to say thanks to Ariel, Carl, and the rest of the PGH Little Hack crew for being so welcoming and helpful. They’ve helped me take my Pittsburgh and Central PA VMUG attendances to the next level by pushing me to collaborate and contribute with the vCommunity.
Sometimes it feels like I should just redirect my blog to William Lam’s. It’s not that I read through it, implementing what he wrote about a year ago; but every time I have a task to tackle he’s in Google’s top five results. Recently my question was TLS, and he wrote my answer 18 months ago. VMware has a nice tool with great documentation and the best name: The TLS Configurator.
I’ve been a fan of VMware’s Site Recovery Manager since I began working with it about 5 years ago. It’s a simple but powerful orchestrator to fail over one or all of your VMs to another site. There are plenty of good guides on getting it working, and it is intuitive enough that most of the time you can just wing it; not that I condone that kind of administratorship… :-)
Somewhere between the fat client and the Flash web client, VMware lost the ability to export a VM or template as an OVF. My experience is that though it runs and appears to succeed, you never get a good file out. I’ve tested with multiple vCenters, browsers, VMs, and Flash and H5 clients; it all fails. Enter OVFTool. VMware OVFTool is a command-line utility that allows you to import and export OVF packages to and from many VMware products.