2009-05-11

Error Converting to Template

Today I came across an issue that seemed to be strange.
I tried to convert a  template to VM in order to apply some patch updates.
When trying I got a error message:

clip_image002

 

So I went into the folder where the template was located to see if I could see anything there.
What I found was that there for some reason was that there already a vmx file in the folder which was causing the convert process to fail.

 

[root@ /vmfs/volumes/Templates/templates/windows/T_Win2k3_SP2-32b]# ls -la
total 15736624
drwxr-xr-x 1 root root 2048 Feb 11 14:03 .
drwxr-xr-x 1 root root 80 Nov 11 21:59 ..
-rw------- 1 root root 16106127360 Jan 21 12:27 T_Win2k3_SP2-32b-flat.vmdk
-rw------- 1 root root 8684 Jan 21 12:27 T_Win2k3_SP2-32b.nvram
-rw------- 1 root root 409 May 10 16:31 T_Win2k3_SP2-32b.vmdk
-rw------- 1 root root 457 Jan 1 10:55 T_Win2k3_SP2-32b.vmsd
-rwxr-xr-x 1 root root 2815 May 10 16:15 T_Win2k3_SP2-32b.vmtx
-rwxr-xr-x 1 root root 2813 Feb 11 14:03 T_Win2k3_SP2-32b.vmx
-rw------- 1 root root 271 May 10 16:15 T_Win2k3_SP2-32b.vmxf
-rw-r--r-- 1 root root 21712 Nov 11 15:47 vmware-14.log
-rw-r--r-- 1 root root 18716 Nov 11 15:47 vmware-15.log
-rw-r--r-- 1 root root 28084 Nov 11 15:47 vmware-16.log
-rw-r--r-- 1 root root 22793 Nov 11 15:47 vmware-17.log
-rw-r--r-- 1 root root 46379 Nov 11 15:47 vmware-18.log
-rw-r--r-- 1 root root 39589 Nov 11 15:47 vmware-19.log
-rw-r--r-- 1 root root 40180 Jan 21 12:27 vmware.log

[root@ /vmfs/volumes/Templates/templates/windows/T_Win2k3_SP2-32b]# mv T_Win2k3_SP2-32b.vmx T_Win2k3_SP2-32b.old.vmx

I renamed the file and did the same command again.


clip_image004

 

Works.


Question now is how did the file get there in the first place???