Blog from Saravanan Arumugam

Let us talk about Technologies

The process cannot access the file because it is being accessed by another process


When I tried to create a virtual machine in Hyper-V with Windows 7, I received this message when I pressed Action –> Start.

Exception

[Window Title]
Virtual Machine Connection

[Main Instruction]
Capturing the drive failed.

[Content]
Failed to add device ‘Microsoft Virtual CD/DVD Disk’.

Failed to open attachment ‘D:’. Error: ‘The process cannot access the file because it is being used by another process.’

[Expanded Information]
‘Windows Server 2′ failed to add device ‘Microsoft Virtual CD/DVD Disk’. (Virtual machine ID 534773DB-D548-44E0-8C5F-5094801065A8)

‘Windows Server 2′: Failed to open attachment ‘D:’. Error: ‘The process cannot access the file because it is being used by another process.’ (0x80070020). (Virtual machine ID 534773DB-D548-44E0-8C5F-5094801065A8)

[^] Hide details  [Close]

This message didn’t allow me to install windows 7 with the DVD.

Solution

I used DVD drive to install windows server 2008 in a different virtual machine. So the DVD drive was captured by the other virtual machine. So I connected to the Windows Server 2008 virtual machine. Selected Media Menu –> DVD drive –> Uncapture D:.

This action released the DVD drive.

Now I went back to the virtual machine of Windows 7. Selected Media –> DVD drive –> Capture D:.

This action captured the DVD drive for this virtual machine and started the installation of Windows 7.

About these ads

3 responses to “The process cannot access the file because it is being accessed by another process

  1. 123 September 4, 2011 at 9:02 pm

    Thank you

    • aneesh February 2, 2013 at 2:37 am

      thanks man … it’s workn fine nw ..

  2. John Anderson June 14, 2014 at 4:57 pm

    Thanks so much–this is exactly what I needed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 202 other followers

%d bloggers like this: