Create several virtual machines from a

Is it possible to create multiple virtual machines a build? I have a 2008 R2 vm. instead of having to rebuild the whole system from scratch is there a way to make a template or something to create several virtual machines a build? I am using vcenter 5 and I have 2 servers esxi 5.

You can create a template by right-clicking the virtual machine and choose Clone to the model and give the datstore where you want to save after that you will have a model using this model to deploy the virtual machine using Customization Wizard.

Tags: VMware

Similar Questions

  • Create several virtual machines from the same base image

    Hi all

    Is there any vi api sdk by which I can create several virtual machines form same base vmdk file?

    All create the VM from the base VMDK file will have their own delta vmdk file that will refer to the same base VMDK file. Only changes that are performed on each virtual machine are saved on their respective delta vmdk files.

    Thanks in advance...

    Hello

    What you are referring is called Clones related, in the current VI API, there is no method that supports this feature. You can take a look at CloneVM_Task() http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.VirtualMachine.html#clone if you want to implement a full clone and this will require you to have access to vCenter.

    In the next version of vSphere, vSphere SDK THAT will provide a way to implement the related Clones and it will be a parameter you can specify CloneVM_Task() , more precisely in the VirtualMachineRelocateSpec where you will specify diskMoveType to createNewChildDiskBacking

    You can find more information once vSphere of GA and the new QAnywhere VI documents are released, but if you are looking to implement related Clones today, you can take a look at the product of VMware View 3, which provides support for linked Clones or you can take a look at two scripts that I wrote which creates linked Clones similar to that of the view :

    Clones related to ESX

    CLones related to ESXi

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

    William Lam

    VMware vExpert 2009

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

    repository scripts vGhetto

    http://Twitter.com/lamw

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

  • 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.

  • Creating new virtual machine from an another vm

    I installed VMware ESXi 3.5 and that you have created a virtual machine to Windows Server 2003. I would like to use this virtual machine as a model to create other virtual machines. How to create a new virtual machine from a virtual machine existing? What is the best practice? Thank you.

    stop the virtual machine in question, and "the clone to a template.  You can then deploy oversized.  Make sure you have all of the sysprep files that are located in the right place.

    You wan to watch this .pdf, even if a small wedge, it might be useful

    http://www.VMware.com/PDF/vc_2_templates_usage_best_practices_wp.PDF

    Keep in mind that in order to use the functionality of model or a clone, you must have a vCenter Server

    If you believe this or any othe response was useful please consider marking as "useful" or "correct".

  • How to create a virtual machine from a template?

    Hello

    I created a model of virtual machine with a virtual computer on an ESX Server. I want to use this model to create more virtual machines on different ESX servers. How can I do this?

    Thank you

    Tejas

    In your Virtual Center client in the left upper corner click the inventory button and choose 'Models and Virtual Machines' this will display your virtual machines as well as the underneather of models in the window of the host tree.  Right-click on the template and select deploy the virtual machine from this template and it will start the wizard.

  • create the virtual machine from windows NT 4 server with adaptec raid 5

    I have an old Dell (1998) server running windows NT 4.0 sp6a.  He had a raid 5 configuration using the controller raid adaptec SCSI 2940.  2 discs failed who broke the raid set.  I had a disk recovery company to recover the data and they have scratched off readers and gave me a SATA with all volumes.  I found a procedure to create a virtual hard disk (.vhd) and then converted to a hard and used to create a virtual machine in VMware workstation 7.  When I turn on the virtual machine, it begins the process of starting windows, shows the boot menu, select normal or mode VGA, goes through the process of NTdetect, display processor and memory but then gives a BSOD with the message inaccessible_boot_device.

    I changed the hard to affect the buslogic ddb.adaptertype, but it gave me the same problem.

    is there a different driver that I need for an adaptec raid controller or if the typical SCSI drivers should work?  If the typical SCSI drivers should work, so my problem might be in my Boot.ini because it shows that he is supposed to start on the partition (4) and this sata drive may not have scores exactly as they were on the raid configuration.  I tried to mount the volumes not in read-only mode, but the partition that I need to change the boot.ini file is partition (2) what mapping VMware won't let me open mode not readonly.  whenever I have, select it and it opens the partition (1) mode not readonly.

    I know this sounds complicated then I hope I described with precision.

    Hello
    I live in Germany, but my internal clock seems to be adapted to the New York Times.
    Very useful, because most repairs or recovery to the VMware is done the evening or at night.

  • Create several virtual machines on Vsphere multiple using the spreadsheet V2

    After much tinkering with the orginal VM deployment script, I brought a lot of improvements over the old.  I'm still learning my way powercli... It is not a pretty looking code, but it does the job...  I hope it helps

    The script is designed for a windows model that has two hard disks and two card WLAN.  Virtual machines are configured after their deployment to suit the needs of the customer.  You should be able to modify the script to fit your needs.

    The script file and sample xls is attached.

    Features:

    1 deploy VMs of template file and comstomization using worksheet

    2 customization of VM after the deployment of the VM

    3 multi-thread

    4 deploy VM on vSphere servers.

    5 creates the log file

    6 create notes, the date and the user who made the VM VM

    Columns of the worksheet: (the script is designed to go from line 6.  You can change it in the script)

    The virtual computer name. Host name | CPU | RAM (GB) | DISK2 (GB) | DISK3 (EN) | Nic1 connection | Name of the model. Data store | Notes

    #VM Deployment script by David Chung 8/12/2011
    #This script is multithreaded VM deployment script using spreadsheet across multiple vsphere servers.
    #
    #It will log the result in C:\scripts\log\ folder
    #Copy autobuildv2.xls to C:\scripts folder.
    
    # --- Note that our windows standard template has two hard drives and two network (lan and backup) ---
    # --- Depending on customer requirement, CPU, RAM, Disk size, and Network VLAN connection changes. ---
    
    # Spreadsheet file should be:
    # VM name | Host name | CPU | RAM (GB) | DISK 2 (GB) | DISK 3 (GB) | NIC1 Connection | Template name | DataStore | Notes
    
    #Use following command to launch the script
    #./autobuild [spreadsheetname]
    
    
    param( [string] $file)
    
    #Update User ID and Password
    $user = 'username'
    $password = 'password'
    
    if ($file -eq ""){
        Write-Host
        Write-Host "Please specify spreadsheet file name eg...."
        Write-Host "./autobuildv2.ps1 spreadsheetname.xls" -ForegroundColor yellow
        Write-Host ""
        Write-Host ""
        exit
    }
    # Replace with your virtual center name
    $v1 = 'labvirutalcenter'
    $v2 = 'testvirtualcenter'
    $v3 = 'productionvirtualcenter'
    $v4 = 'drvirtualcenter'
    
    $dt = Get-Date -Format d
    
    #Connect to VI server using saved credentials
    
    #$credlb = Get-VICredentialStoreItem -Host $v1 -File C:\labcredential.xml
    #Connect-VIServer $credlb.Host -User $credlb.User -Password $credlb.Password
    
    #$credpd = Get-VICredentialStoreItem -Host $v3 -File C:\pdcredential.xml
    #Connect-VIServer $credpd.Host -User $credpd.User -Password $credpd.Password
    
    #$credts = Get-VICredentialStoreItem -Host $v2 -File C:\tscredential.xml
    #Connect-VIServer $credts.Host -User $credts.User -Password $credts.Password
    
    #$creddn = Get-VICredentialStoreItem -Host $v4 -File C:\dncredential.xml
    #Connect-VIServer $creddn.Host -User $creddn.User -Password $creddn.Password
    
    #open excel and read values
    $xls = new-object -com Excel.Application
    $path = "C:\scripts\" + $file
    $xls.Workbooks.Open($path) | Out-Null
    
    # Removes any existing jobs
    Remove-Job *
    
    # Starts from Row 6 on the spreadsheet
    $Row = 6
    
    # Loop starts
    for ($name -ne $null)
    {
        $name = $xls.Cells.Item($Row,1).Value()
        $vhost = $xls.Cells.Item($Row,2).Value()
        $cpu = $xls.Cells.Item($Row,3).Value()
        $memgb = $xls.Cells.Item($Row,4).Value()
        $dgb = $xls.Cells.Item($Row,5).Value()
        $dgb2 = $xls.Cells.Item($Row,6).Value()
        $net = $xls.Cells.Item($Row,7).Value()
        $temp = $xls.Cells.Item($Row,8).Value()
        $nfs = $xls.Cells.Item($Row,9).Value()
        $desc = $xls.Cells.Item($Row,10).Value()
        $vmdisk = $dgb * 1048576
        $vmdisk2 = $dgb2 * 1048576
        $memmb = $memgb * 1024
        $cp = $Row - 6
    
    # End of the loop when there is no data in the row.
        if ($name -eq $null) 
        { 
            Write-Host ""
            Write-Host ""
            Write-Host "(" $cp ") VM Build in progress.  Please check virtual center for detail." -ForegroundColor Magenta
            Write-Host "The script will end when ALL VMs are completed." -ForegroundColor Magenta
            
            # Waits until all jobs are finished
            while ((Get-Job | where {$_.State -eq "Running"}).getType -ne $null)     
            {     
            Sleep -Seconds 10     
            } 
            
            # Stops Excel process
            Stop-Process -Name "Excel"
            Write-Host ""
            
            # Writes Jobs in to log file
            $Date = Get-Date
            $logfile = "C:\scripts\log\autobuild" + "_" + $Date.Day + "-" + $Date.Month + "-" + $Date.Year + ".txt"
            if (-not (test-path c:\scripts\log\))
                {
                MD c:\scripts\log | Out-Null
                }           
            Receive-Job * | Out-File -Encoding ASCII -FilePath $logfile -Append
            Remove-Job *
            
            Write-Host "Automated VM build is completed." -ForegroundColor Yellow
            Write-Host ""
            Invoke-Item $logfile
            exit
        }
        
                
        # Select the correct customization script
        if ($temp -eq "Win2K3-32")
        {
        # Customization script name
            $cust = "Win2003_32bit"
        }
        elseif ($temp -eq "Win2K3-64")
        {
        # Customization script name
            $cust = "Win2003_64bit"
        }
        
        elseif ($temp -eq "Win2K8R2")
        {
        # Customization script name
            $cust = "Win2008"
        }
                
        #if no customization script is selected, break out of the script
        else
        {
            write "Your Guest Customizations are wrong"
            break
        }
        
    #Select Vsphere server name based on ESX host name provided
        if ($vhost -like "ESXLAB*")
        {
            $v = $v1
        }
        
        elseif ($vhost -like "ESXTST*")
        {
            $v = $v2
        }
        
        elseif ($vhost -like "ESXPRD*")
        {
            $v = $v3
        }
        
        elseif ($vhost -like "ESXDR*")
        {
            $v = $v4
        }
        
        #if incorrect host names are selected
        else
        {
            write "Please input correct host name"
            break
        }
        
        # Launch Multi-threaded job (VM build and configure)
        $job = 
        {
        $in = $input.'<>4__this'.read(); 
        
        Add-PSSnapin 'vmware.vimautomation.core'
        
        $vmdisk = $in[5] * 1048576
        $vmdisk2 = $in[6] * 1048576
        $memmb = $in[4]* 1024
        
        #VM note (description, deployed by: username, and build date)
        $onwer = Get-Acl
        $deployed = $onwer.owner
        $note = $in[10] + '  |  Deployed by:' + $deployed + '  |  Created:' + $in[13]
        
        #Connect to VI server
        Connect-VIServer $in[11] -User $in[14] -Password $in[15]
        
        #Build VM and configure
        New-VM -Server $in[11] -vmhost $in[2] -Name $in[1] -Template $in[8] -Datastore $in[9] -DiskStorageFormat thin -OSCustomizationSpec $in[12] -Location "Discovered virtual machine" -Description $note
        Set-VM -Server $in[11] -vm $in[1] -Numcpu $in[3] -MemoryMB $memmb -RunAsync -Confirm:$false
        $disk = Get-VM $in[1] | Get-HardDisk | ? {$_.Name -eq "Hard disk 2"}
        Set-HardDisk -harddisk $disk -CapacityKB $vmdisk -Confirm:$false
        if ($in[6] -gt 0)
            {
            New-HardDisk -Server $in[11] -VM $in[1] -CapacityKB $vmdisk2 -Confirm:$false
            }
        $vmnet = Get-VM $in[1] | Get-NetworkAdapter | where { $_.Name -eq "Network Adapter 1" } 
        $vmnet | Set-NetworkAdapter -NetworkName $in[7] -StartConnected:$true -Confirm:$false
        }
        
        # pass variables in to jobs
        $jobspec=@()
        $jobSpec += $job
        $jobspec += $name
        $jobspec += $vhost 
        $jobspec += $cpu 
        $jobspec += $memgb
        $jobspec += $dgb 
        $jobspec += $dgb2
        $jobspec += $net 
        $jobspec += $temp
        $jobspec += $nfs
        $jobspec += $desc
        $jobspec += $v
        $jobspec += $cust
        $jobspec += $dt
        $jobspec += $user
        $jobspec += $password
        
        #start the job    
        Start-Job -InputObject $jobspec -ScriptBlock $jobspec[0]
        
        Write-Host ""
        Write-Host $name " VM is being deployed on " $v -BackgroundColor Green -ForegroundColor Black
        Write-host ""
        
        
        $Row++
    }
    
    
            
    
    

    Good script, a lot of interesting features in there.

    Thanks for sharing.

  • How to create a virtual machine from an ISO file?

    Hello

    I was exposed to ESXi for a few days and who need your help.

    I installed ESXi on a server and you want to create VMS of ISO files. (Ubuntu, Win7, ESXi)

    I beent told I can create virtual machines using Vcenter Converter from a client computer, but I can't figure out how.

    I have the Client installed vSphere and vCenter Converter Sandalone.

    Thank you for your help,

    Park

    The virtual machine must be fed first

  • Scripts for clone/create several virtual machines model.

    Hello

    In the past I used viMa with ghettoClone.sh to create one or more virtual machines based on a model - however are there any similar scripts that run on VMA which can also be used to do the same thing. Because scripts can stand up to ESXi 3.5U2 however used ESXi4

    So, I'm looking to see if there is anything similar, which can be used for ESXi4 with VMA?

    See you soon

    Absolutely must. At this point it is probably not something you want to do or need to do that cannot be done by one of your scripts.

  • You can create a virtual machine from a snapshot?

    I have a virtual machine running that I am not able to stop, I want to create a snapshot of this virtual machine and take it on a test ESX host.  I thought to take a snapshot of the VM running, I can't stop, and then create the new virtual machine to the snapshot, but I'm not sure how or if this is even possible.  If it is possible what is the best way to go about doing this, if it is not possible is there another way I can archive my goal of not having to stop my VM but always get a copy of what I can get it running on a test of the guests IS.

    You can also try to clone the virtual machine. Cloning in line should work with vSphere. Good luck.

    Paul

  • How can I create a virtual machine from an ISO?

    I just installed VMware ESXi 4.1.0 on a server and then downloaded the vSphere client to connect to the server. I created a Linux (Debian 5 64-bit) profile VM, but I have the ISO Linux file on my PC I have vSphere client installed on. How can I tell my new machine VM to boot from ISO which is glued on my PC? Is there a way I can browse my PC using the vSphere client or do I burn the ISO on a CD - R and the place physically in the CD-ROM on the host system so that I can start my Linux install?

    Thanks for any help!

    you will need to ensure that the ISO file is accessible to the ESXi host moving to a datastore VMFS or NFS dayastore which is accessible to the ESXi host - then follow the instructions here - http://www.vmware.com/pdf/vsphere4/r41/vsp_41_vm_admin_guide.pdf on how to install forms an image - ISO

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Create a virtual machine from una Máquina física

    Buenas tengo a PC con windows vista 32bits y intento con virtualizar VMWare, vcenter converter standalone, para eso he cogido Máquina física y he pinchado UN segundo disco, he abierto el programa VMWare vcenter converter standalone y he hecho lo siguiente:

    PASO 1: Machine Convert: this local machine (Origen)

    PASO 2: Destination: here he against the ruta donde quiero save the imagen y well he probado an exportar-lo para vmware player 2.5 y también he repetido el paso para vmware workstation 6.5.X

    PASO 3: customise the config, donde he marcado las options than in el siguiente pantallazo muestro

    Dibujo2222222.jpg

    Con todo esto to me genera el archivo used despues of than quiero import en otra Máquina

    Ahora OCOG maquina donde quiero import dicha imagen física y he probado lo siguiente:

    Option 1: open el vmware y hacer file == > open, cojer imagen anterior tal cual y run - the

    Option 2: open the vmware vcenter converter program is run the option of 'set machine', donde el ORIGEN economics y our crea en otra vidéoconférence otra imagen supposedly "reconfigurandola" para adaptar - a Máquina dicha.

    Option 1 the opcion como con tanto 2 al correr imagen sale el windows vista logo y despues sale me el pantallazo AZUL diciendome than verifique if he wont algun device recently etc etc etc... y but that arrival Coupling Nut a hacer a chkdsk /f (el qual he probado a hacer desde entering her recuperacion consoled) y me said that no podia por hacerlo algun reason.

    Con todo esto, alguien me could hechar una mano, o Yes alguna sugerencia o consejo?

    Gracias,.

    What tenes el equipo original disco? Como you Le Diego el archivo boot.ini indica al bootloader a Quebec n tiene than ir a buscar los archivos inicio del sistema operating system.

    For example if in el equipo original tenemos UN disco SAS, SCSI o algo por el estilo Máquina virtual definimos UN disco IDE if the boot.ini no to change the Máquina en virtual durante el proceso of conversion you can than este quédé apuntando UN do disco SAS luego no encuentra ago than what defined tenes are UN disco IDE in the virtual.

    Para mi can come por ese lado. Of todas formas you pido what pegues una captured of the led error pantalla para as lo mas clearly identify pruned.

    Best wishes / Saludos

    Por don't favor no olvides calificar las responses you valiosos ayuda o were should

    Please, do not forget the points of call of the "useful" or "correct" answers

    ________________________________________
    Nicolas Solop

    VMware vExpert 2010 - VCP 410 - VCP 310 - VAC - VTSP

    My Business Blog (Blog of the Wetcom group)

    Follow me on Twitter

    My Linkedin profile

    Join the Virtualizacion en Español group in LinkedIn

  • How can I create a virtual machine

    Should I create a virtual machine from a boot camp partition or install Windows XP from an existing file?  Help!

    I did a little research on the website of Apple, and the marketing point of view, they have a sort of gloss over the fact that you need a Windows install with Boot Camp.  Here is a Knowledge Base article that makes it a little more clear.  I can see if you look how Apple sells Boot Camp (and Fusion or Parallels also) the need for a Windows installation disc is kind of lost in the noise.  If Photoshop is the only thing that you think you will need Windows to consider that a Windows install disc will probably cost you about $100.  While Boot Camp offers you the best performance under Windows Me, it is inconvenient to keep restart the machine in Mac OS X or Windows as needed.  Fusion or Parallels meets the needs most (I think that most needs except for gamers) and is much more convenient, but it is an another $35 à $50 or more on top of the purchase of Windows. That's why I suggest just buying a copy of Mac in Photoshop if that's all that you'll need Windows.

    Make no mistake that you are now several computers also with Boot Camp, Fusion or Parallels.  Llke maintenance common Windows defrag, backups must be done any program installation you chose to use.  In my case I have to use some applications only available under Windows for work, and I prefer Quicken on Windows to its ' equivalent of Mac (they are not the same program) so I use Fusion.  If it wasn't for these needs I will try to be just a Mac user.

    Post edited by: gbullman

    Link added to article Apple

  • Import a virtual machine from a backup of Symantec .sv2i

    I need to create a virtual machine from the backup of a Windows physical box created with one of the latest versions of Symantec BESR.

    VMware Converter Standalone documentation reading - I see that only the backup made with Symantec BESR 8.5 and earlier files are supported.

    Can someone please provide a solution or at least advice?

    Concerning

    Marius

    Hello

    You can create a temp disk (VMDK) to an existing virtual machine, and then put your backup file on the disk.

    Detach the VMDK and then assign to a new virtual machine as a second disc (the virtual machine you need to restore the backup to that).

    Then start the virtual machine of the Symantec BESR startup disk and restore the secondary drive on the first disk backup file.

    After that detach and remove the second disk.

    Of curse, this solution may not work after restoration because you made the physics of the machine backup and restore to a virtualized platform.

  • Help for a demo: create multiple virtual machines

    Hello

    I am a beginner in vCO, I completed the installation and configuration with success and I started to create workflows, but I guess that I need help with an example that I started yesterday:

    I am creating several virtual machines at the same time, I mean all the user have to do is say how VMs, he wants to be created and the workflow must do the rest, but I don't know what is the best way to do so, in the present workflow in the library , find us only 'create simple VM' so I added a few scriptable tasks to this workflow, but still can't do what I want.

    Any solution plese? or a few best practices to perform this type of workflow? Maybe I missed a workflow can create multiple virtual machines with different names but the same configuration.

    Thanks in advance,

    This can help out you.

Maybe you are looking for