Solved

attaching ISO to VM

  • 14 April 2016
  • 6 replies
  • 7120 views

Badge +7
I'm trying to learn how to create VM and attach a ISO present in image configuratiion. Is there way to do. Knowlege on portal and powershell is very limited. Appreciate a small hint.
icon

Best answer by Preetam 17 April 2016, 19:59

Thank you  for your hint, I achieved my intentions of automation. I have created blog for it here. http://www.vzare.com/?p=4521 Credits to  & You.
View original

6 replies

Userlevel 7
Badge +30
Can you describe your setup? Are you using AHV, ESXi, HyperV? Are you trying to script from some engine? are you trying to use PowerShell, or are you open for some other CLIs?
Badge +7
I would like to use powershell or ncli , idea is to create VM, attach ISo and power on VM so as to make it boot from iso
Badge +7
It is AHV
Userlevel 7
Badge +30
Use this blog from  http://blog.myvirtualvision.com/2016/01/13/ahv-creating-a-new-vm-using-powershell/ as your starter.

I pinged one of the powershell developers, he's going to work on a code snippet as a sample for you, in the mean time, his initial comment was this:

The idea is in the vm create or update option you can use the vmDiskClone parameter to clone the vdisks from the already existing images. There is no separate command to attach a image to a vm its the part of the vm creation only. So in the existing vm create powershell script, you can add the vmDiskClone object in the diskList for the vms.
Badge +7
Thank you  for your hint, I achieved my intentions of automation. I have created blog for it here. http://www.vzare.com/?p=4521 Credits to  & You.
Userlevel 7
Badge +30
looks good, good work

Reply