PowerCLI - deploy VM-models from CSV

Problems with a script.  According to me, I'm close, but still miss me something...  I don't know if PowerCLI is a matter or my knowledge lack of PowerShell.

My PowerCLI 6 script seems to work but only at a low level.  It creates virtual machines, but does not assign the IP address or the host name to the newly created virtual computer.  Then, when it is time to apply the customization specifications, it times out or simply is not fully applied; I don't know who, as no error is spit me.  It creates the virtual machine with the correct name & changes the Group of port on which the NETWORK card will sit but that seems to be about it.  I manually tested the customization specification and model are used in the text, and it seems fine after a manual inspection.  For some reason, some information from the CSV are not used properly or at all.

The script I have is quite long and I didn't want to ruin the page with her so I he dumped on PasteBin; hope that's ok...

Script: http://pastebin.com/XwFHLHER

CSV: http://pastebin.com/u59TwBu4

Found my problem.  Everything was fine except for the line of New-VM ; He had the wrong variable for the switch -OSCustomizationSpec .  Feeling a little stupid, but it's been a long week.

Incorrect line:

New-VM-name $GuestVM - model $Template - location $VMFolder - OSCustomizationSpec $CustSpec - ResourcePool $Cluster - data $Datastore store

Good line:

New-VM-name $GuestVM - model $Template - location $VMFolder - OSCustomizationSpec $TempCustSpec - ResourcePool $Cluster - data $Datastore store

Tags: VMware

Similar Questions

  • How to deploy a VM from a model of Orchestrator

    Hey,.

    How to deploy a VM from a model using a technique of customization or launch a script customization on a Linux host via Orchestrator?  The JavaScript function not seem obvious to do this so a little code examples would be nice. Also, if I try to do using a PlugIn what are my rights of authentication?  The same as the logged-on user?

    Kind regards

    ~ Patrick

    Don't forget if the answers help you, award points

    To delpoy a virtual machine from a template use the Clone VM workflows. You can use a workflow clone with or without customization. Orchestrator, computers point of view virtual and models are pretty the same objects

  • Deploy the model w/o vCenter...

    Greetings...  I have a Windows Server 2008 virtual machine that has been cloned in a model via a feature in vCenter.   I need to deploy this model in our development environment consisting of a host 5.1 ESXi and vSphere client running against her.  We have not vCenter running in our dev environment...   Question: How can I deploy this model w/o vCenter being present?   Is it as simple as a converter any running on the VMDK file, then create a new virtual machine from scratch & pointing to the "existing virtual disk"?   The only thing here, is that in the data store, I have two files VMDK: filename.vmdk and filename_1.vmdk thanks!

    Yes, that sounds good.

    This othe rfilename_1.vmdk should be a second disk on this virtual machine.  So when this template has been created, it looks like someone added a second drive to the virtual computer.  so a C:\drive which would be the filename.vmdk and player E:\Data or something that would be the filename_1.vmdk

    Also because you can not run the configuration wizard that is part of a deployment of the model you will be have sys prep the Windows VM after that it starts to get a convincing identity, otherwise, you will encounter duplicate Active Directory SIDS

    Hope this has helped.

  • Impossible to deploy the model after upgrading to vCenter v4_1

    Hi all

    I updated vCenter Server from version 4.0 to v4.1 and re-registers the hosts.
    Virtual machines are working well and are able to collect data on performance.

    However, when I tried to deploy the model, error occurred and failed to deploy the model.

    (This model were made to vCenter v4.0 environment, before moving on to vCenter v4.1).

    My client needs deploy the model so that it can create a new server next week...

    I looked to the top of the Knowledge Base and found the following information.

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

    Knockout No. 1036224
    VMware KB after upgrading to vCenter Server 4_0 to 4_1, deployment of a model with a comments customization fails

    http://KB.VMware.com/selfservice/microsites/search.do?cmd=displayKC & docType = kc & externalId = 1036224 & sliceId = 1 & docTypeID = DT_KB_1_1 & dialogID = 321118019 & StateID = 1 0 321114529

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

    If there is anyone who has solved this problem by following the procedures written in this KB, could you tell me at what level you updated VMware tools for?
    In addition, was the update of the virtual hardware to solve this problem?
    (I hope that the material of the VM is v7, which is the last for ESXv.4.0, update the virtual hardware is not required in my environment :)

    Thanks for you information in advance!


    < environment >
    Before the upgrade: vCenter Server * v4.0*, ESX v4.0.0, v7 (latest) of Virtual Machine hardware,.
    After upgrade: vCenter Server * v4.1*, ESX v4.0.0, v7 (latest) of Virtual Machine hardware
    (I've specifically updated only the vCenter server and ESX and VM(Windows/Linux) are not updated).

    Hello

    Try to convert the template to a virtual machine, then new - VM model.

    Sounds strange, but it works for us
  • Deployment using model.

    Hello

    We have 3 VCenter in different location, we would have all the models that are stored in a data store and make it visible for all esx servers in a different location for the deployment of the VM.

    We have to have a data store and make it visible for all ESX servers in another location and then perform the deployment.

    Kindly let me know if this would be recommended, so kindly suggest me...

    Kind regards

    Arun S

    Post edited by: SamArun

    Deploying the model through WAN may not always a good idea. See your condition I can suggest an alternative.

    Three servers NFS in each installation location and configuration mirrored across these (not sure how effectively and easily, this can be done)

    In each server ESX locations, mount the local sharing NFS n keep models VM. tesmplates must be synchronized/updates mirrored slowly on the other serversdepending on the configuration

  • PowerCLI: Deploying VM problem of model using PowerCLI

    Hi all


    I'm trying to deploy [clone] virtual machines from a template that is located in a NFS using PowerCLI script.

    First the script will add the NFS to the ESX host. Since NFS added, it will save the file .vmtx to the inventory. Then, the model, it will deploy as many virtual machines as specified in the XML file.
    But after adding the NFS, when the script tries to enumerate on the 'data warehouses' available, the added NFS shows for some hosts. So in turn, the le script script fails.

    I am running PoweCLI 5.0 and host is ESXi 5.0

    The script used is

    function Reg_Template
    {
    Param ($hsname, $dsname, $DSPath, $TMPNAME)
    $strMyHostName = $hsname
    $dsBrowser = get-View (Get-View (Get-VMHost-name $hsname) USER.USER). DatastoreBrowser
    $dcname = get-datacenter - VMHost $hsname
    $folder = get-View (Get-data center-name $dcname |) Get - Folder - name "vm") USER.USER
    foreach ($dsImpl to $dsBrowser.Datastore)
    {
    $ds = get-views $dsImpl
    if($DS.) Summary.Name - not $dsname) {continue}
    $strMyTemplateDatastorePath = '[' + $ds. Summary.Name + "]" + "" + $dspath
    # get the View .NET object for the destination folder
    $viewDestinationFolder = get-view ViewType - file-name of the property - filter @{'Name' = $folder.name}
    (# save the model third param $true means to register as a model)
    $taskMoRef = $viewDestinationFolder.RegisterVM_Task ($strMyTemplateDatastorePath, $tmpname, $true $null,')
    (Get-view ViewType-HostSystem property name - filter @{"Name" = $strMyHostName}). MoRef)
    $task = get-views $taskMoRef
    While ($task.info.state - eq "running" - or $task.info.state - eq "on hold")
    {
    $task. UpdateViewData ("Info.State")
    }
    If ($task.Info.State - eq "success") {break}
    on the other
    {
    Write-Host $task.Info.State
    recorder $fh1, 1, "Failure adding" $tmpname "to" $hsname
    }
    }

    Can someone give cela seconds and check whats up.

    Thanks in advance.

    Can you try to add after you create the data store based NFS?

    Get-VMHostStorage - RescanVmfs

    On all your servers ESX (i)

  • Deploy the VM from a model using personalization and passage of IP information

    Ok

    It is not as it should be so difficult, but I can't make it work.

    Here's the deal, I have several different models that we deploy since.  I also have a different customization for each of these models.

    In the customization, the only information that must be provided at deployment time is intellectual property information.

    For example, if I want to deploy a VM of Windows 2003, I would use my 2003 Windows and customization model.  In this file, all information Windows are specified and the only items that I need to specify is what will be IP from Nic 1 and what will be the nic 2 IP.  Does anyone know how to pass these variables in order to deploy the machine?

    This command also works a long time that I do not specify the intellectual property information.

    New-VM - VMhost ESX1 - VM1 - Windows_2003_Template model name - data store Datastore01 - OSCustomizationSpec

    I have 2 cards I need to configure under construction.  In the customization file, I said to prompt the user for the IP address, but the gateways, dns servers, wins servers, are already configured.  The only variable, what will be the real IP.  How to get those 2 IP addresses in the customization of the OS cmd.

    New-VM - VMhost ESX1 - VM1 name - model Windows_2003_Template - data store Datastore01 - OSCustomizationSpec-ipaddressnic1 10.10.10.15?

    New-VM - VMhost ESX1 - VM1 name - model Windows_2003_Template - data store Datastore01 - OSCustomizationSpec (what happens here)

    I saw several post, but have been unable to get a response.  I use the latest version of powershell. (4.1)

    LucD,

    Thank you! that little powercli was almost exactly what I was looking for.

    Greg.

  • PowerCLI script to deploy virtual machines from a template

    Hey all,.

    I have this part done script. My questions are:

    1. I want to know the nubmber of "Windows XP - X" are currently deployed, so I want to add. I don't want to use a CSV format or any other to inmport of. Yes, I am that lazy. For some reason I can't understand it!

    2. on the line I would askes 'what esx host you want to use' just hit '1' for esx1 vs type the name of the host.

    The questions above can be made? If so HELP! I worked on it for days. Thank you!

    1. Yes I have a Connect-VIServer-Server blah blah blah... Just removed.

    {

    {

    $freespaceCalc = @{name = "FreespaceGB"; Expression = { : tour ($_.)} (FreeSpaceMB * 1 MB/1 GB)}}

    $capacityCalc = @{name = "CapacityGB"; Expression = { : tour ($_.)} (CapacityMB * 1 MB/1 GB)}}

    1. User agents how manny are required

    $agentTotal = Read-Host "Enter the number of Agents WinXp you need."

    $agnetTotal = $agentTotal

    Get-Datastore. Select Name, $freespaceCalc, $capacityCalc | Sort-Object Name. FT - force - AutoSize. Out-Default

    $datastore = Read-Host "what data store you want to use?

    Get-VMHost | Select-Object Name. Sort name | FT - force - AutoSize. Out-Default

    $esxHost = Read-Host "what Esx host you want to use?

    $XP is get - VM - name WinXP-*.

    $totalXPCount = @($XP). Length

    $totalXP = (1 + $totalXPCount)

    for ($adt = ($totalXP + $agentTotal); $totalXP - $adt lt; $totalXP ++) {}

    If ($totalXPCount - eq $adt)

    {

    breaking

    }

    $machineName = "WinXP-$totalXPCount.

    $template = "Template XP-32.

    $osspec = get-OSCustomizationSpec XP

    foreach ($vm to $machineName)

    {$vm = New - VM - name $vm - model $template - host $esxHost - store of data $datastore - OSCustomizationSpec $osspec | start-vm}

    }

    The $hostIndex variable contains the index in the table $hostList of the selected host.

    This is the script has been fixed.

    Note that the SW forum has problems with hooks for you better use the attached file.

    # Current "** Create Win XP **";
    $freespaceCalc = @{ Name = "FreespaceGB"; Expression = { [Math]::Round($_.FreeSpaceMB * 1MB / 1GB ) } }
    $capacityCalc = @{ Name = "CapacityGB"; Expression = { [Math]::Round($_.CapacityMB * 1MB / 1GB) } }
    
    # User enters how manny agents are requred
    $agentTotal = [int](Read-Host "Enter how many WinXp Agents you need.")
    
    $totalXPCount = (Get-VM -Name WinXP-* | Measure-Object).Count
    if($totalXPCount -lt $agentTotal){
         for($adt = $totalXPCount + 1; $adt -le $agentTotal; $adt++){
    
              Get-Datastore | Select Name, $freespaceCalc, $capacityCalc |Sort-Object Name | ft -Force -AutoSize| Out-Default
              $datastore = Read-Host "What DataStore do you want to use?"
    
              $hostList = Get-VmHost | select Name | Sort-Object
              $i = 1
              $hostList | % {Write-Host $i ":" $_.Name; $i++}
              $hostIndex = Read-Host "Enter a number (1 -" $hostList.Count ")"
              Write-Host "You selected host" $hostIndex "with hostname" $hostList[$hostIndex - 1].Name
    
              $machineName = "WinXP-$adt"
              $template = "XP-32 Template"
              $osspec = Get-OSCustomizationSpec XP
    
              foreach ($vm in $machineName){
                   $vm = New-VM -Name $machineName -Template $template -Host $hostList[$hostIndex - 1].Name -Datastore $datastore -OSCustomizationSpec $osspec |start-vm }
         }
    }
    
  • Deploy several VM in CSV file

    Hi all

    I'm new to powercli and powershell so forgive if my terminology is not correct.  At this point, I can really only change scripts to work in my environment and you're looking for here.

    I'm trying to deploy a number of virtual machines with all the information required of VM in a CSV file.

    The script is attached below.

    This is the error I get.

    Get-VMHost: Impossible to validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

    I think that am not pass the variable correctly here, it's in the script

    $VMHost = get-VMHost $vm.host

    But when I read in the CSV data using the Import-CSV cmdlet that I get

    Import-CSV Y:\file.csv

    VMname: CEIVIRPAS0158

    $vmhost: ceiatlpvs0004.mgmt.int

    data store: CEIVSC0002_EATL0NET03_LUN3

    model: W2008R2_SP1_EE_TEMPLATE

    customization: CIS 2008

    IP address: 10.211.80.142

    subnet mask: 255.255.255.0

    defaultgw: 10.211.80.1

    DNS1: 10.211.68.50

    DNS2: 10.211.68.49

    DiskType: dish

    storageformat: Thin2GB

    capacityKB: 20971520

    Description: RTIP Administration Server Web 9 of 10

    any ideas would be very help, thanks!

    Make sure you use the right names in the header of the CSV file?  The error message seems to indicate that $vm.host is a $null value.

    Your import seems to indicate that values should be $vm. VMhost.  Unless I'm reading something wrong.  It is the same for the $VMName variable.  You have defined on $vm.name, but the importation was listed as $vm. VMname.

    --j

  • PowerCli deployment script for Dev of VSphere 4.0 environment

    HI, I'm new to PowerCli scritping and need a deployment script simple that I can use to deploy VMS 5-10 at a time. This is a Dev Environment and the servers will be removed and redeployed each month after coding.

    I have a model that has the configured network and wonder how to automate the deployment instead of right-clicking on it since my console VSphere. What I want the model pre-configured with details of networking or a script that put in? one is fine. I want to run the deployment script to a virtual machine or from the server that is installed on VSphere?

    As I mentioned, I am very new to this, so if you can dummy it upwards as far as possible that would be great!

    Thank you

    BG

    You can use the FULL domain name or meta characters, something like this

    Get-VMHost esx04 *.

    No idea what's wrong with your window PowerCLI.

    There is no message of welcome or guest?

  • Several Variables import from CSV file

    Hello PowerCLI Masters!

    I've been dabbling in PowerCLI now for about 6 months, especially for larger deployments VM.  I've been tweaking my scripts to automate more over time.  I started with setting all the variables manually and just import the virtual machine to a txt file names, then created several loops in a single script that would incorporate different text files, depending on model, data store, disc sizes VLAN, etc..

    I think that the next step here is to import variables by vm (essentially, a line of a CSV file).  We receive our demands for construction as a spreadsheet, so it would be relatively easy to fill in the correct fields in a spreadsheet and run a script that will import values.  I can't seem to put on the right track with the simple search, so I thought I'd post it here and see if:

    1. someone already did and can provide guidance

    2. can someone put me on the right track to how I would go all this

    3. someone tell me that it is not possible (in the hope that it does not go down like that, but it is certainly possible)

    This IS JUST a SAMPLE of the SCRIPTS - may or may not have a syntax perfect at this stage...

    # SET VARIABLES #.

    $vmname = get-content C:\PowerShell\serverlist_1.txt
    $vmname | {foreach-object
    $vmname = $_

    $templatename = "TMPLT-GSI.
    $folder = "GSI".
    $date = get-Date - uformat "%Y %m %d '.
    $expdate = "20110930".
    $reqno = "00034.
    $sysowner = "GSI".

    $esxhost = "esxhost1.test.com".
    $datastore = "DATASTORE_1".

    $cpu = 1
    $mem = 4096
    $datadrive1 = 26214400

    $datadrive2 = 52428800
    $pgname = "ECOM_902".

    #

    # BUILD/CONFIGURE VM #.

    #

    New-VM - vmhost $esxhost - name $vmname - model $templatename - Datastore $datastore - thick DiskStorageFormat - location $folder

    New-disk-hard - vm $vmname - CapacityKB $datadrive1
    New-disk-hard - vm $vmname - CapacityKB $datadrive2
    Get-VM-name $vmname | $mem set-VM - MemoryMB - NumCPU $cpu - confirm: $false
    Get-networkadapter $vmname | together-networkadapter - networkname $pgname - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name "creation Date" - value $date - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name 'expiry Date' - value $expdate - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name "Application number" - value $reqno - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name "Proprietary system" - value $sysowner - confirm: $false

    }

    So, rather than setting these values in the script, I want to shoot them from a spreadsheet that looks like this (a partial list at condition of course):

    $vmname$templatename$cpu$mem$pgname$datadrive1$datadrive2
    Testdeploy001TMPLT RHEL614'ECOM_902 '.2621440052428800
    Testdeploy002TMPLT-2008_ENT_6428'ECOM_902 '.26214400104857600
    Testdeploy003TMPLT-2008_ENT_6428'ECOM_906 '.26214400104857600


    Thanks in advance for any help provided!

    -Brent

    vmname TemplateName central processing unit MEM pgname datadrive1 datadrive2 folder
    Testdeploy001 TMPLT RHEL6 1 4 'ECOM_902 '. 26214400 52428800 GSI
    Testdeploy002 TMPLT-2008_ENT_64 2 8 'ECOM_902 '. 26214400 104857600 GSI
    Testdeploy003 TMPLT-2008_ENT_64 2 8 'ECOM_906 '. 26214400 104857600 GSI

    I would do something like this:

    $date= Get-Date -uformat "%Y%m%d"
    $expdate="20110930"
    $reqno="00034"
    $sysowner="GSI"
    $esxhost="esxhost1.test.com"
    $datastore="DATASTORE_1"
    
    Import-CSV C:\PowerShell\serverlist.csv | Foreach {
     New-VM -vmhost $esxhost -Name $_.vmname -Template $_.templatename -Datastore $datastore -DiskStorageFormat thick -Location $_folder
     New-Harddisk -vm $_.vmname -CapacityKB $_.datadrive1
     New-Harddisk -vm $_.vmname -CapacityKB $_.datadrive2
     Set-VM -VM $_.vmname -MemoryMB $_.mem -NumCPU $_.cpu -Confirm:$false
     get-networkadapter $_.vmname | set-networkadapter -networkname $_.pgname -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "Creation Date" -Value $date -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "Expiration Date" -Value $expdate -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "Request Number" -Value $reqno -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "System Owner" -Value $sysowner -Confirm:$false
    }
    
  • Model road CSV file deletes '0' field numbers called prefix Party

    I want to download more than 350 models of road using bat tool in CUCM 9.1. All models must have their field called prefix part numbers (outgoing calls) containing 10 numbers with "0" at the beginning. The problem is that the CSV file removes the dominant form of '0' figures. I tried to make the type cell in Excel as 'Text' and it worked and the '0' is held normally, but when I save and close the file and then open it again, the cell is set by default to the type "Général" and "0" is gone again! Change the format of CSV file to any other and download to CUCM system generates an error indicating that the file format is not supported.

    A sample entry in the CSV file is attached. I want to preserve the whole number '0541234567' in the field 'PREFIX_DIGITS_CALLED_PARTY '.

    Can someone help me how to download this large number of models of road while preserving the number "0" at the beginning?

    Yes, it's how excel works, so open again the file, adjust it, save, and run via BAT. I did deployment with extensions starting with 0 and it works very well as long as you keep it open.

    Chris

  • PowerCLI Move-hard disk in csv file

    Hi all

    Summer banging my head with it's drving me crazy I hope someone can help please. I use LucD excellent orphaned files and folders - spring cleaning - LucD notes script to identify orphaned VMDK files. I ran the script and export the results to a CSV file.

    What I have to do now is to run a script that will move each VMDK in the csv file in another data store. I'm fighting to get the order correct powercli and I hope that someone will be able to help please.

    I tried these:

    Moving - hard drive () Disk hard- Import-Csv C:\csvfilename.csv | %{$_. Nom })


    Cannot bind parameter 'hard drive '. Cannot convert the value of 'filename_0001.vmdk' to type 'System.String' to type 'VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.HardDisk'

    And

    Get - hard drive -Name ()Import-Csv C:\Users\DeanE\Documents\ListofDeletedDC2_A_T1_SRM_PL003VMDKs.csv | %{$_. Nom })

    Get-hard drive please specify at least one of the following: path, Datastore, VirtualMachine, model or snapshot.

    And

    Get - hard drive -Data store DatastoreName -name ()Import-Csv C:\csvfilename.csv | %{$_. Nom }) 

    Parameter set cannot be resolved using the values of named parameters.

    Any help would be greatly appreciated please.

    Thank you very much

    OK, had a different perspective.

    The following seems to work for me, at least for entries that have 'flat' in the VMDK file name

    C:\orphan.csv Import-Csv - UseCulture | %{

    $ds = $_. Extents.Split(']') [0]. Trim('[')

    $dsPath = $_. Extents.Replace('-flat','')

    Get-hard drive - data store $ds - DatastorePath $dsPath

    }

    If you have entered in the CSV file for which it doesn´t work, let me know what is the area of the extensions.

  • Bug? The obligation to deploy ADF Model Runtime on internal WLS

    Hello, I have a strange problem. I have 2 projects in my application: a model project and a Web service generated (from WSDL). In the Web service, I have a manager that newspapers in the database so I have a dependency on the model project in my webservice project.

    My EAR deployment profile contains only the webservice project (as it should because the model is implied through the depenency, right?), but I have to deploy the library "ADF Model runtime" with her because I get an NoClassDefFound exception otherwise. It so strange because it is a runtime library and I have an ADF area in my WLS if the library is already there. I have other Web services deployed on the same server and they do not have this problem. The only difference I can see between those with the error is that the last webservice has been built with a local WSDL and others from a URL. But it would be strange if that was the problem here.

    My guess is that this is a bug in JDeveloper, and I would like to know how to correct it. Somehow my classpath does not seem right, is there an xml file, I could manually change so that I do not have to deploy the jar with my project? It made my huge EAR file and I have to wait 7 minutes before it is deployed. This is unacceptable...

    EDIT:

    I compared the two EAR files, the only difference between them are the jar files. These are the jar files in the big EAR file but not in the (broken) small:

    ADF-controller - security.jar
    adfdt_common.jar
    ADF-dt-to - rt.jar
    adflibrary.jar
    ADFM.jar
    ADF-part - security.jar
    adftransactionsdt.jar
    common - el.jar
    DB - ca.jar
    Groovy-all - 1.6.3.jar
    IdentityStore.jar
    javax.activation_1.1.0.0_1 - 1.jar
    jdev - cm.jar
    JSP - el - api .jar
    ojmisc.jar
    Oracle - el.jar
    xmlparserv2.jar

    During the deployment, JDeveloper complains of not being able to find the oracle.jbo.domain.Number, which is in adfm.jar if I'm not mistaken. Isn't it weird? It should be available on the WLS or not?

    Edit2: I compared my EAR to a webservice to work without libraries deployed with her and the weblogic - application.xml says:

    < library-ref >
    < name of the library - > adf.oracle.domain < / library name >
    < / library-ref >

    I think I want that in my weblogic application. XML as well. How do I do that? It is generated during deployment...

    I solved it. Somehow, I don't have a weblogic - application.xml in my screen of application resources. It is supposed to be where jps.config.xml and cwallet.sso are. I did a manually and added to the library-ref mentioned before him. Then I could deploy without any problem. I still wonder why JDeveloper na not create one for me in the first place, because I don't remember having to do it manually for any other project I've ever done.

    Anyway, problem solved!

  • Error in the new virtual machine through powercli deployment script

    While deploying a vm specification, I get the error. Attached, I have attached the script & error.

    Script:

    SE connect-VIServer 172.16.0.126

    #Get - Content "c:\ipset.csv" | %{

    #Import - Csv "C:\ipset.csv" - UseCulture | %{

    #$custSpec = New-OSCustomizationSpec-name ostest25-Type not persistent - OSType Windows - OrgName 'My organization' - FullName 'MyVM3'-'test1.com' domain - DomainUsername "test1\administrator" - DomainPassword "Ganesh@123".

    $custSpec = New - OSCustomizationSpec - name Spec2 - OSType Windows-Description "this spec '»

    Adds a computer in a domain. "Fixed - FullName OrgName - organisation - NamingScheme administrator-NamingPrefix 'Computer' - LicenseMode Perserver - LicenseMaxConnections 30 - AdminPassword"Ganesh@123"- test1.com - DomainUsername - DomainPassword"Ganesh@123"domain administrator

    Write-output $custSpec

    $os1 = get-OSCustomizationSpec $custSpec

    Write-output $os1

    $os2 = $os1 | Get-OSCustomizationNicMapping

    Write-output "Get-OSCustomizationNicMapping" $os2

    $os3 = $os2 | Game-OSCustomizationNicMapping - IpMode UseStaticIp - IpAddress between "172.16.0.248" - "255.255.0.0" DefaultGateway - 172.16.0.101 - Dns 172.16.0.101 subnet mask

    Write-output 'Set-OSCustomizationNicMapping' $os3

    New-VM - VMhost 172.16.0.240 - name test5675-model win2k3template1 - Datastore 'iScsi Lun2' OSCustomizationSpec - $custSpec

    Error:

    New - VM: 08/08/2010-14:07:49 new-VM Virt entity operation

    ualMachine-vm-248 failed with the following message: "Personalization" has failed.

    C:\serverset.ps1:21 char: 7

    + New-VM < < < <-VMhost 172.16.0.240 - name test5675-model win2k3template1 d

    'iScsi Lun2' atastore OSCustomizationSpec - $custSpec

    + CategoryInfo: NotSpecified: ( , CustomizationFault)

    + FullyQualifiedErrorId: Client20_TaskServiceImpl_CheckServerSideTaskUpda

    tes_OperationFailed, VMware.VimAutomation.ViCore.cmdlets.Commands.NewVM

    What OS do you have installed the vCenter?

    For a W2K8 server, the logs are located in C:\ProgramData\VMware\VMware VirtualCenter\Logs

    For a W2K3 server, the logs are located in C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\Logs

    There must be some vpxd newspapers.

    ____________

    Blog: LucD notes

    Twitter: lucd22

Maybe you are looking for