VMware Cloud Community
idvc
Contributor
Contributor

can i change the hostname when spinning a vm from template in vcenter?

can i change the hostname when spinning a vm from template in vcenter?

Reply
0 Kudos
4 Replies
admin
Immortal
Immortal

Yes you can change but to take change in effect you need to restart network service. At this time all network related operation will get impacted.

Thanks,

DJ

Reply
0 Kudos
Sateesh_vCloud

Try Customize wizard to explore more options

pastedImage_0.png

------------------------------------------------------------------------- Follow me @ www.vmwareguruz.com Please consider marking this answer "correct" or "helpful" if you found it useful T. Sateesh VCIX-NV, VCAP 5-DCA/DCD,VCP 6-NV,VCP 5 DCV/Cloud/DT, ZCP IBM India Pvt. Ltd
Reply
0 Kudos
idvc
Contributor
Contributor

Thanks. What I'm looking for is doing that in cmd line, using the vmware command tools.

Reply
0 Kudos
ExpletiveDelete
Enthusiast
Enthusiast

Mike Laverick posted this some time ago for use in PowerCLI:

New-VM -Name NEW_VM_HOSTNAME -Template win2012-R2 -Datastore platinum -ResourcePool GoldCluster01 -Location CorpHQ -OSCustomizationSpec “Windows 2012 R2 – CorpHQ” Start-VM NEW_VM_HOSTNAME

http://www.mikelaverick.com/2014/06/back-to-basics-creating-and-deploying-templates-with-powercli-pa...

Reply
0 Kudos