• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 565
  • Last Modified:

vmware : I have a bunch of files left by a contractor and need to boot this broken windows server

I have esxi 4.1 and am new to vmware , i get this error when i boot a guest
Capture-vmware-4.PNG
Capture-vmware.PNG
Capture-vmware3.PNG
0
NAMEWITHELD12
Asked:
NAMEWITHELD12
  • 6
  • 5
1 Solution
 
BusbarSolutions ArchitectCommented:
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
if you cannot turn off and reset the ESXi  host, try this VMware kb

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10051

use the lsof command
0
 
NAMEWITHELD12Author Commented:
what i am going to do is run lsof from the /sbin directory and point it to the directory that holds the vm files that belong to the guest that will not start then when i find out what is locked use the vmkfstools (run from sbin) as seen in the first reply to see what mac address is holding open the file

thanks
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
just use lsof followed by a filename, and look at the process or restart server.

did this VM ever work?
0
 
NAMEWITHELD12Author Commented:
this VM did work at one point

can i do a lsof on a whole directory? I guess I want to see what files are locked in the entire directory first , that  would be the AV01 directory  right ?


thanks
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
lsof is a command which lists ALL the open files on the server.

you will need to use

lsof | grep filename to check which process has a lock on a filename.

It's much quicker to restart the server!
0
 
NAMEWITHELD12Author Commented:
i have restarted all the ESX servers in the environment and still locked
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
files are corrupted and error message is red herring.

files are not associated with any other VMs.
0
 
NAMEWITHELD12Author Commented:
I removed one of the hard drives and then re-added it and now it will boot with out an error  however it will not find its operating system ,


this VM has been moved around alot , is there a possibility that VM ware does not know what to boot on ?

were can i change this value to tell it what to boot on , the VMX file or boot ini?


thanks
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
vmx file contains the storage controller reference.
0
 
NAMEWITHELD12Author Commented:
how this got fixed

I just took a look at the VMX file , I opened it in notepad
the line

scsi0:0.fileName = "MNE-AV01.vmdk"

refers to what VMDK it boots on

I had 2 options both with the same name that was left in 2 separate directories

so basically I had 2 VHDs with the same name and did not know what one was the right one that was able to boot

I created a temp directory and moved the non booting VMDK file into the temp directory and then moved the other VMDK to the directory with the VMX file in it

I registered the server and it booted
0
 
NAMEWITHELD12Author Commented:
thanks again !

the VMX was pointing to a file that was not bootable
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now