deploy multiple virtual machines using vmdk and SID file

Hello

Need to know if I am correct or miss me something... I deploy many virtual machines using method.

1. remove the vmdk files a XP.

2. create new folders and copy the vmdk into this folder.

3. create virtual machines using existing vmdk files.

4 rename the computer and join it to the domain.

My question is, my VMDK files are an existing xp VM (no longer exist), what is the status of the deployed virtual machines? they still have the same SID or it is changed? I managed to join to the domain, but do not want surprises in the future.

Note:

I had another option, could have all these automated with new SID using PowerCLi, unfortunately, osCustomization has default, I can't event run the get-OsCustomization command, it keeps failing.

Thank you.

Yes, Windows writes the SID on disk (virtual disk for virtual machines) or physical disk for physical machines.  The guest operating system has no idea on the vmx file.

Dave

VMware communities user moderator

Now available - vSphere Quick Start Guide

You have a system or a PCI with VMDirectPath?  Submit your specifications to Officieux VMDirectPath HCL.

Tags: VMware

Similar Questions

  • 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

  • Deployment of virtual machine using VMware Orchestrator

    Hello

    Can you help me pls with deployment of virtual machine using VMware Orchestration?

    Thank you

    Rekha

    Hello, Rekha, welcome to vCO take a look at my blog to get an idea of how use vCO. Christophe & I (and a few guests) have posted some tutorials around doing things with Orchestrator. Particular interest to the subject of this thread would probably be this series into three parts:

    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

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

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

    }

  • Virtual machines use a data store file?

    I think I have a couple of orphaned files hard in one of my data stores, but I hesitate to delete it without confirming that it has been adandonded. I know that I can use the menu change the settings to manually search on each virtual machine if the file in question is in use, but is there an easier way to determine this on the opposite side?

    I would like to be able to tell what VM a special hard (or any file in the data also store) is linked to.

    Thank you

    You can use something like RVTools to check your inventory

  • How to determine the size the virtual machine using the VI SDK files

    VirtualMachineFileLayout a lot of files like snapshots, configuration files, log files. I have not found any object determine the size of them, but the VI Client GUI shows the sizes of them.

    Is there a VI SDK objects that provide the size of every file?

    Thank you

    RAM

    The virtual machine, you can find warehouses of data associated with (ownership of the data store). Each data store, you can find the HostDatastoreBrowser corresponding (the property browser). HostDatastoreBrowser object, you can call SearchDatastore_Task() or SearchDatastoreSubFolders_Task.

    When you call one of the methods, a task object is returned. To the success of the task, check the property info.result of the task, the object of HostDatastoreBrowserSearchResults actual result is there. Discover the FileInfo objects - they include sizes and lately of the modified files.

    Good luck.

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net/

  • Trying to access a virtual machine using Blast and VADC configuration without a connection to the server

    Unless I misread this article , it should be possible.

    It is true that step ' not is not particularly clear, but I'm assuming they meant put the content of all unzipped in a folder called 'portal' on the folder root of IIS (C:\inetpub\wwwroot\portal\). In any case I tried this and create a virtual directory in IIS called 'portal' with the wwwroot files, all two complain that there is no such thing as MainUI.html (and it's not! Learners, I can't find this file on a connection or Security Server - which leads me to believe it is generated by one of the .json files)

    Anyone could pull this off? Any suggestions as to where I have gone wrong?

    You can do this by locating the file portal.war on the login server and copy it to the virtual desktop running VADC in view. The procedure is on page 18 of the VADC Administrator's Guide.

    We will make this procedure easier by allowing this portal.war file be downloadable via VMware-Horizon-View-HTML-Access-y.y.y-xxxxxx.zip instead of first needing to install a connection to the server, but for now just copy the file portal.war and unzip it.

    Mark

  • Single VMDK for multiple virtual machines in esx3.5?

    Hello

    Is it possible to use a single VMDK to host several VM in ESX3.5 or is this feature on the way?  I think the vmware view tech that allows you to host multiple virtual machines to a single image and store only the deltas for VMS replca.

    We organize several ts who are about 12 GB per image, and each server is essentially the same.  It would reduce the space if these could be consolidated at the level of vmware.

    Thank you very much.

    What you are referring to the notion of linked Clones, it's something completely different to share a single VMDK.  with linked clones, you actually run mulitple copies of a single Machine.  This fuinctionality is not available in ESX Raw but is a characteristic of Lab Manager and VMware View Premium.

    If you have found this device or any other answer useful please consider useful or correct buttons using attribute points

    Tom Howarth

    VMware communities user moderator

    Blog: www.planetvm.net

  • GUI: how to run the same command on multiple virtual machines at the same time?

    Hello

    Suppose we have several operations on multiple virtual machines (for example as updated virtual hardware, install vmtools - but it could be something else of course...).

    I would avoid clicking on each virtual machine (especially when we have hundreds of different groups).  It is possible to select sort

    (they are not side by side) and perform on a particular operation on all selected both?

    Hello

    If you use vCenter 5.1 + you can also try to use marking and assign tags on the items in the inventory.

    VSphere 5.5 Documentation Center - apply a label to an object

    Search for items by this tag.

    If you want to use PowerCLI 5.5, you can also search the inventory by this tag.

    Get-VM-Tag which lists all the virtual machines with which

    Here are some links for getting started with vSphere PowerCLI

    Back to Basics: part 1 - installation PowerCLI | VMware PowerCLI Blog - Articles from VMware

    vSphere PowerCLI Documentation

  • Multiple virtual machines can share a common hard

    I just confirmed that multiple virtual machines can share a hard if they all see it as non-permanent, which is great if you want to experiment with different linux packages at the same time.

    Except the hard. REDO_ * files that are produced by a virtual machine are removed when you turn it off, and all the work is lost.

    Any ideas how I could prevent the hard. REDO_ * files deleted?

    the non-persistent flag is to capture instant temporary vmdk is ignored when the virtual machine is turned off.

    The vmdk. REDO_ file is actually a type of snapshot. If you want to avoid that it gets deleted turned off the power, you must use a regular snapshot - but then your sharing of this vmdk with other virtual machines will no longer work.

    For your scenario of I don't know one solution stable AND well other than the use of network shares.

    There is a hack to really share VMDK between two virtual machines, but is more stable.

    Another solution may be that share this drive via iSCSI acrooss your machines virtual more.

    Some time ago I tried to interrupt the process of vmware-vmx.exe seconds before turning off the virtual machine and then copy the REDO far so that I can use it again... but if I remember right the next time that you start the virtual computer will be created a new REDO log and it is so pretty useless :-(

    ___________________________________

    VMX-settings- Workstation FAQ -[MOA-liveCD | http://sanbarrow.com/moa241.html]- VM-infirmary

  • Failed to create virtual machine using VMWare Workstation 11 (test)

    Hello people,

    I installed VMWare Workstation on my machine Windows 10 and trying to create multiple virtual machines to test the object. I have done this before on the Windows 7 computer and did not face any problems, but this time, as soon as I gave the location of the file to deploy an operating system it comes up with some fatal errors as error BLK_CACHE IOERR if I have enough space on the HARD drive and everything is not going further. So, my question is if my computer has compatible with Windows 10 problems or there is something else that would cause this problem. Any help or comments would be appreciated on this topic.

    Thank you!.

    Thanks for your answer, Noel

    I was going through discussions in the community with similar and found subjects that VMWare had released 12 pro workstation that supports Windows 10 entirely. I personally installed it on my physical machine and it works. Here is the link for the release of Workstation 12 notes.

    VMware Workstation 12 Pro Release Notes

  • Controlling multiple virtual machines on multiple hosts?

    Hello

    My apologies for what will clearly be a newbish question because I just started using PowerCLI yesterday. I have 6 servers hosts with 10 virtual machines on each and every VM with a snapshot.

    I created a script for

    (1) connect to Host #1

    (2) to reset all 10 VMS to the snapshot (a)

    (3) power on all virtual machines (simultaneously)

    (4) connect to the host #2... Rinse and repeat at host #6.

    It takes a little more than 5 minutes. I'm sure that this process will speed up if I find the answers below:

    Two questions:

    There's a way to connect to all servers at the same time, so can I have step #3 works on all servers host 6.

    -Is it possible to have the step #2 run simultaneously on each host to save on time?

    Thank you very much!

    With the Connect-VIServer cmdlet, you can connect to several servers in vSphere.

    Only condition is that you can use the same credentials, or this UNIQUE authentication is implemented.

    When you switch to view "multiple" with the Set-PowerCLIConfiguration cmdlet, you can run cmdlets against all those servers at the same time.

    You can now do a 'Get - VM"which will return all the virtual machines on all connected servers vSphere.

  • Script to create multiple virtual machines model works is not for the network adapter variable

    We are working on a script to create multiple virtual machines from a template. The script works fine, but when we try to include commands to set the NIC to a group of specific ports on a dvswitch script errors on. Here's what we have so far. This script (less network variables) works, but we would like to include the network configs in the script as well.

    -------------------

    This is the part of the script that configures the network/dvswitch adapter... but does not work properly.

    $myResourcePool = get-ResourcePool-name DQOL

    $dsName = get-Datastore-name "DQOL-DS01.

    $myTemplate = get-Template-name "DQVTemplate".

    $distributedSwitchPortGroup = get-VirtualSwitch-distributed - name "CVE-dvS04-Nexus - k 5 | Get-VirtualPortGroup-name '979-DQ-SHARED '.

    New-VM-name MyVM1-model $myTemplate - Networkname ResourcePool - $myResourcePool - OSCustomizationSpec $mySpecification $distributedSwitchPortGroup - Datastore

    (Get-$dsName data store)

    New-VM-name MyVM2-model $myTemplate - ResourcePool $myResourcePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)

    _____________________

    !!!!!!!  This part works, but without specifying a network/dvswitch... card!

    $myResourcePool = get-ResourcePool-name DQOL

    $dsName = get-Datastore-name "CVE-SAN-ISG-DS02-02ef.

    $myTemplate = get-Template-name "DQVTemplate".

    New-VM-name MyVM3-model $myTemplate - ResourcePool $myResourcePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)

    New-VM-name MyVM4-model $myTemplate - ResourcePool $myResourcePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)

    Here is the error we get:

    New-VM: all parameters can be resolved by using the specified named parameters.

    C:\Users\capuanoj\Desktop\Create-multiplevms-fromtemplate.ps1:6 char: 7

    + New-VM < < < <-name MyVM1-model $myTemplate - Networkname $distributedSwitchPortGroup - ResourcePool

    ePool - OSCustomizationSpec $mySpecification - Datastore (Get-$dsName data store)

    + CategoryInfo: InvalidArgument: (:)) [new-VM], ParameterBindingException)

    + FullyQualifiedErrorId: AmbiguousParameterSet, VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

    You cannot use the - model and Networkname - parameters of the cmdlet New - VM in a single order, because both are in different parameter sets. You must first create the virtual machine and then use the cmdlet Set-NetworkAdapter to change the portgroup of the virtual machine. As in example 4, assistance from cmdlet Set-NIC:

    --------------  Example 4 --------------

    C:\PS>$myNetworkAdapters = Get - VM | Get-NetworkAdapter-name "NIC 1.
    $myVDPortGroup = get-VDPortgroup-name MyVDPortGroup
    Together-NetworkAdapter NetworkAdapter - $myNetworkAdapters - $myVDPortGroup Portgroup

    Retrieves all network named "NIC 1" cards of all virtual machines and connects to the specified distributed port group.

  • What is the advantage to affect multiple virtual machines in a data store?

    Hello

    Quite a question stupid and basic, but I can't answer . What is the advantage of having multiple virtual machines in a store of VMFS data instead of having each VM in another VMFS data store? (eg. 3 VMs in 1 data store or 3 data warehouses and each virtual machine in one of them). I can only think about the ease of management for storage administrator because it creates only a single large LUN.

    Thank you

    By allowing multiple virtual machines in a data store, you can run more than 256 virtual machines in a DRS cluster.

    As a host has a limit of 256 scsi identification numbers, which means that it accesses no more than 255 LUNS shared. 1 scsi ID is used for local storage.

    In a DRS cluster as each host must be mapped to the same data warehouses to ensure that virtual machines can be moved on the cluster and run on any of the hosts.

    Now in my life as an architect VMware PSO I saw that a lot of virtual machines that require a single data store. The main reason to isolate a virtual machine on a data store must provide sufficient i/o performance. This can be achieved with other solutions than to isolate a virtual machine on a data store. Having a properly architected storage subsystem is crucial, vSphere can get out of a very large number of the IOPS / s. With technologies such as SIOC and DRS for storage, you can check that the virtual machines receive IO performance according to the needs.

Maybe you are looking for

  • Impossible to establish a TLS connection to the POP3 server

    I tried to reset my server outbound STARTTLS as suggested in one of your help pages so I can send on behalf of my 3 accounts with the appropriate server outgoing SMPT But now I can't retrieve messages and even when I put back to its initial position,

  • Upgrade memory XMP on Qosmio X 300

    Hi, Im interested in upgrading my 300 X 13w with 8 GB of Kingston KHX1600C9D3K2 with XMP profiles but I'm a little uncertain if the laptop can support DDR3-1600/PC3-12800 or is the maximum speed that can be seen by the motherboard DDR3 PC3-10600?. He

  • Problem with new Ennvoy all-in-one scanning 5530th

    I scanned just my first letter to send to someone via email.  The first two pages of the scan one very well, but the third page contains a very bold print message in the miiddle of the page and it is the only content that the scanner records on my de

  • Cursor is transparant when, in a text box in a Web page or a word document

    When using microsoft word or by typing in a website as I do now when I move my mouse on the text box or on the page in a word in the document and the capital I symbol icon (text selection), it rises in turn the same color as the white of the screen j

  • Change the product key for Windows 7 Code

    I bought a package of Windows 7 from a supplier without realizing it was a distribution of subscription "not for sale". It is now installed on my computer after a painful migration from a dying hard drive which had Windows Vista installed. The old dr