- Cleanup Irrelevant Data
- Don't bring over that downloads folder on every server full of drivers, hotfixes, patches, service packs, etc. Remember storage is now shared among many VMs now, try not to duplicate things like that.
- Stop transactional services during P2V
- MSSQL, mySQL, etc.
- Disable Windows Updates
- You don't want your source to reboot due to automatic updates mid-P2V
- Do not resize volumes during P2V
- Resizing volumes will increase P2V time significantly because instead of doing a block-level copy the convert would have to use file-level copy
- Set Target disks to Thin
- Take advantage of thin provisioning--make sure you have vCenter Alarms setup to alert you when datastores near capacity
- Move the Page File to a seperate volume (if it isn't already)
- If you are moving away from traditional backup methods to new vStorage methods you can't exclude the page file from backups typically--however if it's on a dedicated volume (separate vmdk) you can typically exclude it then
- Don't Team NICs
- You should build redundancy at the vSwitch level and use a single NIC for the VM (having a separate NIC connected to another vSwitch for backups, or Internal/External Interfaces is still ok)
- Get rid of all the extra software/agents physical servers require--Dell OpenManage, HP Insight, Broadcom/Intel Teaming Utilities - If your using Dell Servers use my Cleanup Script to automate the process
Here is my session on a quick overview of vCenter Orchestrator.
Thanks to Tony the VMUG Leader for posting the recordings from the Q3 SFL VMUG.
Links I spoke about:
- Tutorials & Tons of other vCO info - http://vcoteam.info
- NetApp vCO Plugin - http://communities.netapp.com/groups/vmware-vcenter-orchestrator-plug-in-for-netapp-v10-beta
- VIX vCO Plugin - http://labs.vmware.com/flings/vix-vco
Simple little code snippet that you might find handy to use in vCenter Orchestrator. I am working on a workflow that needs to clone a VM and the name should increment by 1 for example, we want to clone appweb1 (but we already have appweb2, 3, 4) so we want the new VM to be appweb5.
Inside a new Scriptable task create an output parameter called newvmname and make it's source itself. Then use this bit 'o code:
var vms = System.getModule("com.vmware.library.vc.vm").getAllVMsMatchingRegexp("appweb[0-9]");
for (var i=0; i System.debug("Counting VMs:" + i);
var newvmname = "appweb" + i;
<span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;">If anyone has a better way to do this I'd love to hear it, I know you should be able to use the getAllVMsMatchingRegexp as an action inside the Schema but it seemed clunky to do that then pass to a Scriptable task when you can do it all in one object.</span>
We needed a fast way to provision 180+ ESXi servers to boot from SD Cards, ESXi 4.1 introduced Scripted Installation to ESXi (the feature has been in ESX classic for awhile now)
However it is limited:
- Installation on USB Devices (SD cards, flash drives, etc.) isn't currently supported.
Uhoh, our plan is to use SD Cards in Dell PowerEdge T610s and Dell PowerEdge 29xx (I'll explain how on the 29xx in a later post) for our installs. This isn't good...
We figured we could build a golden image and clone our SD cards from that, but cloning the SD cards proved difficult. I tried a lot of different apps and nothing seemed to work--we had trouble with DD even. Then I stumbled across this blog post from Luke: Fast deployment of vSphere ESXi 4.0 running on a 1GB SD-Card
Luke recommended WinImage to do this cloning, I still couldn't get WinImage to work at first but a quick email to Luke cleared up my troubles (thanks again Luke)
It was good to see my process to create the gold image was similar to how Luke did his just a few minor variations:
Creating the Gold Image
- Use a spare box for these steps--
- Install the Dell customized ESXi 4.1 onto the SD Card
- The Dell customized ESXi isn't actually required--from what I've read it simply updates support links and other textual things to refer to Dells support pages for various things...but whatever.
- Add the host in vMA so I can install OpenManage 6.3.0
- OpenManage for ESXi is provided as a VIB and I choose to install via vMA
- Set root password
- Configure CIMOEMProvidersEnabled
- Configure NTP
- Add your license key--even if it's ESXi free VMware will provide a license key -- otherwise you'll start the evaluation clock ticking...
- Create custom roles
- By default there are only three roles: No access, Read-only, and Administrator
- I create an additional role, Virtual machine user with basic access to work on VMs (Power on/off, Remote Control, Mount Discs, etc.)
- Ensure networking is set for DHCP
- Ensure no datastores exist
- Shutdown & yank the SD card out of the host
- Clone to a file using WinImage
- Clone from a file to a new SD card using WinImage
- Profit $$$
Many folks have blogged about building a home lab--I have an old lab that really draws some power and not really giving me what I'd like. With that in mind I set out to build a new lab but with the intent of being as cost-effective as possible. Lots of folks are running T610s and T110s but those draw a lot of power and cost quite a bit more then I'd like. Others white-box some awesome labs for cheap but they still consume a lot of power.
I came across the HP Micro Servers that seem to be gaining alot of popularity, but opted against them for 2 reasons:
- They use older generation AMD processors - I can white-box similar functionality with the latest generation processors for less money
- HP - 'nuff said
- Motherboard: ASUS E35M1-M Pro
- RAM: G.SKILL Ripjaws Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1333 (PC3 10666) Desktop Memory Model F3-10666CL9D-8GBRL