I am sorry to ask a question as naive, but i cannot set a fix IP on my RancherOS instance. It always retrieves an address from the DHCP...
RancherOS v0.8.0-rc2 on a VMware infrastructure. i use Linux VMware Workstation to connect on RancherOS consoles.
my cloud-config.yml file:
- ssh-dss AAAA...Y22zR echiarello@service-info12
as explained in https://docs.rancher.com/os/running-rancheros/server/install-to-disk/ this file is copied/pasted from my Linux workstation in the RancherOS console, with the vi command. (it should be noticed that i would prefer a french keyboard, azerty instead of qwerty...but it is not insurmountable).
after installation (sudo ros install -c cloud-config.yml -d /dev/sda) and reboot, the host has not the IP address I just set : 172.20.74.148. the IP is now 172.20.74.252, retrieved fom DHCP.
it seems to me that the cloud-config.yml file is not used... and i cannot connect to the host to see its logs...
just before installing RancherOS to disk, i tried to change its IP address, manually:
sudo ip addr add 172.20.74.148/24 dev eth0
sudo route add default gw 172.20.74.254
it was ok, but this does not solve the problem... It just means that the IP 172.20.74.148 works.
Any help would be appreciated !
Thanks in advance,