Reading hyper-v pass-through disks using WMI?

How do I read pass-through disks for a guest VM from a Hyper-V using WMI? I'd like to read the pass-through disks that are available to a guest VM using the below mentioned ways:
1. Add a disk to Hyper-V server, take it offline and assign it as a physical disk to VM
2. Configure iSCSI initiator in guest VM to get a disk directly from storage array
3. Use VFC to export a fiber channel lun to guest VM directly.
Thanks/Hem

You had another post with very similar questions, and I replied to it.  A broad answer is to use PowerShell as it does most, if not all, of the WMI work for you.  If you are having issues, it would be helpful for you to post specific questions
about the issues you are seeing.  If they are scripting questions, you would reach more scripting experts in the Scripting Guys forum (http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG). 
And you can go to the scripting gallery (http://gallery.technet.microsoft.com/) to find examples of many, many different things.
.:|:.:|:. tim

Similar Messages

  • Cannot clear "Current read-only" on pass through disk

    This is not the end of the world, but it's very annoying so I'm hoping somebody can explain what's going on or perhaps suggest some additional troubleshooting.
    Here's the scenario: Server 2012 Core VM  with the file services role installed and running as a role on a Server 2012 Hyper-V failover cluster. IDE 0 is a standard VHDX in clustered storage. There are 2 pass through disks on SCSI targets 1 and 2. I
    proceed to attempt to add a 3rd pass-through disk:
    1. Create a 750GB LUN
    2. Mask the LUN to the cluster
    3. Online the new disk on a cluster node
    4. Initialize the disk on the node
    5. Offline the disk
    6. Using Failover manager, add the disk as new Available Storage in the cluster
    7. Using Failover manager to modify the file server VM's settings, add the new storage to SCSI target 3
    8. Using diskpart on the VM, clear the readonly flag from the disk
    At this point, I was able to create a partition on the disk using new-partition with the -usemaximumsize flag, but I was unable to format it. It turns out the new partition size was 0 bytes. So I went back into diskpart and lo and behold, although the readonly
    flag is cleared, the "Current readonly status" on the disk is still yes.
    To test the issue, I offlined the disk in the VM, removed it from the virtual SCSI chain, removed it from cluster storage and then onlined it in the owner node. I was able to partition it, format it and create an empty folder, so it is not flagged readonly
    at the host or SAN.
    So I offlined it on the node and added it back to cluster available storage and then added it back to SCSI target 3 on the VM.
    Again, I removed the readonly flag from the disk and again it cleared but the disks "current" status remained "Yes" and I was unable to manipulate the disk.
    Stop/start vds did nothing and as this is a production server I could not restart it midday.
    So I offlined the disk in the VM and removed it from SCSI target 3, then added it to SCSI target 4. This time, when I online it in the VM and use diskpart to clear readonly, both readonly and "current" readonly clear just fine and now the pass-through
    disk is operating as expected alongside the other 2 pass-through disks on the server.
    Any ideas what went wrong in all this or how I can clear SCSI target 3 for another disk without having to restart the VM?

    Hi,
    If the disk that you want to add appears in Disk Management but does not appear after you click Add a disk, confirm that the disk is configured as a basic disk, not a dynamic
    disk. Only basic disks can be used in a failover cluster.
    The related KB:
    Add Storage to a Failover Cluster
    http://technet.microsoft.com/en-us/library/cc733046.aspx
    Adding a Pass-through Disk to a Highly Available Virtual Machine
    https://blogs.technet.com/b/askcore/archive/2009/02/20/adding-a-pass-through-disk-to-a-highly-available-virtual-machine.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Need help on Hyper V 2012 for configuring pass through disks

    Hallo guys,
    I have 7 hypervisors of Windows server 2012 running on bare metal, all are in cluster. I also configured SCVMM 2012 server.I created 10 Vm's. Now i want to make clusters of 2 node each & assign LUNs to my VM.
    Storage guys have assigned all the LUNs to my physical servers, when i go to disk management of my physical servers , i see all LUNs are offline state(by default..)
    My question is how do i assign the LUN to my VM? what is the steps for this ? i also wil be making 2 node cluster of VM's.
    Regards,
    Amol Sutar

    Hi Amol,
    >>i see all LUNs are offline state(by default..)
    It's normal. To ensure the Guest has exclusive access to the storage, the LUNs must be placed in an
    Offline state from the Hyper-V server perspective.
    >>My question is how do i assign the LUN to my VM? what is the steps for this ? i also wil be making 2 node cluster of VM's.
    Here is a detailed guide, it may be helpful:
    Configuring Pass-through Disks in Hyper-V
    http://blogs.technet.com/b/askcore/archive/2008/10/24/configuring-pass-through-disks-in-hyper-v.aspx
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Should I Install SQL Server 2008 R2 on a VHDX or Pass-through disk

    Hi,
    I am in going to be setting a virtual server running Windows Server 2008 R2 on my Hyper-V cluster and I will be also adding SQL Server 2008 R2 once the OS is configured. Can you please suggest whether I should setup a VHDX or a pass-through disk? I have
    read articles online suggesting to use a pass-through disk from my SAN but I also read that since Windows Server 2012, VHDX is as good as a pass-through disk, especially because it will allow to have snapshots taken, unlike the pass-through which will not.
    Please advise on whether I should chose a pass-through disk or a VHDX.
    Thanks in advance,

    Hi Aquila,
    There are three basic types of Virtual Hard Disks (VHDs) that you can use with VMs, such as dynamic VHD, fixed VHD, and differencing disks. Usually, the fixed VHD is almost always the best choice for virtualized SQL Server systems that run a production workload.
    You can use dynamic disks for noncritical production workloads, as well as for testing, training, and lab environments. Pass-through disks offer the highest level of performance for VM storage, however, Pass-through disks can't be moved without incurring downtime,
    and they don't support VM snapshots. For more information, see:http://sqlmag.com/sql-server/sql-server-virtualization-tips
    In addition, there is an article about how to setup boot from VHD for a SQL Server. You can review the following link.
    http://www.mssqltips.com/sqlservertip/2327/how-to-setup-boot-from-vhd-for-a-sql-server-test-or-development-environment/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • CSV V/s Pass through disks with HV 2012 R2 failover cluster

    Hi
    We are using HV 2012 R2 failover cluster with CSV. We found some articles saying pass through disks outperforms CSV. Is this correct?
    Regards
    LMS

    Hi
    We are using HV 2012 R2 failover cluster with CSV. We found some articles saying pass through disks outperforms CSV. Is this correct?
    "The juice isn't worth the squeeze" (c) ...
    Tim is 200% correct here: any performance gains (if any...) you'll get will fade in darkness compared to management burden you'll have with pass-thru disks (issues with failover, VM migration and no
    real support with a major VM backup vendors). Making long story short: don't do it.
    StarWind Virtual SAN clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • OVM support for NPIV and pass through disks

    Hi Gurus,
    I have a couple of questions -
    1) Does OVM support NPIV?
    2) Does mapping the physical disks via the phy: definition in the vm.cfg file equivalent of pass through disks to the guest OS?.
    thanks!
    Gak

    avasek wrote:
    Thanks!. The pass through question was actually in context of usage with snap* products from netapp as they work with VMware. All the snap* work with RDM's in VM's (pass through's), so i was wondering if the snap* could be made to work with the phy: def to the VM's as well. The RDM def should be equivalent of the phy: def ..right?. So ideally, they ought to work?No idea, to be honest -- I haven't worked with NetApp gear yet. You're probably better off checking with NetApp directly as well.

  • X240 - is there audio pass-through when using a miniDP to HDMI?

    I have an X240, which I love, but now that I've cut my cable cord and am going with Netflix and other on-line streaming options, I'd like to be able to view my streaming programs on my TV.  Can I use a cable or adapter to go from the miniDP (on the X240) to my HDMI (on my TV) and get audio as well as video?  I understand my laptop needs to have an "audio pass-through" for that to work --- I don't know what it is, but I'd like to know if this one's got it.  I bought the laptop online in Dec 2013, if that makes a difference.
    (Yes, I could stream Netflix from a gadget like Chromecast, but that will only get me Netflix Canada, whereas using a VPN on my computer I can get Netflix from other countries too.)

    refreshing this discussion!   I've tried a mini DP to HDMI dongle with an HDMI-HDMI cable to the TV - and I get video but no audio.  My computer recognizes the TV as present as as audio playback device, but no audio is transmitted through TV or computer. when it's plugged in.  Of course I still get audio from the computer's speakers when it's not plugged in

  • Pass through scenario using AS2

    Hi,
      Iam getting a file from sender in some standard format which I have to pass to target system as it is. We have AS2 sender adapter and File FTP receiver adapter. Can I create a passthrough scenario using AS2 sender adapter and also with ecryption/decryption security?
    Regards
    Amol

    Hi,
    >>>Can I create a passthrough scenario using AS2 sender adapter and also with ecryption/decryption security?
    only up to the AS2 adapter as file adapter does not support encryption/decryption
    Regards,
    Michal Krawczyk

  • [VHD][BOOT][UEFI] Boot Windows 8 From a VHD Drive On a GPT Disk Using UEFI BIOS

    I had been dual booting two copies of Windows 8 prior to getting a new rig without any issues. Once I installed Windows 8.1 I can no longer boot a VHD from the GPT partitioned drive. 
    My PC specifications 
    Intel i7-4770k
    ASUS SABERTOOTH Z87
    16GB KINGSTON HYPERX BEAST DUAL-DDR3 2400MHz
    2GB NVIDIA GEFORCE GTX 660 Ti 
    120GB INTEL 520 SSD 
    4TB WD CAVIAR BLACK WD2002FAEX
    4TB WD CAVIAR BLACK WD2002FAEX (two way mirror = storage spaces)
    15x BLU-RAY Writer Drive
    CORSAIR 750W PRO HX750-80
    Corsair H60 Hydro Series High Performance CPU Cooler
    10/100/1000 GIGABIT LAN PORT 
    Windows 8.1 Pro x64 
    So I basically copied my existing VHD to the new data drive and created the relevant BCD entry, when I chose to boot from the VHD I am presented with an error saying Windows cannot boot and to choose another OS or the troubleshooting options (I’ll post the
    exact error later as I am at work at the moment). 
    I can boot the VHD inside Hyper-V without any issues, it just wont boot natively. I also created a brand new Windows 8.1 VHD and still the same thing happens. Once I created a new VHD I used “bcdboot j:\windows /s j:” to insert the attached VHD into the BCD
    store. 
    So existing or brand new VHD’s don’t seem to work for me, any advice would be appreciated.   
    Mike Park

    I posted this issue on Neowin and someone kindly pointed out the answer, it's to do with storage spaces: 
    http://www.neowin.net/forum/topic/1191873-native-boot-vhdx-from-second-drive/#entry596152197
    Quote
    What types of drives can I use with Storage Spaces?
    You can use commodity drives attached via Serial-Attached SCSI (SAS), Serial ATA (SATA), or USB. Storage layers that abstract the physical disks are not compatible with Storage Spaces. This includes VHDs and pass-through disks in a virtual machine, and storage
    subsystems that layer a RAID implementation on top of the physical disks. iSCSI and Fibre Channel controllers are not supported by Storage Spaces.
    From: http://social.techne...stions-faq.aspx 
    Mike Park

  • Can't Enable Disk Use in 2G Shuffle

    On a Mac OS X that I had to restore previously. Music, but not playlists, were recovered. Haven't synced shuffle since and am trying now.
    Getting the message that this iPod is synced with another iTunes library and asks to ignore or erase and sync with this library. I would prefer to create a new playlist and transfer from the shuffle since it is a compilation that was not preserved but from what I am reading I need to enable disk use under the "Settings" tab on the ipod, but I don't have that option for some reason. I have already made sure that prevent from syncing automatically in iTunes Preferences.
    Not sure what else to do....any help is appreciated!

    This isn't going to solve all your problems, but if you want to "enable disk space" then you probably need to upgrade itunes to 9.03.15 (or what ever is newest when you see this). That version has that feature under settings if you scroll down a bit. Good luck!

  • Encoding Dolby Digital 5.1 (AC3) sound in MP4 files using AC3 pass-through

    Looking for an application that will encode Dolby Digital 5.1 (AC3) sound in an .mp4 container using AC3 pass-through for playing videos with surround sound on ATV.
    Handbrake is out of the question because I run Tiger. The Tiger version cannot do AC3 pass-through.
    Visual Hub is no longer available.
    Any other options?

    You may need Apple's MPEG2 QT plugin as well for MPEGStreamclip.
    Also, consider if running windows in parallels/Boot Camp etc that there's a windows version, and possibly a linux version.
    VisualHub code was released open source - Google FilRedux and PunyVid (iSquint derivative). Not tried either though.

  • How to read data from PC format external disk, using Labview MAC

    Hi folks,
    For years I have not been able to read data files from a PC formatted (created) external disk, using Labview for Mac. More specifically:
     - I have Labview 7.01 running on OS X 10.4.11 on a PowerBook G4
     - I have a 500GB external USB/firewire disk that was formatted on a PC and has data files (custom format) that were created on the PC. I believe that C code actually creates the files, but Labview 7/PC opens the files and appends some info (I don't think the fact that C or Labview touches the files is actually relevant to this issue though).
     - I can connect the 500 GB disk to my mac, and it will mount just fine and OS X can see all of the data files (and anything else on the disk).
     - if I use my Labview app to open and read a data file it fails:
           - open/create/replace.vi (with read-only access) shows a file dialog window that lets me navigate to any file on the external disk.
           - but, the vi returns an error 7
     - if I use OS X to copy the data file to my Mac disk, my Labview app works fine.
    So, does anyone know if:
     - I'm just doing something wrong in my Mac Labview app?
     - Labview 7.x solves this problem?
     - Labview 8/Mac solves this problem?
     - OS X 10.5 solves this problem; with Labview 7 or 8; or does OS X 10.5 worsen the problem?
    Thanks, in advance...

    Hi kehander,
    Thanks for the reply. I tried filling a constant path with the Mac-defined path to a data file on the USB disk (ie "DATA2:file1.dat"). This resulted in the same error message.
    I then considered that maybe I was misinterpreting the LV error message, and that perhaps I was supposed to address the file using PC-notation (ie. "DATA2\file1.dat"), even though the app is running on a Mac. No joy with this, but I get a different error msg:
    "Error 1430 occurred at Open File
    Possible reason(s):
    LabVIEW:  The path is empty or relative. You must use an absolute path."
    Can you share what your reasoning was for your suggestion... I'm not sure I understand why a constant path would produce different results?

  • How do you disable postscript pass-through using Mac OSX 10.6

         My Phaser 4600DN prints quite slowly when printing a PDF, a 28 page documents takes nearly 7 minutes to print. On Windows 7 PC the same document takes 6 minutes to print. If I disable Postscript Pass-Through option on the driver the 28 page documents takes two minutes to print. I need to know if there is a similar option in Mac OS 10.6.8?

    andyfoster wrote:
    I need to know if there is a similar option in Mac OS 10.6.8?
    If, when printing to a Postscript printer, an app generates its own Postscript programme, it is possible for the printer driver to send it directly to the printer w/o any other modification; this is called Postscript pass-through. CUPS, the Mac OS X printing system, does allow for this option, but it is implemented in the printer driver, not the OS. So, whether or not disabling this option is available to you depends on the driver for your printer. Consult its docs or ask Xerox tech support.

  • How to mark PCI devices for pass through in host using Powercli?

    PCi devices in host can be retrieved using Get-VMHost command . How do i mark the device for pass through in host?
    Please help on how this can be done. Thanks in advance.

    Hi,
    I don't think supressing through Global Personalization will change the business logic. Within the Business Logic it checks for the mandatory field.
    After the changes I guess you need to make the changes accordingly.
    The below link might be of some help.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    Please correct if I am wrong.
    Cheers-
    Pramod

  • 4 is not compatable with my HP simple pass identity protection using the fingertip reader. How do i make it work? IE9 works fine. Do I have to stop using FireFox??

    I have a HP DV7-4165 that has Windows 7 64 bit and features the HP simple pass identity protection using the fingertip reader. My Firefox support says " If you have the Firefox browser on your computer when your HP SimplePass Identity Protection software is installed, a Firefox extension will also be installed that enables support for use of fingerprints with the Firefox browser." Once I updated to Firefox 4 it doesn't work anymore.

    I have the same problem. Hopefully, those with HP Simplepass from Egistec will have relief. Here's the email I got from their customer support:
    "Thank you for contacting EgisTec and your interest on our products.
    Currently HP SimplePass does not support Firefox 4. However, our development team is working on this and the updated version of HP SimplePass will support Firefox4 in the near future. We will inform you by mail when it is ready.
    Please visit our website regularly to look for further updates on our products.
    Thank you very much for your valuable feedback.
    Yours Sincerely
    EgisTec Customer Service"

Maybe you are looking for

  • Reset Loop

    I have a problem. I have a first generation, 160GB iPod Classic, the first one to have the anodized aluminium cover. The reason I have a 160GB iPod is because I have a large collection of music, video , podcasts and other audio stuff that I like to h

  • ITunes can no longer read WAV files that QuickTime still can

    Hello, I don't known what happened, but iTunes doesn't want to read some of my WAV files anymore. The strangest thing is that QuickTime still does read them. But when I double-click on the track in iTunes, it moves immediately to the next one in the

  • Consignment settlement

    Hai gurus actually i have received the material from my vendor to my consignmenmt stock and further to unrestricted stock.After i consume the material for production ,i want to send the seetlement report to vendor for one month transaction.Can any on

  • Slowness in moving, sending, typing & receiving emails

    Hi, Been using Thunderbird for over a year having migrated from Eudora. Recently, I have had recurrent and intermittent slowness in typing email content, sending, receiving as well as moving emails to other folders and opening and closing of Thurderb

  • Upgrading ipodTouch to software version 2.1

    I downloaded 2.1 from the iTunes store onto my Mac Book. I connected my iPod Touch to my Mac Book to initiate the update on my iPodTouch. There is a warning alert that advises me that if I proceed, "all the data on the iPod will be lost." Since when