https://rancher.com/ logo
s

steep-furniture-72588

07/23/2022, 10:25 PM
@agreeable-oil-87482 i hope you don't mind me asking but i was watching your video on provisioning rancher on vsphere infrastructure. i am trying to emulate the way you assigned ip addresses with the network protocol profile but i wasn't quite sure if i got it right. i understand how you got the ip address metra data from the vaspp to the vm through cloud init but how does the ip get to the vapp /vm allocation? many thanks for your help
a

agreeable-oil-87482

07/24/2022, 6:49 AM
s

steep-furniture-72588

07/24/2022, 8:24 PM
Thank you @agreeable-oil-87482. is the portgroup needed or can we choose network?
a

agreeable-oil-87482

07/24/2022, 8:53 PM
Not sure I follow. A portgroup is a network
s

steep-furniture-72588

07/25/2022, 12:38 AM
I should say vSwitch or distributed vSwitch.
In your blog post you use a portgroup with a vds. Can we use with a vSwitch?
a

agreeable-oil-87482

07/25/2022, 5:47 PM
I think it's for vds only
s

steep-furniture-72588

07/26/2022, 3:12 AM
@agreeable-oil-87482 thank you very much for your help. I had to reread a few times but I finally got the network address pool going. It works with a normal vswitch. The missing peice is that your information in the rancher vapp is actually what is supplied with the dynamic settings when set in the vapps properties. I have to test out the parsing part and because we use rhel then it is a different ip address setting but that extrapolation of the networking info is very nifty. Thank you very much!
a

agreeable-oil-87482

07/26/2022, 10:28 AM
You're most welcome. Yeah the script that's sent to cloud-init will need a slight tweak depending on the OS/Network manager being used, interface names etc.
4 Views