[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2012-08-18
12
Medium Priority
?
563 Views
Last Modified: 2012-09-06
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
Comment
Question by:NAMEWITHELD12
  • 6
  • 5
12 Comments
 
LVL 33

Expert Comment

by:Busbar
ID: 38308260
0
 
LVL 124
ID: 38308308
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
 
LVL 1

Author Comment

by:NAMEWITHELD12
ID: 38309748
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
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
LVL 124
ID: 38309757
just use lsof followed by a filename, and look at the process or restart server.

did this VM ever work?
0
 
LVL 1

Author Comment

by:NAMEWITHELD12
ID: 38309774
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
 
LVL 124
ID: 38309882
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
 
LVL 1

Author Comment

by:NAMEWITHELD12
ID: 38351286
i have restarted all the ESX servers in the environment and still locked
0
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 38351513
files are corrupted and error message is red herring.

files are not associated with any other VMs.
0
 
LVL 1

Author Comment

by:NAMEWITHELD12
ID: 38351542
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
 
LVL 124
ID: 38351604
vmx file contains the storage controller reference.
0
 
LVL 1

Author Comment

by:NAMEWITHELD12
ID: 38373813
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
 
LVL 1

Author Closing Comment

by:NAMEWITHELD12
ID: 38373819
thanks again !

the VMX was pointing to a file that was not bootable
0

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
This article will explain How to fix Broken backup chain in Veeam Backup & Replication.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question