How can I tell when a VM image was created in VMware 5.0?
Take a look at the screenshot attached, it gives you VM compatibility, hardware version 8 - which is compatibility for vSphere ESXi 5.0 or later. BUT this doesn't always mean that VM was created in ESXI 5.0, this might be created in ESXI 5.1 or 5.5 or 6.0 too or May be it was originally created in older version of ESXi and got upgraded to vSphere 5.0 compatibility.
your question was not very clear to me, I guess you were looking for above information, if not, please explain the question further more.
I am not too sure If vm config. file or any other file holds information about where it was originally created.
You basically have to retrieve this information from the log files. Please take a look at Re: Determine when a VM was created to see whether this helps.
André
Hi
Check the field in the .VMX file
virtualHW.version =
It should be '8'.
Venkat
Try this It might help you out.
Hi,
Follow the steps given in the guide http://pubs.vmware.com/vsphere-50/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-50-virtual...
Hi,
All events and tasks are kept in the vCenter database forever.
It could be that your VMs are created in a special way and that this method does not generate the event type the script is looking for.
A way to find out, create a new VM like you normally do.
Then collect all the events for the last hour and the list the event types.
Something like this
Get-VIEvent -Start (Get-Date).AddHours(-1) -MaxSamples ([int]::MaxValue) |
Group-Object -Property {$_.GetType().Name}
Perhaps the list will shed a light why you don't see your VM creation dates.
If you see a lot of TaskEvents, we will have to look at the type of tasks.
Like this
$events = Get-VIEvent -Start (Get-Date).AddHours(-1) -MaxSamples ([int]::MaxValue) |
where {$_.GetType().Name -eq "TaskEvent"} |
Group-Object -Property {$_.Info.DescriptionId}