Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 75
  • Last Modified:

hyper-v vm will not start

I have one hyper-v vm which I cannot power on, the problem is that files in the following directory:

C:\ClusterStorage\StorageVolume\VM01\Virtual Machines\90DA46CE-0620-4074-97D9-6E16BCBFD86C

90DA46CE-0620-4074-97D9-6E16BCBFD86C.bin
90DA46CE-0620-4074-97D9-6E16BCBFD86C.vsv

Something has happened to the permissions on these files, noone has access, not even administrators.  I have tried to take ownership of the files using the GUI and using command line "takeown" and "icacls" but I keep getting access denied.

I am running Server 2012 on Hyper-V hosts.
0
carbonbase
Asked:
carbonbase
  • 5
  • 3
  • 2
  • +1
1 Solution
 
Benjamin VoglarIT ProCommented:
The fastest way to repair this is to copy the vhdx to new folder, create new VM and add the vhdx as a disk drive.
0
 
Benjamin VoglarIT ProCommented:
It is possible that a backup sw, do not allow you to take the ownership.
0
 
bbaoIT ConsultantCommented:
ever tried simply rebooting the host? this will ultimately unlock the files and folders, if the VM is not autostart enabled.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Sajid Shaik MSr. System AdminCommented:
0
 
carbonbaseAuthor Commented:
Thanks for the comments.

I'm not sure rebooting the host will help, I removed the .lock file and also removed the vm from inventory but this hasn't help.  

I've run computer manager and process explorer and can't see any locks on the files

Can't see any backup software running on the host but I'll check with the backup guy

Not sure what implications of creating a new vm are, not sure if this will change the Windows SID and I'd have to re-create the config like memory and network settings etc.  I have re-imported the vm, and will try exporting it to a new folder then see if i can take ownership/modify permissions on the .bin and .vsv files.
0
 
carbonbaseAuthor Commented:
the other thing, i have three hosts, i import the vm on one host (doesn't matter which one) and after a while it seems to move to a different host to the one i've registered it on, not sure why this is.
0
 
carbonbaseAuthor Commented:
can't do an export of the vm, not enough space to duplicate the vhd's :-(
0
 
bbaoIT ConsultantCommented:
is it a production server?
0
 
Benjamin VoglarIT ProCommented:
I had the same problem and i simple created a new VM like i said. (it was a product server, no rejoin to domain needed.)

But you can try this:

Like i see, you have a hyper-v cluster. If your critical VM is on node1, move all others VM's on node2. Restart nod1 and try aggain. It will run again.

BR
0
 
carbonbaseAuthor Commented:
Hi

@Bing
yes it's a production server

@benjamin

i restarted the host on which the vm was currently registered by that hasnt helped.
0
 
carbonbaseAuthor Commented:
I've taken Benjamin's suggestion of re-creating the vm and attaching the original hard disks.  I now have a working vm.  Thanks!

I still have the old state files from the original vm <guid.bin> and <guid.vsv>

I cannot delete or modify these files.  I've tried takeown command, process explorer and handle.exe but no luck so far.  Anyone got any suggestions for deleting the files?
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now