I have created a custom image - Ubuntu 20.04 LTS on Virtualbox following the Digital Ocean instructions (https://www.digitalocean.com/community/tutorials/how-to-create-a-digitalocean-droplet-from-an-ubuntu-iso-format-image) to configure the cloud-init and datasources and have exported it.
When I import it and create a droplet from it, I cannot SSH into it and when using the console there is no network i.e. cannot ping a web address (Temporary failure in name resolution) or 18.104.22.168 (Network is unreachable).
When I run the commands: sudo ifconfig eth0 22.214.171.124 netmask 255.255.240.0 up
ip route add default via 126.96.36.199
And add 188.8.131.52 into the /etc/resolv.conf file it all works and I can ssh into the server.
Should I have to do all this? What stage have I done something wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!