Not able to mount an iso on vmdvddrive in Windows Hyper-v Server 2016 with powershell

I bought an old dell R710 to learn hyper-v, AD, VMware etc. only about a month ago. I installed hyper-v bare bones on the R710 - Windows hyper-v server 2016. The free version which has no GUI. So I’m learning powershell (ver 5.0) as I go along and I have
the virtual switch installed. I have the VMmachine installed.

I can see the new vm, path, harddrives, dvddrives, etc. with the command:

>get-vm -name anyname | select-object -property *
So all is there. Then I made sure of where the usb drive is by doing a:
>get-wmiobject -class win32_logicaldisk

I see the usb drive on D:
it has the guest os on it (i’m trying to put Windows 2016 Evaluation Edition on the new vm) because I burned it to the usb as an iso file with Rufus 3rd party software. I can boot this on a physical drive because it has a setup.exe but I don’t see an iso file
on it to map to.

Anyway I’m trying to create the virtual dvddrive to boot the usb os as a guest to the the hyper-v Server 2016 host.
My command is:

>get-vmidecontroller -vmname anything | add-vmdvddrive -path D:
Error message : THE SPECIFIED PATH FOR THE DRIVE IS NOT VALID. SPECIFY A PATH TO AN .ISO FILE OR A VOLUME NAME OF THE PHYSICAL DRIVE.

Can someone help me understand why the usb drive won’t boot to the new vm? I’ve googled for a week and I don’t see a consistent set of instructions. Some say mount, some say passthru…..I’m truly confused. A lot of info on WAC and Server Manager but not
much on step by step instructions with Powershell. All help is muchly appreciated!

Stanley7590

Read full post . . . .

Go Que Newsroom Categories

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 36 bytes) in /home/content/36/8658336/html/goquecom/wp-includes/taxonomy.php on line 3613