Fix unreachable Ubuntu Noble Instances following a reboot
Instances created from a specific Ubuntu 24.04 Noble Numbat image may become unreachable after a reboot. This distribution now uses dhcpcd which may encounter longer delays to reapply its DHCP lease after a reboot.
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.conf
tail /etc/dhcpcd.conf
option 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 DUID
slaac private
timeout 10Your 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-typetorescueand reboot your Instance into rescue mode using the CLI:scw instance server stop <instance_id> scw instance server update <instance_id> boot-type=rescue scw instance server start <instance_id> - 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/partitions major minor #blocks name 8 0 9765625 sda 8 1 9634536 sda1 8 14 3072 sda14 8 15 126976 sda15mount /dev/sda1 /mnt - Once mounted, use the
chrootcommand to get into your Instance's root file system. You can then change the timeout value for dhcpcd as shown above:chroot /mnt sed -i 's/timeout 5/timeout 10/' /etc/dhcpcd.conf tail /etc/dhcpcd.conf option 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 DUID slaac private timeout 10 exit umount /mnt - Switch back the Instance's
boot_typetolocaland 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=local scw instance server start <instance_id>
Still need help?Create a support ticket