Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 192300

Re: VM Deployment with customization, parallel

$
0
0

I am trying to run this script that Mark Jones wrote/posted on page 2 of this thread (Version 2 with the #convert back to string stuff added in, and it executes flawlessly (no nasty red text in the powercli window, except it WILL not bind to AD.

 

And none of the NICs work in the guest OS, though the IP address and VMNetwork name are set properly.

 

I am using Vsphere 5.1 build 1157734, 32bit version of PowerCli.

 

It looks like the script is trying to bind to AD before setting an IP.

 

Here are the csv columns:

template,datastore,vmhost,custspec,vmname,ipaddress,subnet,gateway,pdns,sdns,vlan,pass,adminpass,username

 

 

There are 4 blocks of output from the customization spec:

 

Name                  : GUESTNAME

Type                  : Persistent

ServerId              : /VIServer=NTLM\useradminuser@virtualcenter.server

                        s:443/

Server                : myvirtualcenter.windows.domain

LastUpdate            : 8/6/2013 12:05:46 PM

DomainAdminUsername   : adminuser@MY.WINDOWS.DOMAIN

DomainUsername        : adminuser@MY.WINDOWS.DOMAIN

Description           : For use with powershell script to auto clone and deploy

                         SQL servers

AutoLogonCount        : 5

ChangeSid             : True

DeleteAccounts        : False

DnsServer             :

DnsSuffix             :

Domain                : MY.WINDOWS.DOMAIN

FullName              : NETWORK SERVICES

GuiRunOnce            : {slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX, slmgr /skms

                        10.0.0.10, slmgr /ato}

NamingPrefix          :

NamingScheme          :

OrgName               : PUBLIC AGENCY NAME

OSType                : Windows

ProductKey            : XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

TimeZone              : Pacific

Workgroup             :

LicenseMode           : PerSeat

LicenseMaxConnections :

EncryptionKey         :

ExtensionData         : VMware.Vim.CustomizationSpecItem

Id                    : GUESTNAME

Uid                   : /VIServer=NTLM\useradminuser@virtualcenter.server

                        s:443/OSCustomizationSpec=GUESTNAME/

 

 

 

 

Name                  : GUESTNAME

Type                  : Persistent

ServerId              : /VIServer=NTLM\useradminuser@virtualcenter.server

                        s:443/

Server                : myvirtualcenter.windows.domain

LastUpdate            : 8/6/2013 12:05:50 PM

DomainAdminUsername   : adminuser@MY.WINDOWS.DOMAIN

DomainUsername        : adminuser@MY.WINDOWS.DOMAIN

Description           : For use with powershell script to auto clone and deploy

                         SQL servers

AutoLogonCount        : 5

ChangeSid             : True

DeleteAccounts        : False

DnsServer             :

DnsSuffix             :

Domain                : MY.WINDOWS.DOMAIN

FullName              : NETWORK SERVICES

GuiRunOnce            : {slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX, slmgr /skms

                        10.0.0.10, slmgr /ato}

NamingPrefix          :

NamingScheme          :

OrgName               : PUBLIC AGENCY NAME

OSType                : Windows

ProductKey            : XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

TimeZone              : Pacific

Workgroup             :

LicenseMode           : PerSeat

LicenseMaxConnections :

EncryptionKey         :

ExtensionData         : VMware.Vim.CustomizationSpecItem

Id                    : GUESTNAME

Uid                   : /VIServer=NTLM\useradminuser@virtualcenter.server

                        s:443/OSCustomizationSpec=GUESTNAME/

 

 

 

 

Dns                   : {10.0.4.138, 10.0.4.139}

Wins                  :

SpecId                : GUESTNAME

Spec                  : GUESTNAME

SpecType              : Persistent

NetworkAdapterMac     :

Position              : 1

IPMode                : UseStaticIP

IPAddress             : 10.0.5.209

SubnetMask            : 255.255.255.0

DefaultGateway        : 10.0.5.1

AlternateGateway      :

VCApplicationArgument :

Id                    : /VIServer=NTLM\useradminuser@virtualcenter.server

                        s:443/OSCustomizationNicMapping=OSCustomizationNicMappi

                        ngImpl-GUESTNAME-Persistent-1/

Uid                   : /VIServer=NTLM\useradminuser@virtualcenter.server

                        s:443/OSCustomizationNicMapping=OSCustomizationNicMappi

                        ngImpl-GUESTNAME-Persistent-1/

ExtensionData         : VMware.Vim.CustomizationAdapterMapping

 

 

 

 

PowerState              : PoweredOn

Version                 : v8

Description             :

Notes                   :

Guest                   : GUESTNAME:

NumCpu                  : 4

MemoryMB                : 8192

MemoryGB                : 8

HardDisks               : {Hard disk 1}

NetworkAdapters         : {Network adapter 1}

UsbDevices              : {}

CDDrives                : {CD/DVD drive 1}

FloppyDrives            : {Floppy drive 1}

Host                    : ESXi5HOST

HostId                  : HostSystem-host-10437

VMHostId                : HostSystem-host-10437

VMHost                  : ESXi5HOST

VApp                    :

FolderId                : Folder-group-v3

Folder                  : vm

ResourcePoolId          : ResourcePool-resgroup-8697

ResourcePool            : Resources

PersistentId            : 500885b9-263a-6b3e-fc25-4b8867afa657

UsedSpaceGB             : 40.00001154839992523193359375

ProvisionedSpaceGB      : 40.00001154839992523193359375

DatastoreIdList         : {Datastore-datastore-417}

HARestartPriority       : ClusterRestartPriority

HAIsolationResponse     : AsSpecifiedByCluster

DrsAutomationLevel      : AsSpecifiedByCluster

VMSwapfilePolicy        : Inherit

VMResourceConfiguration : CpuShares:Normal/4000 MemShares:Normal/81920

Name                    : GUESTNAME

CustomFields            : {[FA.GosAgent, ], [PnC.CustSpec, ], [PnC.Deployed, ],

                           [PnC.GroupID, ]...}

ExtensionData           : VMware.Vim.VirtualMachine

Id                      : VirtualMachine-vm-11351

Uid                     : /VIServer=NTLM\useradminuser@virtualcenter.serveror

                          .us:443/VirtualMachine=VirtualMachine-vm-11351/

 

I am at a loss, why would it attempt to join a domain before networking is setup?


Viewing all articles
Browse latest Browse all 192300

Trending Articles