Deploy multiple virtual machines from one model to the help of customization of the OS and a text file for hostname and IP

Hi all

Not sure if this has already been answered, I did a search on the forums, but couldn't find an answer to what I'm looking for.

I want to fully automate the deployment of multiple VMs of a model using a customization file, but also to retrieve the host names and IP addresses from a text file / spreadsheet.

for example:

I need to deploy a test environment of 30 virtual machines using the template file and customizing TestVM. I have a spreadsheet with the VM host names and IP addresses. The process now is to manually enter the host name and IP when the customization file invites to do while deploying them in each virtual machine. The customization file takes care of the rest (license key, admin password, add to the domain etc.) can I automate entry of the name of host and IP addresses in reading from a text file?

Thanks in advance!

Take a look on the deployment, customization and modification of virtual machines to a csv file

There are many more examples of this community on the same subject,

Tags: VMware

Similar Questions

  • Move a Virtual Machine from one place to the other?

    Hello.

    I've been getting better and better at VMWare with the help startup great I'm out here.

    I'm under free ESXi here at home. If I create a virtual machine here which is the easiest way to copy the virtual machine on an external drive and move it to a customer's location? I know that I can use Backup Exec to backup the file but I don't know there is a built-in VMWare tool to do this.

    I can't just turn off the machine and copy the virtual files via the VSphere Client on a drive, can I?

    Thank you.

    Mike Gallery

    From the file menu in the client vSphere, you can export an ovf which can be restored the same way somewhere else.

  • Deploy multiple virtual machines simultaneously

    Hello

    I'm trying to deploy multiple virtual machines at the same time using powercli.  I think I have has the switch - RunAsynch, howerver, this doesn't seem to work, instead of that virtual machines are deployed one at a time.  Here is my code:

    SE connect-VIServer-Server vc1. MYDOMAIN.local - user MYDOMAIN\MYACCOUNT-password MYPASSWORD

    New-vm - vmhost prodh1. MYDOMAIN.local - name of TEST - SVR01 - model W2K8R2SP1 - IOMEGA data store - OSCustomizationspec-W2K8R2SP1-_Tobedeleted location | Start-VM - RunAsync

    New-vm - vmhost prodh1. MYDOMAIN.local - name of TEST - SVR02 - W2K8R2SP1 - IOMEGA data store model - OSCustomizationspec-W2K8R2SP1-_Tobedeleted location | Start-VM - RunAsync

    New-vm - vmhost prodh1. MYDOMAIN.local - name of TEST - SVR03 - W2K8R2SP1 - IOMEGA data store model - OSCustomizationspec-W2K8R2SP1-_Tobedeleted location | Start-VM - RunAsync

    New-vm - vmhost prodh1. MYDOMAIN.local - name of TEST - SVR04 - W2K8R2SP1 - IOMEGA data store model - OSCustomizationspec-W2K8R2SP1-_Tobedeleted location | Start-VM - RunAsync

    Start-Sleep - seconds 300

    Get - vm "TEST-SVR01 | Get-VMGuestNetworkInterface Guestuser - administrator - GuestPassword "MYPASSWORD" |? {$_.name - eq "Connect to network Local 3"} | Game-vmguestnetworkinterface administrator - Guestuser - GuestPassword "MYPASSWORD" - IPPolicy - 192.168.1.25 static IP - Netmask 255.255.255.0 - Gateway 192.168.1.1 DNS - 192.168.1.2,192.168.1.3 - RunAsync

    Get - vm "TEST-SVR02 | Get-VMGuestNetworkInterface Guestuser - administrator - GuestPassword "MYPASSWORD" |? {$_.name - eq "Connect to network Local 3"} | Game-vmguestnetworkinterface administrator - Guestuser - GuestPassword "MYPASSWORD" - IPPolicy - 192.168.1.25 static IP - Netmask 255.255.255.0 - Gateway 192.168.1.1 DNS - 192.168.1.2,192.168.1.3 - RunAsync

    Get - vm "TEST-SVR03 | Get-VMGuestNetworkInterface Guestuser - administrator - GuestPassword "MYPASSWORD" |? {$_.name - eq "Connect to network Local 3"} | Game-vmguestnetworkinterface administrator - Guestuser - GuestPassword "MYPASSWORD" - IPPolicy - 192.168.1.25 static IP - Netmask 255.255.255.0 - Gateway 192.168.1.1 DNS - 192.168.1.2,192.168.1.3 - RunAsync

    Get - vm "TEST-SVR04 | Get-VMGuestNetworkInterface Guestuser - administrator - GuestPassword "MYPASSWORD" |? {$_.name - eq "Connect to network Local 3"} | Game-vmguestnetworkinterface administrator - Guestuser - GuestPassword "MYPASSWORD" - IPPolicy - 192.168.1.25 static IP - Netmask 255.255.255.0 - Gateway 192.168.1.1 DNS - 192.168.1.2,192.168.1.3 - RunAsync

    Get-NetworkAdapter "TEST-SVR01 | Together-NetworkAdapter - NetworkName VM1-confirm: $false

    Get-NetworkAdapter "TEST-SVR02 | Together-NetworkAdapter - NetworkName VM1-confirm: $false

    Get-NetworkAdapter "TEST-SVR03 | Together-NetworkAdapter - NetworkName VM1-confirm: $false

    Get-NetworkAdapter "TEST-SVR04 | Together-NetworkAdapter - NetworkName VM1-confirm: $false

    If anyone can help?

    Thank you

    Duncan.

    Yes, you are right.

    By specifying the param -VM (Get - VM $modelVM) , you create the new virtual machine from an existing one.

    Just change the cmdlet New - VM settings according to your needs and let the VM - far.

    It creates your virtual machines based on a template and specification of customization.

    $esxName = "prodh1.MYDOMAIN.local"
    $template = "W2K8R2SP1"
    $datastore = "IOMEGA"
    $newVmList = "TEST-SRV01", "TEST-SRV02", "TEST-SRV03", "TEST-SRV04"
    $custSpec = "W2K8R2SP1"
    $location = "_Tobedeleted"
    $taskTab = @{}
    
    # Create all the VMs specified in $newVmList
    foreach($Name in $newVmList) {
         $taskTab[(New-VM -Name $Name -VMHost (Get-VMHost -Name $esxName) -Template $template -Datastore $datastore -OSCustomizationSpec $custSpec -Location $location -RunAsync).Id] = $Name
    }
    

    Of course, you can write it as before. You will need to only change the $newVmList variable in the original script.

    foreach($Name in $newVmList) {
         $taskTab[(New-VM -Name $Name -VMHost "prodh1.MYDOMAIN.local" -Template" W2K8R2SP1" -Datastore" IOMEGA" -OSCustomizationSpec "W2K8R2SP1" -Location "_Tobedeleted" -RunAsync).Id] = $Name
    }
    

    You will also need to insert the remaining part with the while loop and the customizations in your network!

    http://www.lucd.info/2010/02/21/about-async-tasks-the-get-task-cmdlet-and-a-hash-table/

    Concerning

    Emanuel

  • vCO workflow: create a virtual machine from a model and then ask the user about the CPU, memory size...

    Hi guys,.

    I am trying to create a workflow with vCO that can do the job for me:

    -Create a virtual machine (or maybe a several virtual machines) from a model (the model is in vCenter, of course)

    -L' user who is running the workflow has the thr right to say what he wants for the CPU, the memorysize, the disksize

    Any help?

    I found some workflows in the library can seem to do something similar to what I want, but since I'm a beginner I'd rather have your advice

    Hello there and welcome to vCenter Orchestrator

    Take a look at this series of tutorials to get an idea of how start:

    Create a vCO simple self-service VM Provisioning Portal - part 1

    Create a vCO simple self-service VM Provisioning Portal - part 2

    Create a Simple Self Service VM Provisioning Portal vCO - part 3

    The general approach to take would be to determine which of the clone (or clone and customize) workflows adapts to your nearest need (see your customer vCO: workflows\Library\vCenter\Virtual Machine management\Clone\)

    Then, create a NEW WORKFLOW that calls this one... after that your clone operation is complete, keep the computer turned off virtual and add feeds of extra work from the library to your new workflow that do things like change the amount of Ram, adds disks, change CPU, etc...

    Be sure to watch the videos on http://www.vmwarelearning.com/orchestrator to get a basic understanding of the use of vCO.

  • How one move the templates of virtual machine from one host to another host in the cluster even

    Hello

    Can you get it someone please let me know how to move the templates of virtual machine from one host to another host in the cluster even?

    Thank you

    James

    Welcome to the forums!

    Convert it to a virtual machine (right click on guest and choose the appropriateoption), move it through the migration feature (right-click Guest, and then choose "Migrate") and convert into a model (right click on guest again and choose to convert to a template).

    If you found this information useful, please consider awarding points to 'Correct' or 'Useful' responses Thank you!!

    AWo

    VCP / vEXPERT 2009

  • Move the virtual machine from one host to another with shared storage

    Hello

    I have a question on how to move a virtual machine from one ESX 4 host to a host ESXi 5.  These hosts have access to the same shared storage but the ESX 4 host is outside the network and host ESXi 5 is inside the network so vMotion is not an option.  They are in different groups.  I know that there must be an easy way to move this virtual machine, but for the life of me, I can't find it.  I guess I have remove the virtual machine from the external cluster but how to make the virtual machine in the internal cluster?

    Thanks in advance...

    If both host access to the data store even where VM's store, just stop the virtual machine, remove inventory on ESXi 4, go to ESXi 5 vSphere vSphere, browse the data store where the VM is stored, do a right-click on the .vmx file and add to the inventory.

  • How to move the virtual machine from one cluster to another cluster

    How to move the virtual machine from one cluster to another cluster

    If two Clusters are in the same data center, you could do a 'live' migration or vMotion, if that's the case.   If the virtual machine is turned off, it may be migrated regardless of the data center.

  • How to move virtual machines from one host to another without full VI and vMotion?

    Hello

    could you help me with a question?

    I have two installed hosts with ESXi 3.5 U5, which are connected to the shared iSCSI (Openfiler) - VMs storage are installed on the storage disk. My requirement is to have a cheap solution of DR - in case of failure of a host, I need to move and start VM on the host of work. How to achieve without going through VMware Infrastructure 3.5 and vMotion?

    I found this article:

    http://www.virtualizetips.com/2010/04/how-to-move-a-VM-without-vCenter-or-storage-VMotion/

    but RCLI needs Infrastructure of VMware ESXi does not have default CLI So, how to move VMs between hosts (of course I mean "cold" move) without byuing any additonal VMware SW? It is generally possible in my situation?

    Thank you.

    ARO

    Danas

    If the virtual machines are running in shared storage (two guests see the same storage iSCSI or NFS) then it's simple. If a host goes down, then look for the data store on the ESXi host work. Navigate through folders for each virtual machine, right-click on the VMX file and add to the inventory. You will then be able to turn on the virtual machine.

    To move a virtual machine from one host to another, as long as both hosts had the same processors, you can pause the VM on the single host, browse and add the virtual machine to the inventory on the second break host and the United Nations.

    If the virtual machines are on local storage, but the two hosts are connected to the same shared storage, clone virtual machines on a daily basis from local storage to shared storage. Use something like ghettoVCB http://communities.vmware.com/docs/DOC-8760 make the clone. In the case of a server failure, you will be able to browse the data store, add to the inventory on the shared storage and switch the cloned machine.

  • What is the best method to transfer a virtual machine from one PC to another?

    I am a novice in VMWare workstation. I created my first SharePoint 2010 development VM, and my boss wants me to give him a copy of my SP 2010 VM. He told me to just give him the. VMX file, but I believe that there must be a better method to transfer a virtual machine from one PC to another.

    Thanks in advance.

    Coltrane.

    Coltrane,

    to transfer a virtual machine from one PC to another, shut down the virtual computer and copy the complete folder with all the files (vmx, vmdk,...) on another PC.

    A thin to keep in mind (outside the Windows license) if the virtual machine is one attached to your network, you must change the copied disk - as you would with a cloned physical system - to have a unique host name, MAC address and IP address.

    André

  • How to move a virtual machine from one virtual switch to the other since the SDK / command line?

    How to move a virtual machine from one virtual switch to the other since the SDK / command line?

    Joshua Smith

    Are you referring to the evolution of the virtual machines network portgroup of one to the other and in your case potentially issue on to another vSwitch? If so, take a look at this script: updateVMPortgroup.pl everything you do really makes a call to ReconfigVM_Task() and passing in a specification change and put to day the network in which you want to change

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

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • I tried many combinations of the different pc in order to transfer files from one pc to the other and only max speed I have is from 4 to 10 Mbps.

    Hello

    I tried many combinations of the different pc in order to transfer files from one pc to the other and only max speed I have is from 4 to 10 Mbps.

    I use the switch/cat6 cables only the router is capable of 100 Mbps.

    Also, I connect the pc directly with cable and still the same speed.

    Win7 will get more than that and how?

    I read the other posts on this topic, but all patches are not applicable to me.

    I used various cables and switches and PCs in order to eliminate the possibility of a defective unit.

    Can you please help?

    Thank you

    Andreas

    Hello Andreas,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    Forum TechNet Windows 7

    TechNet Windows Server Forum

    Hope this information helps.

  • Error trying to deploy a virtual machine from a template

    Hello everyone,

    We went from ESX 3.5 U4 and VC 2.0 to vSphere 4 and ESX 4.0. In VI 3 deployment of virtual machines in models worked fine without any errors. Now, I have the problem that I can't deploy virtual machines from templates more. I upgraded VMWare tools on each machine for vSphere 4. But whenever I try to deploy a VM from a template I get the following error: "number of virtual devices exceeds the maximum for a given controller. This happens only when I go to the option "Change the virtual hardware (experimental)" and by changing the virtual network to another local VIRTUAL network adapter (in my case from INTERNAL to VLAN21) before you deploy. When I'm not changing the network card virtual, all works well.

    I have been through a few KB and some discussion of the community, but those who are almost for vmware converter.

    Could you please help me?

    Thanks in advance for any answers.

    Mirco79

    Convert virtual machine model.

    Modify the virtual machine settings.

    Choose a network suitable for model (it shows probably no name)

    Convert virtual machine model

    Try to deploy new virtual machine model to see if it works again correctly.

    StarWind Software R & D

  • Deploy multiple virtual machines on several hosts evenly?

    Hello people!

    I wrote a small script to deploy many virtual machines on several hosts at random.

    But I would rather deploy a virtual machine to each host in a table and then start over again until the number of virtual machines to deploy exhausted.  Distribution of the burden of deployment as evenly as possible.

    Anyone have a suggestion?  Example of nested loops?

    PowerShell beginner, here.

    Thank you

    romatlo

    One way to do this is with the modulo operator (%), something like this

    $numVMs = 11

    $tgtEsx = get-Cluster "Westcreek | Get-VMHost-name z420 *.

    1.. $numVMs | %{

    [New-VM-name 'Test $($_)' $tgtEsx[$_%$tgtEsx.Count - VMHost]

    }

  • Trying to copy a virtual machine from one server to another

    Hi all

    I'm new to ESXi 4, although I used VMWare Workstation for years.  I am trying to copy a virtual machine from a Windows system (Sysprep) from one host to another.  The two hosts are identical systems with the exact same ESXi host configuration.  Same hw, same version of ESXi, same setup, same size of the partition.

    When I use the Vsphere data store browse to 'download' the vmdk and vmx files to a local drive (Windows Server 2003), I get the following 3 files: the same vmx file, a tiny vmdk file and a file huge filename - flat hard.  The file vmdk on browser to store data from the source host is about 23 GB.  The flat on the local system vmdk file is almost 63 GB.

    Can I reopen Vsphere on the destination server and "load" the 3 files in a directory that I created in the data store.  Once there, I use the browser "Add to inventory."  When I try to turn on the virtual machine, I get the error message "not enough space on the data store."

    Any ideas of what I could have done wrong?  Again the data store configuration is identical:

    Local disk to VMware: 62.95 GB, Total formatted capacity: 62,75 GB.  1 VMFS 3.33 MB block size it's the only VM on the system.

    Thanks in advance,

    Mark

    What you see is by design.

    When you try to copy a disc loaded end service, with the browser data store or FastSCP, the virtual disk will be inflated. Use the converter such as recommended by AlbertWT.

    Since the virtual disks of destination must already 60 GB of disk space you may not able to power on the virtual machine, because there is not enough disk space for the swap file, which is the size of the configured RAM (less reserve, if necessary).

    André

  • How to move the virtual machine from one host to another?

    The two boxes under ESXi 5.0 (hypervisors freely licensed).

    I have a virtual machine (FreeBSD) that I need to go to another box.

    Network ports are not the same, but I guess that's not a biggie to reconfigure the network cards. Other than that, I have to follow a few best practices/SOPS or copy & paste is everything I need to run perfectly on a different host?

    Thank you very much!

    FastSCP allows you to copy directly between hosts, so it can save a lot of time you copy.  I don't know what you mean by 'manually' copy files.  Do you mean using the vShpere client and download the files to a location then download them to the new host?  Either way works perfectly, but FastSCP you must save a step.

    If you have currently snapshots, you can consolidate first or leave em and just copy them with the rest of the virtual machine. There should be no need to do something with snapshots, if you perform a migration 'offline '.  As long as you take all the files, snapshots will be displayed on the destination host computer when you save the vm on the host.

    I did 'on-line' migration of large virtual machines first to the take a snapshot on the source host, copy basic to the first destination host disks while the virtual machine was still running on the source host.  When I was ready to migrate the CPU processing, I power off the virtual machine, copy the other files (which would include the deltas from disk and whatnot) and turn on the vm on the destination host (which would cause only a few minutes of downtime).  Later, I consolidate records by removing the snapshot on the destination host.  Way to a poor man to do a migration of vm on ESXi free edition with little downtime.

Maybe you are looking for

  • Tecra A4 Audio Jack sizes

    Hi all I recently bought a Tecra A4. My plug stereo audio 3.5 mm (that I used with my laptop computer players and previous music) can not get into the audio jack of the Tecra. There seems to be a sort of "obstruction" in decision-making. I've had the

  • Equium P300 - where can I get the recovery disk?

    Hello I have a Toshiba Equium P300 and who need the recovery disc for this. I rang toshiba directly, but they do not take my card of my cell phone is being repaired 3times now the 1st time was for a hard drive again when they returned it she came wit

  • Photosmart 6520: HP Photosmart 6520 stopped saving multiple page PDF in a single document

    I'm I scan a multi page document and save it in a single file PDF so have been using the icon "+" for each subsequent page.  The pages appear in the window as 1/2, 2/2, 3/2 etc.  When I save the document it saves each page into a separate file, for e

  • _ERR_COMMAND_EXCEPTION CMN3101E user, the system is unavailable due to "java.lang.NullPointerException".

    I just had some problem to be able to print a PDF file that has sent me a reliable source of the school. He could not open with precision and would not print. I was told a few undesirable and the part of it said: User CMN3101E the system is unavailab

  • Speakers cut automatically

    My laptop DV 2000 touch button turns mute Control Panel on / off power automatically with frequet TOGGLE of the shares. Also, the volume bar falling down as if it is done manually. All this continues, at random, without any pause. I tried to retrieve