February 23rd, 2015 by JFrappier

Jonathan Frappier Virtxpert

I wanted to share some of the example Ansible playbooks used during last Wednesday’s US #vBrownBag. During the show I went over examples of how you can use Ansible to create, clone, and update virtual machines in vCenter without the need for other provisioning tools. Based on my testing (and I’m still learning as well), the items noted in the comments are the bare minimum needed to run the playbook, even though the official documentation may currently state otherwise. If you are already using Ansible for configuration management, this is a handy option to have as you can perform the provisioning tasks without leaving Ansible.

All playbooks have been uploaded to my GitHub Ansible-Test-Playbooks repository (https://github.com/jfrappier/ansible-test-playbooks/).

#vBrownBag Using Ansible with vCenter Examples

Posted in Tech Tagged with: , , , , , , , , , , , , , , , , , ,

December 30th, 2014 by JFrappier

Jonathan Frappier Virtxpert

In my last video, we walked through how to install VMware Tools for CentOS 6.x. Now we are going to prepare the virtual machine for cloning. This requires we remove a specific file; /etc/udev/rules.d/70-persistent-net.rules. This file contains the MAC address for the virtual machine. Once removed, the file will be created during the initial boot with the matching MAC address for the cloned virtual machine.

Prepare CentOS 6.x virtual machine for cloning

Video: Prepare CentOS 6.x virtual machine for cloning

Posted in Tech Tagged with: , , , , , , , , , , , , , , ,

November 2nd, 2014 by JFrappier

Jonathan Frappier Virtxpert

Now that you have your first Windows VM built and patched, you’re probably itching to get things built like turning the virtual machine it into your domain controller for the home lab which will be used for authentication throughout this setup.  However, we want to be efficient with our time so we are going to take our Windows VM and use it to clone new VMs since at the very least I will need 3 Windows virtual machines for this lab; a Domain Controller, SQL server and web server for the vCloud Automation Center/vRealize Automation Infrastructure-as-a-Service server.

So once your Windows VM is fully patched there is one house keeping item to take care of before we use it to clone, and that is to sysprep it.

  • Log into the Windows VM, in my case a Windows 2012 VM and open the Start menu
  • Type C:WindowsSystem32Sysprepsysprep.exe and press the enter button or click on sysprep.exe in the search bar
  • Make sure Enter System Out-ofBox Experience (OOBE) is selected int he System Cleanup Action pull down menu. Next Click on the Generalize checkbox and change the Shutdown Options pull down menu to Shutdown; click OK
  • After a few minutes Windows will shut down – don’t worry we want the template shutdown as we cannot clone a running VM in VMware Workstation.
Windows Sysprep

Windows Sysprep

You should now have a powered off virtual machine, I chose to put mine into a folder called Templates though you can organize as you wish.  Now I want to clone this template.

  • Right click on the virtual machine in VMware Workstation and go to Manage >> Clone
  • With no snapshots you could will only have the option to “Clone from” The current state in the virtual machine.  You could take a snapshot and do clones from there, click Next
  • One of the cloning process options in VMware Workstation is Create a linked clone, which means you will only have a delta file for changes associated to that virtual machine – that is what I will be using.  Select the Create a linked clone radio button and click Next
  • Name the virtual machine and place it in the desired location, in my case I have named it vxprt-dc01 and placed it in V:VMsvxprt-dc01 – click Finish and then close when the Clone virtual machine wizard completes.

Since the virtual machine was setup using a linked clone, the cloning process will have finished quickly and be space efficient for the lab environment, you will be ready to boot your VM.  I moved my VM into a folder I created called Lab, you can see my VMware Workstation layout below.

VMware Workstation folder layout

VMware Workstation folder layout

With the VM cloned and powered on, you will be ready to setup your first virtual machine – our domain controller.

VMware Workstaion Home Lab Setup Part 2 – Attack of the Clones

Posted in Tech Tagged with: , , , , , , , , , , , , , , , ,