none
iso file sharing - virtual dvd

    Question

  • Hi,

    I have problem when I use an iso file for virtual dvd drive (Share instead of copying" is selected). I can use this iso file only for 1 virtual machine at the same time. I tried to configure 2 VMs with the same iso file and everytime one of them cannot load this iso. Of course - I have set up constraint delegations in AD...
    Pls - any idea? Or is this a known behaviour state?

    Thanks
    MCP,MCTS | jan-marek.com
    Tuesday, November 24, 2009 12:37 PM

Answers

  • I don't know if you can do it with SCVMM but I did some powershell work for you.


    $all = Get-VM *
    foreach ($i in $all)
    {
    $iso = $i | Get-VirtualDVDDrive | Select-Object ISO
    if ($iso -like "*test*")
    {
    write-host VM: $i
    }
    }

    If your ISO name is debian.iso, just replace "test" with "debian".

    Also if you use just "Get-ISO", you can see all iso images on all virtual machines.
    MSP - Microsoft Student Partner (2009-2010) http://www.yusufozturk.info
    • Proposed as answer by yusufozturk Thursday, November 26, 2009 11:28 PM
    • Marked as answer by Jan Marek Monday, November 30, 2009 9:49 AM
    Thursday, November 26, 2009 11:06 PM
  • Thanks for Shay Levy to help me to improve :)

    Best way to see that iso image, use:
    Get-VirtualDVDDrive -ALL | Where { $_.ISO -like "*test*" }

    If you need to use virtual machine name in a script:
    $VMName = (Get-VirtualDVDDrive -ALL | Where { $_.ISO -like "*test*" }).Name
    MSP - Microsoft Student Partner (2009-2010) http://www.yusufozturk.info
    • Marked as answer by Jan Marek Monday, November 30, 2009 9:58 AM
    Friday, November 27, 2009 11:49 AM

All replies

  • You can't use your ISO file with sharing option on different vms at same time.

    Please look here for more information about Shared ISO feature:

    http://technet.microsoft.com/en-us/library/dd548289.aspx
    MSP - Microsoft Student Partner (2009-2010) http://www.yusufozturk.info
    Wednesday, November 25, 2009 2:51 PM
  • Ok. But I have 200 virtual machines and I want to create a new one and use iso for virtual dvd rom. It is not working because I already use it for another server. How can I find from which one I should disconnect this iso?
    MCP,MCTS | jan-marek.com
    Thursday, November 26, 2009 11:08 AM
  • I don't know if you can do it with SCVMM but I did some powershell work for you.


    $all = Get-VM *
    foreach ($i in $all)
    {
    $iso = $i | Get-VirtualDVDDrive | Select-Object ISO
    if ($iso -like "*test*")
    {
    write-host VM: $i
    }
    }

    If your ISO name is debian.iso, just replace "test" with "debian".

    Also if you use just "Get-ISO", you can see all iso images on all virtual machines.
    MSP - Microsoft Student Partner (2009-2010) http://www.yusufozturk.info
    • Proposed as answer by yusufozturk Thursday, November 26, 2009 11:28 PM
    • Marked as answer by Jan Marek Monday, November 30, 2009 9:49 AM
    Thursday, November 26, 2009 11:06 PM
  • Thanks for Shay Levy to help me to improve :)

    Best way to see that iso image, use:
    Get-VirtualDVDDrive -ALL | Where { $_.ISO -like "*test*" }

    If you need to use virtual machine name in a script:
    $VMName = (Get-VirtualDVDDrive -ALL | Where { $_.ISO -like "*test*" }).Name
    MSP - Microsoft Student Partner (2009-2010) http://www.yusufozturk.info
    • Marked as answer by Jan Marek Monday, November 30, 2009 9:58 AM
    Friday, November 27, 2009 11:49 AM
  • Big thanks Yusuf and Shay!!!!
    MCP,MCTS | jan-marek.com
    Monday, November 30, 2009 9:59 AM