VMware Cloud Community
awjudge
Hot Shot
Hot Shot

Changing VM Network profile after deployment

Hi all,


I'm working on a Linux Kickstart blueprint, and have a couple of questions.

We only have 1 VLAN in our environment that allows DHCP I'll call it 'Build', this VLAN is mapped to a vSphere dVS port group.

What I need to be able to do is the following:

1. Kickstart the VM from the DHCP 'Build' port group

2. Change port group to the 'production' port group for our environment when the kickstart is completed

3. Set the VMs IP address from the network profile associated with the 'production' port group.

I have found some documentation on using powershell scripts to change the port group after the build, but nothing about getting a static IP from the relevant network pool.

Can anyone suggest a way forward?

0 Kudos
1 Reply
Techstarts
Expert
Expert

Hi,

moving VM from DHCP Build port group can be easily achieved using powershell group.

But to get static IP that too from network profile one needs to understand how network profile really assigns the IP. Even I'm unaware of it.

But why are you using network profile in this case. Instead manage assign IP using script. For windows I would use powershell script.

With Great Regards,
0 Kudos