Jump to content


  • 0
anyweb

copied your VHD's to new HDD but cannot start them now ?

Question

Ok imagine this scenario, you run out of hdd space or get a faster hdd that you are storing your HyperV vm's on, and you decide to copy the vms from hd1 to hd2. When you attach the new hd to your computer and try to start your vm's you get an error like this:

 

Unamed VM could not Initialize

 

unamed VM could not initialise.png

 

clicking on See Details reveals the following

 

see details.png

 

'Unnamed VM' could not be read or udpate the virtual machine configuration because access was denied: General access denied error (0x80070005). Check the security settings on the folder in which the virtual machine is stored. (Virtual machine ID 5AE7EC71-5059-4597-9542-86943F192045).

 

 

To fix it we need to restore the ICACLS that were originally set (but not copied) on the VM's. To do this we first need the VM's GUID. To get it, expand the virtual machine dir where you store your vm's, and locate the VM in question, then expand that dir until you see the Virtual Machines directory, in there you'll see the GUID, copy it (the GUID).

 

guid.png

 

Use the following command

 

icacls “<virtualmachinefolder>” /grant “NT VIRTUAL MACHINE\<virtualmachineguid>”:F /T

 

you'll see it output something like this:-

 

C:\Users\Administrator>icacls "f:\hyperV\vhd\sccm" /grant "NT VIRTUAL MACHINE\5A

E7EC71-5059-4597-9542-86943F192045":F /T

processed file: f:\hyperV\vhd\sccm

processed file: f:\hyperV\vhd\sccm\new sccm hdd.vhd

processed file: f:\hyperV\vhd\sccm\new sccm hdd_D1E4BB8D-76E4-423B-B183-BB04C3F6

9F8D.avhd

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM 2007 sp1 R2.vhd

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM 2007 sp1 R2_8CD4B504-D5

33-421A-A206-121233806DFE.avhd

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\Snapshots

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\Virtual Machines

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Snapshots

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Virtual Machines

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Snapshots\32E1A418-7843

-46AA-B5E2-D7C7F8B2DA23

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Snapshots\32E1A418-7843

-46AA-B5E2-D7C7F8B2DA23.xml

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Snapshots\32E1A418-7843

-46AA-B5E2-D7C7F8B2DA23\32E1A418-7843-46AA-B5E2-D7C7F8B2DA23.bin

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Snapshots\32E1A418-7843

-46AA-B5E2-D7C7F8B2DA23\32E1A418-7843-46AA-B5E2-D7C7F8B2DA23.vsv

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Virtual Machines\5AE7EC

71-5059-4597-9542-86943F192045

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Virtual Machines\5AE7EC

71-5059-4597-9542-86943F192045.xml

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Virtual Machines\5AE7EC

71-5059-4597-9542-86943F192045\5AE7EC71-5059-4597-9542-86943F192045.bin

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\SCCM\Virtual Machines\5AE7EC

71-5059-4597-9542-86943F192045\5AE7EC71-5059-4597-9542-86943F192045.vsv

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\Snapshots\C9F60A12-773D-4540

-AB90-7FC687B3380B

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\Virtual Machines\C9F60A12-77

3D-4540-AB90-7FC687B3380B

processed file: f:\hyperV\vhd\sccm\SCCM 2007 sp1 R2\Virtual Machines\C9F60A12-77

3D-4540-AB90-7FC687B3380B.xml

Successfully processed 22 files; Failed processing 0 files

 

and that's it ! all done, repeat the above for each VM

 

This post was completed thanks to help from here

cheers

niall.

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.