VMware Cloud Community
amirpc
Contributor
Contributor

Clone VM with Customization IP problem

When cloning a VM on my VI3 Cluster using my sysprep file for customization, even though I have it set up to get a static IP the newly cloned VM always comes up configured to use DHCP. I have tried everything I can think of as far as customizing the sysprep file at clone time, using the wizard at clone time, etc...same problem.

Anyone see this before? Here is my sysprep for reference.

;SetupMgrTag

\[Unattended]

OemSkipEula=Yes

TargetPath=\WINDOWS

\[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=20

OemSkipWelcome=1

\[UserData]

ProductID=WOULD-NTYOU-LIKET-OKNOW

FullName="MARKETHH"

OrgName=""

ComputerName=*

\[Display]

BitsPerPel=16

Xresolution=1024

YResolution=768

\[Identification]

JoinWorkgroup=MARKETHH

\[Networking]

InstallDefaultComponents=No

\[Branding]

BrandIEUsingUnattended=Yes

\[Proxy]

Proxy_Enable=0

Use_Same_Proxy=0

\[NetClients]

MS_MSClient=params.MS_MSClient

0 Kudos
5 Replies
TomHowarth
Leadership
Leadership

Add the follwoing to your file

\[NetAdapters]

Adapter1=params.Adapter1

\[params.Adapter1]

INFID=*

\[NetClients]

MS_MSClient=params.MS_MSClient

\[NetServices]

MS_SERVER=params.MS_SERVER

\[NetProtocols]

MS_TCPIP=params.MS_TCPIP

\[params.MS_TCPIP]

DNS=No

UseDomainNameDevolution=No

EnableLMHosts=Yes

AdapterSections=params.MS_TCPIP.Adapter1

\[params.MS_TCPIP.Adapter1]

SpecificTo=Adapter1

DHCP=No

IPAddress=172.24.2.94

SubnetMask=255.255.255.224

DefaultGateway=172.24.2.65

DNSServerSearchOrder=172.24.2.55

WINS=No

NetBIOSOptions=0

If you found this post useful please consider the awarding of points by using the Correct or Helpful Buttons

Regards

Tom

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
amirpc
Contributor
Contributor

tom,

Thanks that has me 99% there but I have just a couple questions:

1) how do I make it so it will ask me each time I clone a VM for its new IP but it'll use the preconfigured gateway,netmask,dns, etc

2) the DNSServerSearchOrder parameter, how do I specify multiple DNS servers?

Thanks, I really appreciate the help!

0 Kudos
amirpc
Contributor
Contributor

FYI - Doing as you asked caused the exact same problem.

The way I'm using that file is by creating a new customization scheme and importing the .inf but it asks me during that process if I'd like to use typical (DHCP) or custom settings. If I use custom, in which case I specify the gateway/netmask/dns and specify that at clone time an IP should be entered - OR if I select Typical, either way I end up with a VM set to do DHCP.

Does this sound like I'm using the inf in the correct manner?

0 Kudos
TomHowarth
Leadership
Leadership

arre you attemting to customise a 64 bit version of windows, if os it will not work as it is not suported, personally I tend to create a Gold master which as been syspreped, with the inf file contained withing the support directory. this will create a exact replica machine (different SID obviously) and then do post creation customisation either by a VBS scipt as a post install task or manually is it is a small site.

I do not use VMware Centers build in customisation method.

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
amirpc
Contributor
Contributor

Well we have quite a large setup (100s of VMs) and doing them by hand would be daunting to say the least. Also we're working on load testing our cluster and we could wipe the whole setup once or twice, which makes it even worse.

We are customizing a 32 bit XP.

0 Kudos