VMware Cloud Community
ethanmao200123
Contributor
Contributor

VRA 8 static IP assignment with CentOS7

There is a problem from my test results about that VRA 8 deployment can't do auto CentOS7 static ip assignment after deployment completed but windows and ubuntu can do. There is a YAML sample as follow. I can see a static ip was assigned to show on the deployment item,but actually CentOS7 didn't have the static ip on network interface. 

networks:
- network: '${resource.Cloud_vSphere_Network_1.id}'
assignment: static

 

Thanks

 

Reply
0 Kudos
5 Replies
jimmyvandermast
Hot Shot
Hot Shot

Assuming that you know how to properly install cloud-init (with the fixes that VMware recommends) since you do have it working with ubuntu, there are some things that you should check.

in cloud.cfg

disable_vmware_customization: true

in your blueprint, under the network, add

config: disabled

assignment: static

Reply
0 Kudos
ethanmao200123
Contributor
Contributor

Thanks but it's not work. I did cloud init on my CentOS7 but didn't do on ubuntu18. As a result of  ubuntu 18 can do auto static ip from scope but CentOS can't. I am continuing trying.

 

 

Reply
0 Kudos
jimmyvandermast
Hot Shot
Hot Shot

Please follow this carefully, based on what you want exactly:

https://kb.vmware.com/s/article/59557

Reply
0 Kudos
bdamian
Expert
Expert

Centos7 and RedHat7 have a problem in vSphere using Open VM Tools and Guest customizations (this is what vRA does).

You can try 2 things:

  1. Install Perl in your Centos7 or RedHat7 template. Open VM Tools has Perl dependencies.
  2. Uninstall Open VM Tools and install VMware Tools.

Then, static IP should work. But, if you want to use static IP and cloud-init, you need to follow the instructions from the VMware KB.

---
Damián Bacalov
vExpert 2017-2023 (7 years)
https://www.linkedin.com/in/damianbacalov/
https://tecnologiaimasd.blogspot.com/
twitter @bdamian
Reply
0 Kudos
ethanmao200123
Contributor
Contributor

Thanks so much

Reply
0 Kudos