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

Tags: VMware

Similar Questions

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

  • RDM for several virtual machines on the same LUN

    Hi, I have a requirement for multiple virtual machines to have access to the same LUN filestore. I think create ROW for each virtual computer to the LUN. I wanted to ask if this is possible and if someone put in place before?

    Are there issues making this record to file/san locks?

    Thank you

    Once you add the raw device map to a virtual computer, you can not add it to each other as well.

    It would satisfy your requirement to add to a virtual computer, assign it a drive name or folder, then that spread out and have another card SMV a drive to it?  Depending on what you're trying to do, which can satisfy because it will work.

    Rich

  • Let me know scenarios when different virtual machines with the same UUID are created in VMware Hypervisors?

    Let me know scenarios when different virtual machines with the same UUID created in VMware Hypervisors, aside from editing the .vmx file?

    The only other way I've seen is when you manually copy the virtual machine to another location on the data store (or another data store) and then when turn on/off the virtual machine, select I moved, rather that I copied it (the default option).  This will keep the same UUID.

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

  • Tagged management VLAN and the virtual machines on the same VLAN

    I'm faced with a problem related to our Brocade switches newly acquired and get the private VLAN to work on trunk connections to our ESX servers.  Every time I try something different, he creates a new problem.

    In our configuration, our management of VLAN is not tag and we have a VLAN for this management network that is placed on our switches VLAN no marked native.  We also have virtual machines hosted on those same ESX servers that are on the same VLAN and everything works fine.  However, when I change the ESX management to carry a label on this VLAN and change the switchports accordingly (IE no untagged VLAN native), management work, but hosted on the ESX Server machines that are on the same VLAN can get no network connectivity.

    Is it possible to have a management network labeled and also the host of virtual machines on the same VLAN or is it totally impossible?  I'm not very familiar with networking behind ESX, so I apologize if this is a dumb question with an obvious answer.

    Thank you

    Mark J.

    Is it possible to have a management network labeled and also the host of virtual machines on the same VLAN or is it totally impossible?

    Yes, it is possible... why it doesn't work for you I don't know, but try the following:

    1. set up the Group of ports of VMS to use VLAN;

    2 configure the interface of management VMkernel port group use VLAN;

    3 configure the physical switch port to allow to this VLAN and put the default VLAN natively for these interfaces.

  • PowerCLI to deploy virtual machines at the same time

    Can I deploy multiple VMs usng PowerCLI, but they spread out in the order and with an error.  It seems almost easier to deploy them manually so that they are created at the same time and not one after the other.  I also want the static IP but don't know how.

    For now, I use a card file customization that indicates static IP and guest for this.  But he never does, he deploys the vms system then throws an error stating VC ' a specified parameter was not correct.  nicsettings: adatpter:ip. "I want to increment IP addresses on virtual computers deploy.

    This is my Basic .ps1 file content

    New-vm - vmhost vm04a.domain.com - name w2k8sp2s64qa14-vm-model Template_w2k8sp2s64qa - Datastore vm04a_storage OSCustomizationspec - w2k8sp2s64

    Can someone help me?

    1 assign static IP addresses

    2 deploy all virtual machines at the same time

    ...

    The parameter - RunAsync right on the New - VM cmdlet.

    She will continue with the line after the New - VM without delay that the cmdlet New - VM to finish.

  • Oracle XE on multiple virtual machines on the same physical machine?

    Hi people,

    Can I install Oracle XE on several virtual machines that are on the same physical machine?

    Thank you

    G. grangier

    I find that this interpretation is questionable.
    Instance, what do mean?
    What they mean by server?
    Unless Oracle explicitly forbids the execution of several databases of XE on different virtual machines at the same time, I don't see violations.

    For example, imagine that the user has runs that XE on AWS and user B running an another XE on AWS.
    They are not running on the same "Server"?

    Flavio
    ----

    http://oraclequirks.blogspot.com

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • I had the opportunity to see all the drives in windows 7 and XP virtual machine on the same screen. He suddenly disappeared, and I need.

    As I set up my computer with Windows 7 Professional and XP virtual machine, I could see all the readers, W7 and the virtual machine on the same screen. I can't do now for some reason any. All I can understand what is is past is that I got a page long list of automatic updates of W7 and some XP updates and as far as I know, the current page of readers has disappeared since then.  I need this feature if I can transfer files between W7 and XP because some of my programs are in one program of windows. I have nothing special when I installed XP to achieve this functionality, so I really don't understand what it controls.  How can I get that back?

    I have solved my problem by trying everything that moves. Here are my steps:
    -Open Virtual PC and minimize it
    -In the Windows 7 machine, click Start click all programs
    -Select Windows Virtual PC
    -Select Windows Virtual PC (in the drop-down list)
    -When the window opens, right-click on Windows XP Mode
    -Select share >
    -Select the homegroup (read/write)

    -Minimized open Virtual PC
    -Select my computer
    Windows 7 disks will be under other

    I hope this works for you also. As I said, it worked like this until I had a huge list of automatic updates of Windows 7 and XP more some updates. Apparently, one of them cut something.

    Even a blind squirrel finds an Acorn once in a while!

  • A virtual machine at the same time...? Which means that for Vmware replication

    Hi guys

    I read the Vmware 5.5 replication, and it says what I do not understand.

    I was reading the recovery process and he said:

    You can recover a virtual machine at the same time on the site replicated on the incoming replication tab

    what it means?

    I restore a VM and I have to wait until he said recovered to start the recovery process or simply means that a single virtual computer at a time and no group of the virtual machine can be recovered I can begin the process of recovery in 3 VMs at the same time, but I have to go one

    Thanks a lot guys

    Hello

    The second. You can begin the process of recovery for each virtual computer and they can go in parallel. However, there is no option to select more than one replication and begin the process of recovery in a single step.

    Kind regards

    Martin

  • network stream between 2 virtual machines in the same vlan and host using DVS

    Hi experts, so 2 virtual machines on the same vlan / subnet and on the same esxi host using VDS need to talk to each other, that they get switched by the VDS internally or they headed north for network switches and come back?

    Welcome to the community - it will stay internal to the ESXi host.

  • Start a virtual machine from the CD player on vSphere Client

    ESXi V4.1-

    I know how to get the virtual machine to connect to start for the host's cd drive.  But it seems I have to first of all power on the virtual machine, and then connect the client drive - and at this time, it will be too late.

    Report from the boot of 5 s after powering did not connect the CD from client to the virtual computer for 5 seconds pause - connection was grey until the virtual machine launched at startup.

    Is it possible for a start of the virtual machine from the CD of customer?

    When you see the white bar (after the virtual machine is started) press the key "ESC". This will bring you to a boot menu (which may not show the CD at the moment). At this time to connect the CD-ROM drive and then 'hot' starts the virtual machine by pressing CTRL-ALT-INS. Once the white bar is displayed, press the ESC key again. Now you should see the CD-ROM as boot device.

    André

  • Network problem in the virtual machines on the same switch

    Hello

    I'm stuck on a problem with my small network.  I have an ESXi 5 host that hosts around 10 virtual machines.  The last two machines I install recently displayed an unexpected behavior.  I can't do a ping between the two machines or in those 2 VMS to anywhere else in the same subnet or other networks.  These two VMS, I am able to ping and have network connectivity.  Two of these virtual machines reside on the same vSwitch and belong to the same group of port as other machines.

    The configuration of these two VMs appears to be identical to all other virtual machines that work properly.  The two guest virtual machines running Windows Server 2008 R2.

    So far, I tried several static IP and DHCP assignments with the same effect.  (Including spend another virtual machine a static IP at work known to one of the computers virtual problem)  I tried to delete and re-create one of the virtual machines completely.  I also did an upgrade from 5.0 to 5.1 for vCenter, ESXi host and virtual machines, and I am always observing the same behavior.

    Any advice on what to check next would be greatly appreciated.  Thanks in advance.

    Greg

    I assumed that you have checked the windows firewall? Because they block default ping...

  • run multiple virtual machines on the same shared drive

    I wonder if anyone knows a way to use disks of persistent nonPersistant style to function similar to Citrix Provisioning Server.

    My company uses Terminal Server servers and wants to be able to easily update all servers at the same time.  I know that with Citrix, it is possible to have a 'master' boot drive which the other launch initially out of.  To 'Refresh' your servers, you turn them off, put to update the 'master' then restart them... and viola, all are now updated.  I want to do the same thing, just without Citrix.

    I know that I can use a non persistent disc do not save the changes, but is it possible to have launch several virtual machines off this 1 disk?  I did some research and I continue to come from the small articles/blogs referring to something like this, but either they don't go into the details or they do not seek to launch several virtual machines out of it.

    This is a Citrix provisioning feature. The best you can do is try related clones. They share the same basic disk.

    Do some reading that this is probably the closet for what you are looking for.

Maybe you are looking for

  • Satellite Pro L40 keyboard + Touchpad inop after reboot

    How are Hey peeps, we all? I have a funny problem here. the keyboard and the touchpad do not work in windows or the BIOS, if I restart the computer, the same thing happens if it's just a battery or through food. If I remove the battery and then repla

  • application cleaning diagram problem

    Hello Apply Clean up diagram, so that he ordered the plan, some letters of variables in "Formula Node" are off the beaten (some completely), but doesn't affect is not functioning, - does anyone know how to solve this problem and did not write the ret

  • Change graphic AMD

    Is it possible to modify and replace it with another superior memory graphics card, as I m using hp pavilion g6 2202 TX. It has the AMD HD 7650 1 GB graphics card... I want to use it as a laptop gameHelp me please... and if it is possible then how to

  • Bluetooth works for music, but not call

    When I pair my Xperia M2 with my PLT_BBTGO, even if the two Audio phone and Audio media is checked, the audio media doesn't seem working.  I tried to place a call while my bluetooth has been matched and it worked only through the phone itself, instea

  • HP Pavilion 15-P222NF: HP Pavilion 15-P222NF: ports?

    Where are USB 3.0 and 2.0 ports on the computer HP 15-P222NF?