VMware {code} Community
kaz1234
Contributor
Contributor

Connecting to ISO image on local disk

Hi, was hoping someone could help me out here.

I'm attempting to script the connection of the virtual machines CD Drive to an ISO image held on a local file share and disconnect afterwards in order to install an OS.

Has anyone come across this before and been able to solve it?

The closest thing I've come across is the following

(Get-VM VM | Get-View).Config.Hardware | select -ExpandProperty Device | ? { $_.key -eq 3000 } | ft key, { $_.DeviceInfo.Label }, { $_.DeviceInfo.Summary } -AutoSize

Thanks in advance

Tags (3)
0 Kudos
2 Replies
lamw
Community Manager
Community Manager

You question is around PowerCLI, but you're posting in Guest SDK which is different.

You may want to repost your question in the PowerCLI forums - http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli The gurus there should be able to help answer you question.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
WesBrz
Contributor
Contributor

I know that a long time has passed since the last answer, but i'd like to know how to do this using SDK?
0 Kudos