Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Hyper-V Server 2012 R2 Core Mode

$
0
0

Hello Everyone,

I'm trying to add a physical Disk (LUN pass-through) to a VM using PowerShell. Using the GUI is very easy, but sometimes we will not have access to the GUI.

The command I did:

get-disk

get-disk 2 | add-vmharddiskdrive -vmname nameofvm

This didn't work, it added the disk but did not show the Disknumber when I ran this command and it wouldn't boot. It just showed Controllertype, Controllernumber and Controllerlocation.

"get-vmharddiskdrive -vnname nameofvm"

Is there another command I need to use?

Thank you

Devon


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>