VMware

clonevdi

VERSION 2 Published

Created on: Aug 29, 2008 2:36 AM by slx86 - Last Modified:  May 22, 2009 11:52 AM by slx86

This script and config file is used in our environment to clone a base image on a netapp 3020 cluster with NFS and a-sis. Cloning is done parallel on all systems mentiond in the configuration file. Afterwards sis is running on the netapp to gain storage. Different types of vm's can be specified in the configuration file and in our situation vm's disk mode is set to non-persistant. Steps are listed in the script. Good to know is that a script within the vm will force a shutdown so the process will contiue.

Sjaak

Attachments:
Average User Rating
(0 ratings)




Comments

Sep 4, 2008 3:56 PM halr9000  says:

I don't think this is needed anymore with v1.0 "http://Reflection.Assembly::LoadWithPartialName("vmware.vim")"

Also, "Get-VM $name | %{Get-View $_.ID}" Get-view will accept the VM object itself on the pipeline, so foreach-object isn't necessary, nor is $_.ID


Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)

 

More by slx86

Developer Social Media

Communities