SrVMwarer
Hot Shot
Hot Shot

Generating .vmx file using vmware.log

Hello VMwarers,

As per the KB what values I should modify I can't get the point, since I a, not experienced with scripting?

KB Link:- VMware Knowledge Base

Thanks

Regards, İlyas
Tags (1)
0 Kudos
6 Replies
a_p_
Leadership
Leadership

Please attach the vmware.log file to a reply post, and I will take a look at it.

Also provide an overview of the files that are in the VM's folder.


André

0 Kudos
SrVMwarer
Hot Shot
Hot Shot

Hello,

thanks for your reply, here's the files the VMware.log and my VM files

VM_Files.PNG

Regards, İlyas
0 Kudos
a_p_
Leadership
Leadership

I've attached the recreated configuration (.vmx) file.

Please be aware that the VM has a second virtual disk from another datastore/folder attached to it. Make sure that this virtual disk is not in use by another VM!

André

0 Kudos
SrVMwarer
Hot Shot
Hot Shot

I am willing to know how you created the file, what should I edit in the script in the KB?

Regards, İlyas
0 Kudos
a_p_
Leadership
Leadership

I recreated the .vmx file using my own batch script, that I've also posted on HowTo: Recreating a .vmx from the vmware.log file.

Whether something needs to be edited, depends on the situation. In your case I don't see a reason for changing anything. Only the second virtual disk is something you may want to verify prior to powering on the VM.

André

0 Kudos
continuum
Immortal
Immortal

Step 1: Grep the vmware.log for "DICT" - keep all lines including that.

Step 2: find the line containing "CONFIGURATION" and keep every line after that

Step 3: find the line containing " --- " and delete it and every thing after that

Step 4: replace the string "DICT " with "DICT" and repeat that step as often as necessary.

Step 5: replace the string "DICT" with nothing.

Step 6: replace the string ' = ' with ' = "'

Step 7: insert a '"' at the end of  each line

Step 8: replace the string ' "' and repeat as often as necessary

Now visiually check the syntax and make sure every line has " around the parameter.
Thats basically just the same as Andres script does ...

Do you need support with a recovery problem ? - call me via skype "sanbarrow"
0 Kudos