Solved

Hyper-V VM Won't Start after File Move

Posted on 2011-03-23
9
4,075 Views
Last Modified: 2012-06-27
I have a Windows 2008 R2 Standard host running Hyper-V with four guests.  I ran out of space on my data drive, so I shut down one guest VM and moved the directory containing all the files for that VM to another drive temporarily.  I then freed up space on the data drive and moved the VM directory back to its original location.  Now when I try to start the VM I get the error:

'Unnamed VM' could not initialize.  An attempt to read or udpate the virtual machine configuration failed because access was denied.

Comparing permissions on the directories with a working VM, I found no differences except the presense of a "Virtual Machines" security group present in the working VM's permissions.  I cannot find this group in either the local machine or the domain.  Can anyone tell me why this is not working and how to find this phantom group?
0
Comment
Question by:jduehmig1
  • 5
  • 4
9 Comments
 

Author Comment

by:jduehmig1
ID: 35207895
Anyone?
0
 
LVL 15

Expert Comment

by:msmamji
ID: 35208334
The phantom group you are referring to, is managed and included in the security by the Hyper-V Manager when the VM is created. You would not be able to add it using security Tab in the properties of the folder.
 
0
 

Author Comment

by:jduehmig1
ID: 35208502
How do I go about getting the VM to start?
0
 
LVL 15

Expert Comment

by:msmamji
ID: 35209596
I am assuming that you only a one VHD and no snapshots in the VM.
You can use the VHD of the Previous VM (i will call it pVM) in a new VM. Create a new VM and attach the VHD of the pVM to this new VM. But you will have to provide configuration (RAM, vCPU, NICs) from scratch. Also since the new VM will have NIC with  a different MAC, therefore when you start the VM, a network card will be detected as new NIC and previous NIC will go hidden. You will have to give it IP address and other info.
In order to avoid issue with VM IP configuration, go into device manager in the VM, go to view drop down menu and select hidden devices. Delete the phantom NIC card if present.
It is advised to save a copy of the VHD before using in the new VM

Hope that helps.
Regards,
Shahid
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:jduehmig1
ID: 35214539
Correct, one VHD and no snapshots.  I'm still very confused as to why simply moving the directory and then moving it back would cause this problem.
0
 
LVL 15

Accepted Solution

by:
msmamji earned 500 total points
ID: 35215258
Hyper-V uses XML files to keep track of VMs (stored in C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines) and snapshots (stored in C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots). When you moved/restored the folder, the security on folder changed. Hyper-V is now unable to access it because Virtual Machine entity doesn't have right on the folder anymore.
The folders I mentioned also have Virtual Machine in their security settings.

If you wish to move the VM, use the export and import feature.
 
0
 

Author Comment

by:jduehmig1
ID: 35215976
I created a new VM, pointing to the same directory and the same VHD files.  (I was incorrect before.  There are two VHD's with this VM.)  When I tried to start the new VM I got the errors:

Microsoft Emuldated IDE Controller (Instance ID {....}: Failed to Power on with Error 'The process cannot access the file because it is being used by another process.'

Failed to open attachment 'E:\VirtualMachines\NewVM\NewVM.vhd'.  Error: 'The process cannot access the file because it is being used by another process.'

Any thoughts on what is causing this?
0
 
LVL 15

Expert Comment

by:msmamji
ID: 35216968
Copy the VHD to another directory ... your current VM is still using the VM but unable to access the folder files... so it is still locked.
0
 

Author Closing Comment

by:jduehmig1
ID: 35217283
That seemed to do the trick.  Thanks for your help.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now