This is just a quick script I put together for a fellow SA to generate a HTML Report contianing details on the configured volumes for all running Windows Guest VMs. The HTML report shows the Name, Label, Filesystem Type, Allocation Unit (Blocksize), Capacity, and Free Space.View full post
In January 2014 the VMware vSphere 5.x Datacenter Design Cookbook I wrote was published by Packt Publishing. Just before Christmas the publisher of the vSphere Design Cookbook contacted me about updating the book to vSphere 6. After a bit of planning what updates would be included I accepted. I started working on the update this past week and submitted the first draft of the updated Chapter 1 last night.View full post
This is just a quick script I put together for a fellow SA to generate a HTML Report contianing details on the configured volumes for all running Windows Guest VMs. The HTML report shows the Name, Label, Filesystem Type, Allocation Unit (Blocksize), Capacity, and Free Space for each volume in a Windows Guest VM.
The current version can be found here: https://github.com/herseyc/PowerCLI-Scripts/blob/master/VM-BlockSize.ps1
In January 2014 the VMware vSphere 5.x Datacenter Design Cookbook I wrote was published by Packt Publishing. The book covers the VMware Design Methodology and Process. The book was written in a cookbook style providing “recipes” for incorporating vSphere 5.x functions and features into a virtual datacenter design.
The goal I had for the book was to assist people working towards the VMware Certified Advanced Professional Datacenter Design (VCAP5-DCD) Certification and I used the VCAP-DCD blueprint as somewhat of a guide when creating the initial outline for the book.
Just before Christmas the publisher of the vSphere Design Cookbook contacted me about updating the book to vSphere 6. After a bit of planning what updates would be included, I accepted. I started working on the update this past week and submitted the first draft of the updated Chapter 1 last night.
I received a lot of positive feedback and reviews from the VMware community on the first revision of the book. As I had hoped many found it to be a helpful resource for preparing for the VCAP Design exam. I really appreciate all the feedback and I am looking forward to incorporating the feedback in this new revision.
One way to automatically start VMs on a host after a reboot is to use the VM Startup/Shutdown feature. This feature works well on standalone ESXi hosts and will ensure VMs start automatically in a configured order after a host reboot. The image below shows how this is configured on an ESXi host managed by vCenter using the Web Client.
From the vSphere Client managing a host directly it can be found on the Configuration Tab, Virtual Machine Startup/Shutdown.
An important thing to note here is, if the host is part of a vSphere HA cluster, the automatic startup and shutdown of virtual machines is disabled. Even if HA is not enabled and you vMotion a VM from one host to another, and then back, it sets the machine back to manual startup.
What if the VM is not protected by HA (on local storage) or if for some reason HA does not work (for example all hosts in a cluster fail). What if… What if… What if…
Now not to get into a design discussion about mitigating the risks of all host failing due to a power outage or an issue with a blade chassis or whatever. It can still happen. I wanted to come up with a fairly bullet proof solution which would start a VM, in this case a Domain Controller running in my home lab, when ESXi boots.
Finished up another successful vSphere 6 Install Configure Manage class at Tidewater Community College last week. Time to re-provision the lab environments to get things ready for the next class.
I wrote a PowerCLI script to help with the lab provisioning process. The script does the follow:
- Distributes vApps across available hosts in my TCC lab cluster.
- Creates an isolated vSwitch on the host and the required PortGroups for each lab environment.
- Clones the Master Lab vApp to the lab vApp.
- Attaches the Lab VM’s Network Adapters to Correct Port Groups.
I have a vApp which has been configured for the lab environment with all the necessary bits and pieces needed for the ICM labs. The Master Lab vApp was inspired by AutoLab and has been modified to support the lab exercises for the ICM class. I also have a version configured for the Optimize and Scale class, and I am working on a version for the View ICM class.
Here is a pretty basic diagram of what each lab environment looks like.
Each lab is connected to an isolated vSwitch (no physical uplinks) with two PortGroups. One PortGroup has promiscuous mode enabled (set to Accept) this PortGroup is used for the VM Networks on the nested ESXi servers, the other PortGroup has promiscuous mode disabled (Set to Reject) which is used for all other VMs. Students access the labs by RDPing to the Classroom connected router VM which has a port-based NAT to forward the RDP connection through to the vDC.
The vDC is a Windows Server 2008 R2 VM (soon to be updated to Windows Server 2012) which acts as the lab domain controller and has all the software (clients, putty, class isos, etc) on it. The vCenter (VCSA) and ESXi servers provide the nested virtual environment for the lab. The NAS is a FreeNAS Appliance which provides iSCSI and NFS Storage for the lab environment.
Had a couple of issues in the labs for class last night. Unfortunate since these are assessment labs for the final the students get a little frustrated when there are issues.
A couple of VMware KBs which came in handy that I am going to leave right here for future reference.
Labs are pretty stable now and everyone was able to complete all the lab tasks last night (just took a little longer than expected). Have some testing to do but things should go well for part two of the class lab assessment next week.
Hope everyone has a great Thanksgiving!!!
I have so much to be thankful for…
A great family – My wife, kids, mom, sister, and brother are all awesome! Always thankful for their love and support.
A great job working for a fantastic company.
The men and women serving in the armed forces. I appreciate the sacrifices they make and think about them often. Hope they stay safe and get home soon.
The #vCoffee Crew! I know it is a little silly, but I appreciate the tweets every Saturday and Sunday AM over coffee. And it is especially great when we get to meet up in person.
Coffee, I am thankful for coffee
Have a great day everyone!
I created this script to help assist a customer automate an operation they perform regularly. Basically they restore a VM and then either attach directly to a vmdk in the restored VM or copy a vmdk into a folder of a target VM. This task is performed regularly and to reduce time and the risk of errors in attaching or moving the wrong vmdk they wanted a way to automate the process to be able to repeat the process quickly and accurately.
The script below will copy a virtual machine disk ($recoveryHD) from one VM ($Source) and then attach it to another VM ($Target).
The title may be a little misleading. Sorry no new gear in the home lab. The home lab is running pretty good right now, don’t really have any needs in the lab at this time (there are always wants, but no needs right now).
I have had an aquarium since before I can remember. Back when I was a younger I had 10 and 20 gallon freshwater tanks. For the last 25 years or so I have maintained a 55 gallon freshwater tank. Here is a picture of my 55 gallon tank in our living room.
My job at SimpliVity has me based out of my house and I spend a day or so a week at home in my office working on SimpliVity designs and such. So I decided I wanted an aquarium in my office space. I thought about moving the 55 gallon upstairs into the office, but we (my wife and I) really like it downstairs in the living room.