Link to home
Start Free TrialLog in
Avatar of Anthony
AnthonyFlag for United States of America

asked on

How to retain fixed IP Address upon VM Recompose?

Morning All,

I was wondering how it's possible to retain the fixed IP Address that I entered in a deployed VM when I would complete a recompose of the VM's in the desktop pool?  

For Example, I assigned, 10.50.110.71 to the VM; however, when I recompose it I get 169.xx.xx.x.  I'm deploying desktops by the linked-clone method.  

Any help on this would be greatly appreciated.

-Anthony
Avatar of Stolsie
Stolsie
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi Anthony6890

I wouldn’t have thought the system would allow you to clone machines with a static IP address, this would cause issues both for the routing and arpa tables.
The 169.254.x.x address means the NIC is connected to a device and is configured to receive and address automatically but isn't so APIPA is doing its bit to work.
What is your reason for cloning a machine with a static IP address (assuming you are rolling out multiples and not just replacing one duff VM)?
If you are looking to replace just one machine cause its duff and this is for a DR project let me know and I’ll run an idea past you.

Regard
Avatar of Anthony

ASKER

Thanks for responding Stolsie.

That's a valid point, about that static IP and cloning the machine; however, the system does allow me to clone a VM with a static IP and deploy VM's from the snapshot that is taken.  

I'm not necessarily cloning the virtual machine, I'm really deploying linked clones from a template within the view admin portal.  

I currently have a Desktop Pool that uses a VM snapshot to deploy x nubmer of desktops.  In testing, I just had it deploy 1 desktop and it then assigned it that 169.254 address.  

The reason for wanting the static IP is based on some firewall rules that my consultants are putting in place.  We've created separated VLAN for different VM pools.  The environment that we are creating will be our new production environment, not our DR site.

-Anthony
ASKER CERTIFIED SOLUTION
Avatar of Stolsie
Stolsie
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Anthony

ASKER

The snapshot was definitley taken before the the static IP was set.  For me to get the VM to join the network, I had to set up the IP Address, subnet, and gateway otherwise it wouldn't connect to the internet or any network drives.  

If I do the suggestion you have, would I have to get another server to handle the DHCP or can this happen right through vCenter itself?
Avatar of Anthony

ASKER

Stolsie,

I figured out how to do it with the DHCP method you mentioned above.  Basically I will filter by MAC address to get an IP address allocated from a specific range, which is great.

Do you happen to know how I can get a mass listing of all the MAC addresses for the VM's I deploy once I've created more link clones within my different Pools?

-Anthony
Hi Anthony

You might need a scripting parson’s head for that as I’m not sure.
As its your device you have full control of what MAC addresses it has you could make life easy but just copy pasting the MACs initial 5 byte's or 40 bites.
"00:0C:29:24:1c:" then start with 00 for the last bites and work your way up (excel will more than likely be able to help).
Our VM brain will be in soon he is also a bit of a power shell wiz I’ll rack his brain if there is a command or script that can be run

regards