Import-VM from WS2012 Hyper-V PowerShell not working


i'm following reference:

http://technet.microsoft.com/en-us/library/hh848495.aspx

to import vm via powershell.  when try it, following:

ps c:\users\xxx> $vm = import-vm -path "v:\cloningmasters\602\ws2012vmdc" -copy -generatenewid
import-vm : operation failed because file not found.
at line:1 char:7
+ $vm = import-vm -path "v:\cloningmasters\602\ws2012vmdc" -copy -generatenewid
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : objectnotfound: (:) [import-vm], ioexception
    + fullyqualifiederrorid : devicenotfound,microsoft.hyperv.powershell.commands.importvmcommand

the weird thing if go manually using wizard, path works fine.  any pointers?


your source must actual xml configuration file, not folder in gui.

http://itproctology.blogspot.com/#!/2012/08/handling-import-vm-errors-in-server.html


brian ehlert
http://itproctology.blogspot.com
learn. apply. repeat.
disclaimer: attempting change of own free will.



Windows Server  >  Hyper-V



Comments

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source