Hyper-V error - failed to add device 'Microsoft Virtual Hard Disk'

已答复 Hyper-V error - failed to add device 'Microsoft Virtual Hard Disk'

  • lunes, 07 de mayo de 2012 17:51
     
     

    Hi,

    I'm getting the error below when creating a new VM in Hyper-V. I'm using Windows Server Enterprise 2008 R2.

    "failed to add device 'Microsoft Virtual Hard Disk'. (Virtual machine ID 7CB6EAA3-7610-4256-A83A-26FBC7A2C364)'VivHV_5_3Ciro2_VivHvbla': Attachment 'H:\VSE_VirtualMachines\VivHV_5_3Ciro2_VivHvbla\VivHV_5_3Ciro2_VivHvbla_0_0_1.vhd' not found. Error: 'The system cannot find the file specified.' (0x80070002). (Virtual machine ID 7CB6EAA3-7610-4256-A83A-26FBC7A2C364)."

    Any idea?

    Thanks,

    Ciro

Todas las respuestas

  • lunes, 07 de mayo de 2012 18:32
     
     

    Hello Ciro,

    Are you trying to move a VM? (Becuse of (Virtual machine ID 7CB6EAA3-7610-4256-A83A-26FBC7A2C364) saying move)

    You said a new VM ,

    Did you check the folder of H:\VSE_VirtualMachines\VivHV_5_3Ciro2_VivHvbla\VivHV_5_3Ciro2_VivHvbla_0_0_1.vhd'?

    Sincerely,

    Murat Demirkiran


    If the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. www.scvmm2012.com (TR Language) Please note that I'm not a Microsoft Representative or SpokesPerson.

  • lunes, 07 de mayo de 2012 19:21
     
     

    Hi Murat,

    It's actually a create, and it's being called through API. How do you know it's a move?

    I've just checked and that file is there.

    Thanks,

    Ciro

  • lunes, 07 de mayo de 2012 19:50
     
     

    Hi!

    From your post I take it that you're not using Hyper-V manager.

    Is the API being called from a remote computer? If so, have you checked that it's not looking for the folder locally and that the account making the call has read permissions to the folder?

    If not, please provide more details on how the API call is made and what's making it.

  • lunes, 07 de mayo de 2012 19:50
     
     

    Hi Ciro,

    Please disable if there is an antivirus installed ( Just for test)

    Can you try to shorten the folder and VHD name?

    VHD is a blank VHD or Syspreped Image VHD?

    Sincerely,

    Murat Demirkiran


    If the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. www.scvmm2012.com (TR Language) Please note that I'm not a Microsoft Representative or SpokesPerson.

  • lunes, 07 de mayo de 2012 20:20
     
     Respondida
    Hi Mike,

    Yes, I'm calling the API remotely. Actually it's another layer of the application which wraps the Hyper-V API calls. But basically it creates a new config with network and storage, saves it and closes it.

    I did a test with a 2MB disk and it failed, after I created another with 3MB and it worked. Reading the documentation, I saw that Hyper-V VHD has a limit of 3MB. Maybe this is the issue but the message doesn't seem to be very informative.

    Thanks,
    Ciro
    • Propuesto como respuesta Mike_Andrews martes, 08 de mayo de 2012 8:45
    • Marcado como respuesta Jeff RenModerator lunes, 14 de mayo de 2012 6:45
    •  
  • martes, 08 de mayo de 2012 0:59
     
     Respondida
    You were below the minimum size for a VHD, so it didn't create.