?
Solved

Cannot install new virtual Hard Disk - Hyper V 2008 Standard

Posted on 2011-05-12
6
Medium Priority
?
4,932 Views
Last Modified: 2012-05-11
Hi all,

since the latest updates (might be coincidence) but i can no longer use my Hyper V install.
I have removed the Hyper V Role, reinstalled it and i now get this message no matter what.
I was receiving a similar message before removing the role fully.

I have tried installing on in a different area on the hard drive to no avail.

The Server encountered an error while configuring hard disk on "New Virtual Machine"
Failed to add device "Microsoft Virtual Hard Disk"
Cannot open attachement "C:\HyperV\test server\new virtual machine.vhd, Error: The process cannot access the file because it is beiong used by another process."

cannot get information for attachment "c:\hyperv\test server\new virtual machine.vhd

cannot open attachment "c:\hyperv\test server\new virtual machine.vhd. error " the process cannot access the file because it is being used by another process.

new virtual failed to add device Microsoft virtual hard disk. (virtual machine id 6F41C7B3-180C-4160-A282-F4685F2C6C67)

new virtual machine: cannot open attachment "C:\hyperv\test server\new virtual machine.vhd. error the process cannot access the file because it is being used by another process. (0X80070020). (virtual machine id 6F41C7B3-180C-4160-A282-F4685F2C6C67)

it then more or less repeats the above errors.
0
Comment
Question by:andymdb
  • 5
6 Comments
 
LVL 20

Expert Comment

by:Svet Paperov
ID: 35745367
Do you have anti-virus software on the server? Disable AV scanning on the Hyper-V folders.

Do you have another Event errors (pls, provide Event IDs)?
0
 

Author Comment

by:andymdb
ID: 35745822
OK, yes we use Trend Micro Worry Free.

I'll try that now. I

Thanks

0
 

Author Comment

by:andymdb
ID: 35837964
Nope, that's not the problem.

I have managed to create a new virtual hard disk, but on creating a new virtual machine it walks through the wizard perfectly until you either chose to use the existing virtual disk at this point it fails with the process in use error, or if you chose new it fails with the same process is in use error.

Really annoying this.
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 

Author Comment

by:andymdb
ID: 35838057
Just attempted to edit the disk as a trial to see if i caould access it. error message below
edit-disk-error.PNG
0
 

Accepted Solution

by:
andymdb earned 0 total points
ID: 36426934
The Fix

This error used to come up only when we were specifying the details of VHD during  the process of creating a virtual machine. We were able to create a virtual machine if we skip VHD details and also were able to create VHD individually
 
Resolution :
We captured logs from the machine and analyzed them. We found following:
 
Filter                Volume Name                              Altitude        Instance Name      Frame  VlStatus
--------------------  -------------------------------------  ------------  ---------------------  -----  --------
FAMv4                 C:                                      285125       FAMv4 Instance           0    
FAMv4                                                         285125       FAMv4 Instance           0    
FAMv4                 D:                                      285125       FAMv4 Instance           0    
FAMv4                 \Device\HarddiskVolumeShadowCopy62      285125       FAMv4 Instance           0    
FAMv4                 \Device\HarddiskVolumeShadowCopy63      285125       FAMv4 Instance           0    
FAMv4                 \Device\HarddiskVolumeShadowCopy1       285125       FAMv4 Instance           0  
 
From the logs, we figured out that one of the filter driver (FAMv4.SYS) present on the machine have open handle on the process and hence not allowing us to create a virtual machine. We disabled the driver from registry and rebooted the machine for the changes to take effect. After reboot, we were able to create the virtual machine successfully.
 
 
I would like to share a few articles related to Hyper V that you may find useful, while using this technology. I hope you will appreciate it.
 
Troubleshooting Hyper-V
http://technet.microsoft.com/en-us/library/cc742454.aspx
 
Hyper-V Technical Information and Resources
http://technet.microsoft.com/en-us/dd565807.aspx
 
Hyper-V Guest Clustering Step-by-Step Guide
http://blogs.technet.com/b/mghazai/archive/2009/12/12/hyper-v-guest-clustering-step-by-step-guide.aspx
 
Hyper-V Snapshots: Suggestions for Success
http://blogs.technet.com/b/askcore/archive/2010/03/29/hyper-v-snapshots-suggestions-for-success.aspx
 
How to recover snapshots
http://blogs.msdn.com/b/robertvi/archive/2008/08/26/howto-recover-snapshots.aspx
 
Virtual Machine Snapshots with Hyper-V
http://blogs.technet.com/b/roblarson/archive/2008/04/26/virtual-machine-snapshots-with-hyper-v.aspx
 
Getting some more info about my .vhd and .avhd files
http://blogs.msdn.com/b/robertvi/archive/2009/12/17/getting-some-more-info-about-my-vhd-and-avhd-files.aspx
 
Hyper-V Videos
http://technet.microsoft.com/en-us/library/ee731912(WS.10).aspx
 
 Hope this helps some one
This fix costs us £199 from Microsoft.
0
 

Author Closing Comment

by:andymdb
ID: 36446098
Byee
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
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 locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
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…
Suggested Courses

840 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