Solved

Hyper-V VM Won't Start after File Move

Posted on 2011-03-23
9
4,132 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
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…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

910 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

17 Experts available now in Live!

Get 1:1 Help Now