VMware Cloud Community
MJThomas
Contributor
Contributor

VM Image

How can I tell when a VM image was created in VMware 5.0?

Reply
0 Kudos
6 Replies
npadmani
Virtuoso
Virtuoso

Screen Shot 2015-10-06 at 10.17.03 PM.png

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.

Narendra Padmani VCIX6-DCV | VCIX7-CMA | VCI | TOGAF 9 Certified
Reply
0 Kudos
a_p_
Leadership
Leadership

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é

Reply
0 Kudos
gopanaboena
Enthusiast
Enthusiast

Hi

Check the field in the .VMX file

virtualHW.version =


It should be '8'.


Venkat

Reply
0 Kudos
Sreekanth45
Enthusiast
Enthusiast

Reply
0 Kudos
mohdhanifk
Enthusiast
Enthusiast

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}

 

 

Reply
0 Kudos