Digital Ocean provides different rescue modes to fix your droplet (from support site):
Console Access - Your console can be accessed via the control panel by clicking on your droplet, then on Access while your droplet is powered on.
Recovery Kernel - A minimal recovery kernel that can be used to boot your droplet and run filesystem checks can be activated by powering off your droplet and clicking on Settings -> Kernel and then choosing the DO-recovery-static-fsck and then booting your droplet.
Recovery ISO - A recovery ISO that will allow you to mount your filesystem, access your droplet remotely, perform filesystem checks and other tasks is available if necessary. To use this recovery environment you will need to open a ticket with the support team to request that they mount the image and boot your droplet to it. Once you are done with the Recovery ISO just update the support team and they can boot your droplet back to it's disk image.
You should try the first mode. Digital Ocean use static IP's (no DHCP). So you need to put some more information into the /etc/network/interfaces
file.
You need to open the control panel and go to Settings
> Networking
. There you will find Public IPv4 Address
, Public IPv4 Netmask
and Public IPv4 Gateway
. Write them down as we need them later.
Open a console as described in 1. and type (replace <Public IPv4 ...>
with values from above):
echo "auto lo\n" | sudo tee /etc/network/interfaces
echo "iface lo inet loopback" | sudo tee -a /etc/network/interfaces
echo "iface eth0 inet static" | sudo tee -a /etc/network/interfaces
echo " address <Public IPv4 Address>" | sudo tee -a /etc/network/interfaces
echo " netmask <Public IPv4 Netmask>" | sudo tee -a /etc/network/interfaces
echo " gateway <Public IPv4 Gateway>" | sudo tee -a /etc/network/interfaces
echo " dns-nameservers 209.244.0.3" | sudo tee -a /etc/network/interfaces
sudo service network-manager restart
Let me know if the first mode didn't work and I'll provide additional steps you need to do for second or third mode.
ping
that machine? – Germar Nov 18 '15 at 02:44/etc/network/interfaces
file back to default. – Alex Lowe Nov 18 '15 at 02:55/etc/network/interfaces
file? So that we can see where you went wrong. – Alex Lowe Nov 18 '15 at 03:02