Unable to join domain when deploy a template using guest customization specification
At a customer I was unable to join a domain when deploying a template from vCenter using a guest customization specification. This only happened with Windows 2008 R2 and Windows 7 templates.
To solve this problem, you need the do the following in the guest customization specification:
- Enter the FQDN name in Windows Server Domain field (1)
- Enter the user@domain_FQDN in the username field (2)
I used the NetBIOS domain name in the “Windows Server Domain” field and “domain\username” in the username field what doesn’t work with Windows 2008 R2 and Windows 7 anymore.
More information can be found here state that you need to fill in:
Unable to delete a VMDK because it’s locked
When trying to delete an “old” VMDK file, I’ve got the following message “device or resource is busy”. I was pretty sure that the VMDK was not connected to any VM(s) anymore. I tried to delete the VMDK by command line and by using the datastore browser.
I found the VMware KB article “Virtual machine does not power on because of locked files”
This KB article describes how to find the VMware ESX host that holds the lock.
To identify the VMware ESX server that holds the lock, used the following command:
vmkfstools -D /vmfs/volumes/<LUN/<name server.VMDK>
This command reports in the vmkernel.log the MAC address of the ESX server that holds the lock. Look in the vmkernel.log by using the following command:
tail /var/log/vmkernel log
The vmkernel.log output:
Mar 29 15:43:07 server vmkernel: 7:03:34:25.713 cpu9:4223)FS3: 142: <START server-flat.vmdk>
Mar 29 15:43:07 server vmkernel: 7:03:34:25.713 cpu9:4223)Lock [type 10c00 001 offset 31932416 v 142, hb offset 3272704
Mar 29 15:43:07 server vmkernel: gen 99305, mode 1, owner 4d39b32d-ef56720 9-7754-0025b3e1a4c8 mtime 3227617]
The bold text is the MAC address of the VMware ESX server that holds the lock. Now we need to find the VMware ESX server that matches the MAC address. The following PowerCLI script displays all MAC address of all VMware ESX servers and displays this in a gridview.
|
001
|
Connect-viserver vCenterserver
Get-vmhostnetworkadapter | Select vmhost,mac | Out-GridView
|
With a gridview it is possible to filter easily. Add the last part of the MAC address (including the : ) and the corresponding VMware ESX server is displayed:
On the VMware server that holds the lock restart the Management agents by using the following command:
service mgmt-vmware restart
The lock disappeared and I was able to remove the VMDK file.
VMware, Microsoft and Starwind software updates
Last weeks a lots of software updates and new releases are published. Here’s an overview of some of them:
VMware
VMware vSphere 4.1 Update 1
A new update for vSphere 4.1 is released. Here are the ESX(i) and vCenter improvements:
VMware ESX(i) 4.1 Update 1 improvements:
- Enablement of Trusted Execution Technology (TXT) — ESXi 4.1 Update 1 can be configured to boot with Intel Trusted Execution Technology (TXT). This boot option can protect ESXi in some cases where system binaries are corrupted or have been tampered with. TXT is currently available on Intel Xeon processor 5600 series servers. For more information, see KB 1033811.
- Improvement in scalability — ESXi 4.1 Update 1 supports up to 160 logical processors.
- Support for additional guest operating systems — ESXi 4.1 Update 1 provides support for RHEL 6, RHEL 5.6, SLES 11 SP1 for VMware, Ubuntu 10.10, and Solaris 10 Update 9 guest operating systems. For a complete list of guest operating systems supported in this release, see the VMware Compatibility Guide.
- Inclusion of additional drivers — ESXi 4.1 Update 1 includes the 3ware SCSI 2.26.08.036vm40 and Neterion vxge 2.0.28.21239-p3.0.1.2 drivers. For earlier releases, these drivers are only available as separate downloads
The release notes can be found here.
VMware vCenter Server 4.1 Update 1 improvements:
- Additional Guest Operating System Customization Support: vCenter Server now supports customization of the following guest operating systems:
- Windows 7 SP1 (x32 and x64)
- Windows Server 2008 R2 SP1 (x32 and x64)
- RHEL 6.0 (x32 and x64)
- RHEL5.5 (x32 and x64)
- Additional vCenter Server Database Support: vCenter Server now supports the following databases:
- Microsoft SQL Server 2008 R2
- Microsoft SQL Server 2005 SP3
- Oracle 11g Standard/Enterprise Release 2, 11.2.0.1.0 or later, (x32 and x64)
- IBM DB2 9.7.2 Express C (x32 and x64)
- IBM DB2 9.7.2 Enterprise (x32 and x64)
For more information about using IBM DB2 – 9.7.2 database with vCenter Server 4.1 Update 1, see KB 1033201.
The release notes can be found here.
vSphere 4.1 Update 1 can be downloaded here.
VMware Data Recovery (vDR)
There is NO new version of vDR but it is now included in the standard edition of vSphere since vSphere 4.1 Update 1. You can compare the vSphere versions here. For people who have who already bought vSphere standard and have a current subscription are able to download the vDR.
VMware ESX 3.0.3 patches
A new VMware ESX 3.0.3 patches are released . More information on these patches can be found in the following links:
The ESX 3.0.3 patches can be downloaded here.
VMware vCloud Director 1.0.1
New features are support for vSphere 4.1 Update 1, complies with Internationalization I18N Level 1 and IP Translation for Organization Networks support. The release notes can be found here.
vCenter Server Heartbeat 6.3 Update 1
The following enhancements (Note: The features available depend on the version of vCenter Server installed) are available in this release:
- Enhanced passive server management capabilities — A new deployment option allows the passive server to be managed and monitored remotely, this includes receiving file level antivirus updates. This option is only available for:
- vCenter 4.0 U1 and its updates, 4.1 and its updates
- Remote SQL Server 2005, 2008 onl
Please refer to install documentation for detailed requirements and install procedure specifically around DNS and changes required to Active Directory during installation.
- Secure Client Server Communications — vCenter Server Heartbeat now provides secure client server communications with SSL Encryption using a 2048-bit key.
- Support for View Composer — This release of VMware vCenter Server Heartbeat now provides support for View Composer v2.5
The vCenter Server Heartbeat 6.3 Update 1 release notes can be found here and downloaded here.
VMware vCenter Site Recovery Manager 4.1.1
VMware SRM 4.1.1 in a maintenance release. It has bugfixes and supports VMware vSphere 4.1 Update 1. Before installing VMware SRM 4.1.1 you need to update the vCenter server to 4.1 Update 1. The release notes can be found here an be downloaded here.
Microsoft
System Center Virtual Machine Manager 2008 R2 (SCVMM)
Microsoft has published a KB with the recommend hotfixes when performing P2V conversions by using SCVMM R2.
Windows Server 2008 R2 / Windows 7 SP1
On Technet and MSDN SP1 for Windows 2008 R2 and Windows 7 is released. SP1 has a lot of patches and bug fixes. Two new features are memory compression (Hyper-V) and Remote FX (Remote Desktop Services).
Starwind
Starwind iSCSI SAN 5.6
A new version of the Starwind iSCSI SAN 5.6 is released. The Starwind iSCSI SAN software converts a Windows bases server into a fail-safe, highly available iSCSI SAN. This release has the following improvements:
- Event Log – Improve your storage management and tracking of system state with new event viewer
- Event notifications – Be aware of every single event by e-mail, records to Windows Event Log, records to text files
- Experimental version of inline block level Deduplication plugin
- Management Console multilevel improvements
Starwind offers a free NFR license valid for 6 months for MCP, MVP and VCP certified people. Request the NFR here. The installation and configuration is very simple. Within a couple of minutes you have an working iSCSI SAN. it support Microsoft Hyper-V R2 Live migration (SCP-3 persistent reservations) and VMware vSphere clustering with DRS, HA and VMotion.
Post checks after upgrading to VMware vSphere 4.1
Memory limits
When adding existing VMware ESX servers (for example 3.5) to the VMware vCenter 4.1 server, all the VMs got a memory limit.
To reset the memory limits to unlimited for all VMs, use the following PowerCLI script:
Connect-VIServer servername Get-VM | Get-VMResourceConfiguration | Where-Object {$_.MemLimitMB -ne ‘-1‘} | Set-VMResourceConfiguration -MemLimitMB $null
VMware ESX NICs as fixed
Already mentioned earlier in the “Change NIC speed and duplex setting to AUTO in ESX4 using PowerCLI” blogpost. The VMware ESX installation set by default each NIC in the VMware hosts to fixed. To change every NIC from fixed to auto negotiate use the following PowerCLI script
Connect-VIServer servername Get-VMHostNetworkAdapter | Set-VMHostNetworkAdapter –AutoNegotiate
Active Directory Web Services warnings in the vCenter server event log
The following warning is flooding the vCenter event log:
Active Directory Web Services encountered an error while reading the settings for the specified Active Directory Lightweight Directory Services instance. Active Directory Web Services will retry this operation periodically. In the mean time, this instance will be ignored.
Instance name: ADAM_VMwareVCMSDS
EventID: 1209
The Port SSL value is created as a REG_SZ instead of a REG_DWORD. To solve this warning open the Windows registry editor (regedt32) and browse to:
- HKLM\System\CurrentControlSet\Services\VMwareVCMSDS\Parameter
- Delete the “Port SSL” value
- Create a new ““Port SSL” value as REG_DWORD and give it the data 636.
- Restart the ADM instance
Good readings on vSphere
The last weeks a couple of new or updated technical readings are published. Here is an overview:
- VMware vCenter Update Manager Performance and Best Practices for vSphere 4.1.
- VMware vCenter Server Performance and Best Practices for vSphere 4.1.
- VMware Host Profiles – Technical Overview.
- vSphere 4.0 to 4.1 differences.
- VMware vSphere on NetApp Storage Best Practices Technical Report v2.1.
- Sample chapter(5) from the HA and DRS deepdrive book from Duncan Epping and Frank Denneman.









Recent Comments