How to re-attach a VHD to a virtual machine


hi,

i have scenario:

2 x usb hard drives each vhd file on them, vhd file on both usb disks called "backup.vhd"

only 1 usb drive attached host computer @ 1 time

the vhd file 1 of usb drives attached via scsi connection @ id 2 to virtual machine

each usb hard drive assigned different drive letter when attached host (drive given y: , drive b given z:)

my question:

how can ensure backup.vhd file automatically attached virtual machine on scsi connection @ id 2 regardless of usb drive connected host? possible? understand there powershell support hyper-v in server 2012 way of doing using script or gui don't mind.

many thanks

steve

exactly, vm not know it's physical usb drive, must hot-swapped in configuration.

i believe these powershell commands place start:

add-vmharddiskdrive: http://technet.microsoft.com/en-us/library/hh848470.aspx

remove-vmharddiskdrive: http://technet.microsoft.com/en-us/library/hh848563.aspx

complete list of 2012 commands here: http://technet.microsoft.com/en-us/library/hh848559.aspx



Windows Server  >  Hyper-V



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file