VMware Cloud Community
dpetche
Contributor
Contributor

Mount a ContentLibrary ISO on a guest via PowerCLI

Author : Kristina Bliznashka

URL : http:////docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.html.hostclient.doc/GUID-132901CE-...

Topic Name : Add a CD or DVD Drive to a Virtual Machine in the VMware Host Client

Publication Name : vSphere Single Host Management - VMware Host Client

Product/Version : VMware vSphere/6.7

Question :

I see documentation re: how to mount an ISO from a datastore or ContentLibrary via the vCenter GUI, but is there a way to mount a ContentLibrary ISO file on a guest machine via PowerCLI?

Reply
0 Kudos
1 Reply
vMarkusK1985
Expert
Expert

You can try this:

$ISO = Get-ContentLibraryItem -Name "Your.iso"

Get-VM "Your Vm Name" | New-CDDrive -ContentLibraryIso $ISO

Source: Online Documentation - Cmdlet Reference - VMware {code}

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
Reply
0 Kudos