Timi77 / VMware-Linked-Clones

VMware Linked Clones - PowerCLI manage script
4 stars 6 forks source link

Static IP at build #1

Open wjbeckett opened 8 years ago

wjbeckett commented 8 years ago

I'm hoping there'd be a way to build in static IP's into your Linked Clone script. I find this script highly useful however one thing it's missing is setting static IP's.

If there is a way that at the time of the New-VM creation the script can either read a file or increment IP's by 1 with a starting point that's be fantastic.

Timi77 commented 8 years ago

Hi wjbeckett, I'm glad that you find my work useful. But I'm not sure what are you exactly referring to. Do you want to change IP addresses of Guest OS (by OS customization template)? or something else?

wjbeckett commented 8 years ago

Sorry, I didn't explain very well.

I am wanting to set a Static IP to each VM that is created from the script from a pool of IP's. For example, have a starting IP of 192.168.0.100 and increment by 1 for every VM that's created. Rather than rely on DHCP for this that way every time I destroy and re-deploy these VM's the same range of IP's are used.

Timi77 commented 8 years ago

OK, thanks. Now it's clear to me. When I will have time I will definitely check what I can do. So stay tuned :)

wjbeckett commented 8 years ago

Awesome! Thanks mate.

Timi77 commented 8 years ago

Hi there, Good news, I coded something :) Check it and please let me know if it works for you. See readme for details about how to use the feature.

wjbeckett commented 8 years ago

Oh yeah?? I actually put something together too. Haha.

I made it prompt for a starting IP and assign IP's using OsCustomizationSpec.

It's not very graceful though. Haha.

On Fri, 12 Feb 2016, 6:09 PM Tomas Ledecky [Timi] notifications@github.com wrote:

Hi there, Good news, I coded something :)

— Reply to this email directly or view it on GitHub https://github.com/Timi77/VMware-Linked-Clones/issues/1#issuecomment-183223443 .