VMware Cloud Community
RobMokkink
Expert
Expert

change all vm's to enhanced vmxnet + ip address

Hi,

I wan't to change the networkcard on all our vm's to enhancedvmxnet, for this i created a script. But one problem resided, and that is configuring the ip adres inside the vm.

Who has got a snippet for that?

Thanks.

Reply
0 Kudos
23 Replies
avlieshout
VMware Employee
VMware Employee

OK, I forgot to mention that.

They were all Windows 2003

Arnim van Lieshout Blogging: http://www.van-lieshout.com Twitter: http://www.twitter.com/avlieshout If you find this information useful, please award points for "correct" or "helpful".
Reply
0 Kudos
A_S
Enthusiast
Enthusiast

I'm also looking for a way of doing this kind of modification after cloning of VMs. Maybe this reply doesn't belong in this thread.

In VMware SRM you have an option of editing only IP address info by utilizing OS customization specification template. The difference with cmdlet set-Vmguestnetworkinterface (or tricks like invoke-script) is that you don't need authentication inside the running OS (in my environment i dont have this kind of access but sometime i need to clone certain VMs that can be used/later configured by OS administrators).

So is there a way of making the script parts (as shown in first reply of this thread, LUCs reply) to work with cloning proces.

I would like to utilize two important parts:

     - make IP address info changes on cloned VMs.

     - if possible execute runonce command

         (the parts being called by runonce command are placed after cloning and before booting cloned VMs by utilizing VMware VDDK).

All this stuff by using 'VMware.Vim.CustomizationSpec etc' and without doing modifications like SID change, computer rename and stuff like that.

My environment:

Environment vCenter 4.1/vSphere 4.1.

Cloned VMs (XP,Vista,Win2003,Win2008)

Any ideas how to achieve this?

Reply
0 Kudos
A_S
Enthusiast
Enthusiast

Well, it seems that it was discussed many times in the past.

I found this sample: http://www.jasemccarty.com/blog/?p=765

i'll give a try

thanks

A.S.

Reply
0 Kudos
potherim
VMware Employee
VMware Employee

That is exactly what I was looking for. I have Windows 2003 64 bit and am planning to go to 4.1 shortly. I shall check out the command lets. Appreciate your response.

Reply
0 Kudos