How to easily recreate missing or corrupt VMDK file (virtual machine disk descriptor file)

Hello Friends,
You can find official VMware kb in the url

Here I want to explain the details to recover the vmdk’s in your datastore.

Overview steps

Note: It would be advisable to attempt to restore the missing descriptor file from backups if possible. If this is not possible, proceed with recreating the virtual machine disk descriptor file.

To create a virtual machine disk descriptor file:
Identify the size of the flat file in bytes.
Create a new blank virtual disk that is the same size as the original. This serves as a baseline example that is modified in later steps.

Note: This step is critical to assure proper disk geometry.

Rename the descriptor file (also referred to as a header file) of the newly-created disk to match the name of the original virtual disk.
Modify the contents of the renamed descriptor file to reference the flat file.
Remove the leftover temporary flat file of the newly-created disk, as it is not required.
Note: This procedure will not work on virtual disks configured with a Para-virtualized SCSI controller in the virtual machine.

Detailed steps

To create a virtual machine disk:
Log into the terminal of the ESXi/ESX host:
For ESX 4.1 and earlier, see Connecting to an ESX host using a SSH client (1019852). Alternatively, access the system directly and press Alt+F1 to begin the login process. Log in as root .
For ESXi 4.1 and 5.x, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
For ESXi 4.0 and 3.5, see Tech Support Mode for Emergency Support (1003677).

Navigate to the directory that contains the virtual machine Continue reading

How to easily recreate a missing or corrupt VMX file

Do you have a VM that is missing its VMX file or maybe the VM’s VMX file has corrupted?

Now you could manually recreate a missing or corrupt VMX file (restoring one from a backup would be the best solution) but a quick and easy way for recreating it is to create a new VM within the VMware Infrastructure Client (VIC) or via CLI/RCLI. During the creation process point the new VM’s drives to the existing disk (VMDK) files of the server with the corrupt/missing VMX file.

Below are the basic steps for doing this via the VMware Infrastructure Client interface.

Before beginning to start the process to recreate the VMX file, if it exists, remove the VM from the VMware Infrastructure Clients inventory list (right click on the VM and select ‘Remove from Inventory’). Also if you are trying to replace a corrupted VMX file then rename (preferable option) or delete the offending VMX file.

First start the ‘New Virtual Machine Wizard’ and select a ‘Virtual Machine Configuration’ type of ‘Custom’.

The next page of the wizard will ask for a ‘Name’ for the new VM. Make sure the name you type in here matches the name of the directory on your VMFS partition that hosts the VM with the missing/corrupt VMX file.

If you enter in a different name here the New Virtual Machine Wizard will create a directory of that name that will contain the VMX file Continue reading

Upgrade vSphere 5.0 to 5.5. 512 bit certificate issue

wmware-workstation-logoThis week I upgraded the vSphere 5.0 environment to 5.5 Update 1, which is usually not a big deal. I really can’t complain about the upgrade process itself, it’s more the result which I didn’t expect.
Once all components were up to date, I launched the vSphere Web Client which was working fine but at the top I saw the following error message:
Failed to verify the SSL certificate for one or more vCenter Server Systems: https://vCenter_FQDN:443/sdk
I was able to login via the C# client which showed the vCenter as usual, so it seemed to be a problem between the vCenter server and the Web Client.
After I spoke to the VMware Support it turned out that the vCenter Server doesn’t support the old 512 bit certificates. This problem is mentioned in the release notes:
After you upgrade vCenter Server 4.x to 5.5 Update 1, vCenter Server is inaccessible through vSphere Web Client*
When you upgrade from vCenter Server 4.x to 5.5 Update 1, the vCenter Server is not visible through vSphere Web Client. The issue occurs as vCenter Server 4.x supports SSL certificates with 512 bits but vCenter Server 5.5 supports only SSL certificates with greater than or equal to 1024 bits.
Workaround: To resolve this issue, replace the vCenter Server certificates with greater than or equal to 1024 bits
I wasn’t aware of this issue and even if so I would’t have recognize it, since I upgraded a 5.0 environment. The actual problem was that the environment has been upgraded from 4.1 to 5.0 before which is the cause why there still was the 512 bit certificate in use. To see if you are affected by this problem simply open the the rui.crt file (C:\ProgramData\VMware\VMware VirtualCenter\SSL) before upgrading vSphere:

The funny thing is that none of the installation wizards Continue reading

Automate VMware Tools Upgrade Proceses with PowerCli ( Free, Smart, Secure Deployment )

PowerCLIHello Pals,

If you need a fully automated guest vmtools upgrade process ,  Here you can find a scriptwork to do this automatically. In this script we’re using powershell job which has powercli snap-ins.

I hope it will help ;

## // This Script Automates the Vmware Tools Upgrade Process in a given Vcenter system ! //
# // To be cautious , script also runs snapshot processes before and after execution and uses powercli snap-ins. //
# // ….Developled by Metin Arslan – …. //
#### Continue reading

All About Citrix XenApp Architecture

Citrix Xenapp 6.5 Installation step by step procedure

1. Document Scope:

This document describes the procedure to perform an initial setup of Citrix XenApp 6.5 on a Windows Server 2008 R2.

To support a globally centralized service desk it is necessary to follow this basis document’s procedures. This provides a similar Citrix environment worldwide with differences in view regional based configurations only, but nearly the same behaviour.

  1. System Requirements

•    Ensure that a new database for the new XenApp 6.5 farm is available on the SQL server hosting Citrix datastores in your environment

•   Install XenApp 6.5 on the first server in the farm and perform the initial configuration.

•   Install XenApp 6.5 on member servers and perform additional configuration as necessary.


  1. XenApp 6.5 installation

XenApp 6.5 Wizard based installation:-

To installing XenApp it is recommended to use the Wizard-Based Server Role Manager.On the installation media, double-click autorun.exe. The Citrix XenApp installation menu launches. Select Install XenApp Server.

The Server Role Manager launches and checks if any roles are already Continue reading

Installation and Design of Citrix XenMobile 8.6 (MDM)

50_certLogoHello Mates,

Today I needed to write about the new virtualization technic named as Mobile Device Management,
I think in the near future we’ll see the virtualization era will devided into 2 sectors like

  • Infrastructure & Server Virtualization
  • Mobility Technologies ( App & Desktop Delivery – Smart Device Management )


For the Citrix XenMobile MDM 8.6 installation you have to do the following preparations;

  • Open these ports in your network environment
  • Obtaining a Citrix XenMobile license file
  • Download Oracle Java Platform (JDK) 7
  • Download Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7
  • Create a Service Account
  • Create an external DNS record for the XenMobile MDM Server
  • On the XenMobile MDM Server, configure a static IP address
  • On the XenMobile MDM Server, disable UAC

Continue reading

PowerCli Vmware Virtual Machines Without Vmware Tools

wmware-workstation-logoHello Friends ,

Here is the one line command that you can get the list of Virtual Machines that has no VMTools installed.

“Get-View -ViewType “VirtualMachine” -Property Guest,name -filter @{“Guest.ToolsStatus”=”toolsNotInstalled”;”Guest.GuestState”=”running”} | select name”

Hope it helps you

PowerCli Vsphere Vcenter Cluster Utilization and Usage Reports

Hello Friends ,

Here you can find out the usage level determination powercli script to get cluster reports automatically.


# This Script is developed by Metin ARSLAN

$report = @()
$clusterName = “*”
$report = foreach($cluster in Get-Cluster -Name $clusterName){
$esx = $cluster | Get-VMHost Continue reading

PowerCli to Monitor Dead / Lost Storage Paths on Vmware Vsphere Environment !

PowerCLIHello Friends,

I guess the most problematic scenario when you open a ticket to Vmware Technical Support is “All Path Down” (APD) situations.
Mostly the answer from Vmware support team is about to remove the dead paths to deny apd situations.
So what are you doing ? Are you still checking all hba connection state one-by-one ?

No matter ,

Here is the script that listing all Dead Paths to you if there is one or more. But I need to inform you , at the last of the algorith you can see a little if clause about if there is no any dead paths script returns 0.


# This Script is developed by Metin ARSLAN
##### Continue reading