Posts tagged ‘ESXi’

vMotion fails at 10% with error 0xbad010d on VMware ESXi

Written February 14th, 2013 by
Categories: Virtualization
No Comments »

I recently had this problem, but forgot to take a screenshot for the blog, sorry guys.

I was patching an HA/DRS cluster using VUM and none of the VMs would migrate off one specific host. The error it gave was “A general system error occured: Failed to start migration pre-copy Error 0xbad010d. The Esx host failed connect over the VMotion network”.

Read the rest of this entry »

Create new role & user on ESXi host via PowerCLI & PowerShell

In this post I talked about automated deployment that launches the remote console for me. Since I had 24 hosts that need the user & role, I created a script that does it for me. Nothing special, just something quick that works…
Read the rest of this entry »

Script I needed to get info for multiple VMs = Get-VMInfo.ps1

Written May 5th, 2011 by
Categories: Scripts, Virtualization
2 comments

I’ve recently had a ton of requests for information about specific VMs. They want to know how many disks they have, CPU count, how much RAM, and which environment the VM resides in.

Instead of constantly searching vCenter, I wrote this quickly during the meeting to query multiple servers.
Read the rest of this entry »

Script to pull host UUID for VMware PowerCLI

Written February 2nd, 2011 by
Categories: Scripts
12 comments

A reader on a previous post asked about pulling host UUIDs, so I wipped together this script.

Usage is like this:
Get-VMHostUUID.ps1 -vmhosts ("host1","host2","host3")or
Get-VMHostUUID.ps1 -vc vcenterserver -container cluster1/folder/dc/etc
Read the rest of this entry »

System Error: vmodl.fault.hostcommunication

I upgraded one of my lab hosts to ESXi 4.1 yesterday and was plagued with this error:

System Error: vmodl.fault.hostcommunication

vmodl.fault.hostcommunication

A lot of people are getting this error without a lot of direction. As it turns out, this is because I upgraded one of my hosts to 4.1 without upgrading vCenter to 4.1. Silly me! Who would have thought that vSphere vCenter couldn’t manage a vSphere host because it’s rev is 0.1 higher?

VMware ESXi 4.1 brings Scripted Installs!!

Written July 31st, 2010 by
Categories: Virtualization
No Comments »

This is a welcomed (and much demanded) added feature to ESXi. I talked about the deployment of multiple ESXi hosts previously and how I used a golden image to lay down on individual SD cards.

It’s currently supported using a boot CD or PXE. However, the scripted installation is only for local or remote disks, installation on USB devices (SD cards, etc), isn’t currently supported.

It’s very similar to ESX, in that it uses a kickstart file to load the OS, and can be pulled from all the typical locations (FTP, HTTP, NFS, USB, etc).

At least this is a huge step in the right direction.

For more information on the install of ESXi 4.1, see chapter 5 of this doc.

ESXi Auto configuration script

Lets face it, repetition sucks. When provisioning ESX hosts, using such things as the EDA make life easier, but it only does so much for ESXi.

The install for ESXi is simple and straight forward, but when done, you have to go and set everything else (IP, hostname, DNS, local users, etc…). Doing this for 20 hosts could be a PITA (Pain In The A..), so I set out on writing a script that does all of this for you.

All you have to do is set the IP & root password, then verify you can ping the host by it’s hostname (set host/A record in DNS). Once that’s verified, here’s what the script does for you:

  • Creates an Admins group and assigns it to the Administrator role
  • Creates local users, sets their default password, and adds them to the Admins group
  • Sets primary & secondary NTP & DNS servers
  • Sets DNS search suffix
  • Combines the provided hostname with DNS search suffix to populate the hostname FQDN
  • Sets EnableNaviReg to 0, disabled (requested by my storage team)
  • Disables iSCSI (disabled by default, but enabled in my sd image I created from previous post, thus the need to disable)
  • Disabled Tech Support Mode, aka ‘unsupported’ console

This is a slightly more advanced script, and it’s not fully polished, but works. Read the rest of this entry »

Finding WWNs for HBAs in multiple ESX or ESXi hosts, standalone or clustered

**Update May 07, 2012 – Use the new script here: Updated: Finding WWNs for HBAs in ESXi hosts, now with Get-VMHostHba

When building a new cluster, your storage team (or you) may need to add several hosts into the shared storage zone. It’s a pain to go to each host, configuration, storage adapters, then copy out the WWN.

With this script, you can supply a vCenter server and Cluster/Folder/Datacenter (any logical container) and it will list all the WWNs for Fibre Channel devices. But what if you don’t have vCenter stood up yet? No problem, you can also supply a list of ESX/ESXi hosts to scan.

Shawn & I built this because we have 20 hosts we need the WWNs from to provide to our storage team, and vCenter isn’t alive yet.

Our script: Read the rest of this entry »

vSphere Maximum Configuration – VMs per host limitations on Update 1

Written February 18th, 2010 by
Categories: Virtualization
1 Comment »

When planning a new virtualization environment, consolidation numbers are always flying around, and specifically the number of VMs you can run on a host.

According to This Doc you can have a max of 320 VMs per host, but keep in mind the number’s different for HA clusters. I was also pleased to find out the numbers were slightly changed for Update 1. Read the rest of this entry »

Fast deployment of vSphere ESXi 4.0 running on a 1GB SD-Card

Written February 18th, 2010 by
Categories: Server Hardware, Virtualization
4 comments

When we’re ready to deploy new ESXi hosts in our environment, we order them from Dell with ESXi pre-loaded on the internal SD-Card. This is nice and all, but what do you do when you have to go through and configure NTP, Users, Groups, Scratch directory, lockdown mode, and the list goes on?

You’d have to fire up each server, go through and configure everything, x10 if you had 10 new servers.

Since we’re working on a new rather larger virtualization deployment, we were looking at ways to overcome this.

Read the rest of this entry »

Designed by ThepHuck
Wordpress Themes
Scroll to Top