Building my Orion Server [VMware Scripting Edition] – Step 1

This is part 1 of a multi-part post on updates that I’ve made to How I Build an Orion Server.  Primarily, it will be three parts.  If you need this for a Hyper-V environment, I’ve got that script as well.

  1. Building my Orion Servers in VMware
  2. Configuring the disks on the VM after OS install
  3. Configuring the VM with the new disks

I’ve been working on converting my Hyper-V scripts to be useful for VMware environments as well.  This is my first pass with building the VM’s on VMware.

So, here’s my variable declaration:

Easy part is done.  I’ve configured how I want the Orion Server to be architected (at least the general framework).  Note the $GuestOS variable which (in my case) is Windows 2016 Server.  You may need to change this for your own environment.

Next is going through the motions of using these variables to create a VM.  Since reservations are handled differently within VMware as opposed to Hyper-V, I’ve kept some of the names of the variables the same.

Before I can even get started, I’ll need to enable the PowerCLI commands and disable (maybe) the Hyper-V commands.  This is done via choosing the modules to use within PowerShell.

Now I’ll need to connect to the vCenter that runs my infrastructure.  I first check to see if it’s already connected (which it probably won’t be) and then I connect to it.

I’ll also need to specify on which host I want to configure this VM.  In my case I have quite a few, so I want to find the one with the most available CPU available.  You can specify a host or a cluster manually if you prefer.

Hyper-V uses a percentage to determine how many MHz to reserve, whereas VMware uses an actual MHz value.  I didn’t want to change my variables, so I needed to calculate the per processor MHz for the host.

I’m just about ready to build the VM.  Now I need to convert the disk sizes to a list and convert them from bytes to GB.

We’re ready to build the VM.

Now let’s put in our reservations.

Lastly, we’ll set the Network Adapter to the proper VLAN.

That’s it.  After it’s executed, this is what I get:

Orion Server on VMware

That’s pretty much it.  This script was tested with ESX 6.0 with Windows 10 as the client.

Now I boot it up use my Windows Deployment Server to install Server and go from there.

The next post will include an optimized way that I handle the post-image configuration.  It’s basically a scripted version of my original post.

Keep on Rambling!

Leave a Reply

%d bloggers like this: