Replace <Instance_ID>
with the unique ID of your Instance, e.g. 0500ebd2-d70d-49af-a969-3ac09b6f7fff
.
Fix unreachable Ubuntu Noble Instances following a reboot
Reviewed on 11 June 2024 • Published on 11 June 2024
The newest Ubuntu 24.04 Noble Numbat Instances may become unreachable after a reboot. This distribution now uses dhcpcd which may encounter longer delays to reapply its DHCP lease after a reboot.
Instances created after June 11th 2024 will not encounter this problem.
Your Instance has not been rebooted
You can avoid this situation by increasing the dhcpcd timeout in its configuration file:
sed -i 's/timeout 5/timeout 10/' /etc/dhcpcd.conftail /etc/dhcpcd.confoption rapid_commit# A ServerID is required by RFC2131.require dhcp_server_identifier# Generate SLAAC address using the Hardware Address of the interface#slaac hwaddr# OR generate Stable Private IPv6 Addresses based from the DUIDslaac privatetimeout 10
Your Instance has rebooted and is no longer reachable
Rescue mode allows you to boot your Instance into a temporary operating system, running from the Instance’s RAM. Rescue mode is often used to diagnose and resolve issues such as faulty kernel configurations, networking issues, firewall configurations, and more.
- Switch the Instance’s
boot-type
torescue
and reboot your Instance into rescue mode using the CLI:scw instance server stop <Instance_ID>scw instance server update <Instance_ID> boot-type=rescuescw instance server start <Instance_ID>Note - Once the Instance is rebooted, log into your Instance using SSH and set up the environment to be able to chroot into it:
Then mount the partitions:cat /proc/partitionsmajor minor #blocks name8 0 9765625 sda8 1 9634536 sda18 14 3072 sda148 15 126976 sda15mount /dev/sda1 /mnt
- Once mounted, use the
chroot
command to get into your Instance’s root file system. You can then change the timeout value for dhcpcd as shown above:chroot /mntsed -i 's/timeout 5/timeout 10/' /etc/dhcpcd.conftail /etc/dhcpcd.confoption rapid_commit# A ServerID is required by RFC2131.require dhcp_server_identifier# Generate SLAAC address using the Hardware Address of the interface#slaac hwaddr# OR generate Stable Private IPv6 Addresses based from the DUIDslaac privatetimeout 10exitumount /mnt - Switch back the Instance’s
boot_type
tolocal
and reboot the Instance:Once rebooted, your Instance will be reachable again.scw instance server stop <Instance_ID>scw instance server update <Instance_ID> boot-type=localscw instance server start <Instance_ID>
Was this page helpful?