Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esx: Allow to configure static IPs #93

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Conversation

pothos
Copy link
Member

@pothos pothos commented Apr 22, 2020

  • esx: Allow to configure static IPs
    The default ESXi setup does not have a DHCP server but expects
    static IPs to be used (e.g., see https://www.packet.com/resources/guides/esxi/).
    Allocate static IPs for each machine from a number of addresses
    starting with a specific address given inside the subnet (in Packet this
    is the next IP address after the host's IP, see link above).
    A networkd configuration file is used with Ignition but cloud-config writes its
    own networkd configuration file based on the guestinfo.interface* variables.
    The coreos-metadata service uses the COREOS_CUSTOM_* variables that are known
    to the Container Linux Config Transpiler, too, and got some robustness fixes.

How to use

./kola run -d --platform esx --esx-config-file esx.json --esx-ova-path flatcar_production_vmware_ova.ova  --esx-first-static-ip A.B.C.D --esx-first-static-ip-private E.F.G.H --esx-static-ips 4 --esx-gateway I.J.K.L --esx-gateway-private M.N.O.P --esx-subnet-size 29

Because we only have 4 static IPs, do not set --parallel X because kola will wait anyway until a machine terminates again and frees an IP.

Testing done

Use an ESX server on Packet and use the gateways as visible in the network setting of the Packet web UI, and use the next IP after the server IP as available first static IPs (see link above). When the ESX server is provisioned, a /28 subnet can be specified instead of the defautl /29 but I didn' test this.
I fixed most test failures and skipped tests that rely on network connectivity in the initramfs.

@pothos pothos requested a review from a team April 22, 2020 10:50
@pothos pothos changed the title Kai/esx static ips esx: Allow to configure static IPs Apr 22, 2020
@pothos pothos marked this pull request as draft April 22, 2020 12:30
@pothos pothos force-pushed the kai/esx-static-ips branch 8 times, most recently from 5e765fd to 4f2ecc0 Compare April 23, 2020 14:04
@pothos pothos marked this pull request as ready for review April 23, 2020 14:06
@pothos
Copy link
Member Author

pothos commented Apr 23, 2020

This is ready for review now. I'll switch back to ignition.config variables once flatcar/coreos-cloudinit#4 is referenced in coreos-overlay.

The default ESXi setup does not have a DHCP server but expects
static IPs to be used (e.g., see https://www.packet.com/resources/guides/esxi/).
Allocate static IPs for each machine from a number of addresses
starting with a specific address given inside the subnet (in Packet this
is the next IP address after the host's IP, see link above).
A networkd configuration file is used with Ignition but cloud-config writes its
own networkd configuration file based on the guestinfo.interface* variables.
The coreos-metadata service uses the COREOS_CUSTOM_* variables that are known
to the Container Linux Config Transpiler, too, and got some robustness fixes.
@pothos pothos force-pushed the kai/esx-static-ips branch from 4f2ecc0 to 288d740 Compare April 23, 2020 18:15
@pothos pothos merged commit e2e7a32 into flatcar-master Apr 24, 2020
@pothos pothos deleted the kai/esx-static-ips branch April 24, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants