Question

How can I get a desktop preinstalled when spinning up a droplet or virtual machine

I hate how whenever I spin up a new droplet, I have to reinstall ubuntu-desktop, which takes about an hour to install. Also, after installing it, I always have connection issues where I cannot get into the vm. Is there a droplet I can select that has a desktop GUI preinstalled so when I spin up that vm, I can just easily install google chrome to surf the web. Thanks!


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Hey there! 👋

One way to do this is by taking a snapshot of a Droplet that already has everything set up the way you like it, including the desktop environment. Then, you can use that snapshot to create new Droplets whenever you need them. This way, you skip the hassle of reinstalling ubuntu-desktop each time.

Here’s how to do it:

  1. Set Up Your Droplet:

    • Start by spinning up a new Droplet.
    • Install ubuntu-desktop or any other software you need, like Google Chrome.
    • Make sure everything is configured just the way you want it.
  2. Take a Snapshot:

    • Once your Droplet is ready, take a snapshot of it. This snapshot will capture the entire state of your Droplet, including the desktop environment.
    • Follow this guide to take a snapshot: How to Snapshot Droplets.
  3. Create New Droplets from the Snapshot:

    • When you need a new Droplet, you can create one from the snapshot you took. This will spin up a new Droplet that’s already preconfigured with the desktop environment, saving you time and avoiding the installation hassle.
    • You can do this directly from the DigitalOcean Control Panel by selecting the snapshot as the base image when creating a new Droplet.

That way there will be no need to reinstall ubuntu-desktop—it’s all ready to go. Also, each new Droplet will be identical, with the same software and configuration and you can quickly spin up new instances with your preferred setup already in place.

Give it a try, and let me know how it goes! If you have any more questions, feel free to ask! 🚀

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more