Servers created from Ubuntu + xfce/vnc snapshots don't seem to connect to internet

Posted April 30, 2019 2.4k views

When creating a snapshot of ubuntu with xfce + tightvncserver installed, the servers created from the snapshot do not ping. I also can’t ssh in or connect to VNC if I add it to startup.

I can however launch the console through the DO control panel, and the graphical ubuntu login screen appears. Is this issue caused by some network manager xfce uses? if so, how can I get it to work when using snapshots?

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.

Submit an Answer
1 answer


Often when installing desktop packages, I’ve seen people unknowingly install network managers that attempt to set up networking with DHCP. It is important that cloud-init remain installed and that it not be overridden by some other network manager.

I’m not sure what may have been installed or uninstalled. If you have a tutorial that you’ve followed to set this up, I may be able to replicate and offer insight (possibly). But hopefully I can at least offer insight into the right direction to look.


  • These are the packages I install:

    apt install xfce4 xfce4-goodies python3-pip firefox tightvncserver 
    vncserver && vncserver -kill :1 && mv ~/.vnc/xstartup ~/.vnc/xstartup.bak && nano ~/.vnc/xstartup && sudo chmod +x ~/.vnc/xstartup && vncserver

    and my xstartup config is

    xrdb $HOME/.Xresources
    startxfce4 &

    I tried removing the network managers that this command installs and ensured that cloud-init is installed. However, the servers made from the new snapshot still didn’t work.

    • Thanks! I’m going to replicate and see if I can figure it out.

    • Tested and could not replicate with Ubuntu 18.04. What version did you use?

      I used your steps and also created a snapshot, then deployed to a new droplet without issue. Here’s the full bash history:

      root@vnctest:~# history
          1  apt update && apt upgrade -y
          2  exit
          3  apt-get install xfce4 xfce4-goodies python3-pip firefox tightvncserver
          4  vncserver && vncserver -kill :1 && mv ~/.vnc/xstartup ~/.vnc/xstartup.bak && nano ~/.vnc/xstartup && sudo chmod +x ~/.vnc/xstartup && vncserver
          5  netstat -tulpn
          6  exit
          7  history
      • apologies, I used 19.04, can you see if you can replicate the snapshot issue with that?

      • I installed this environment in 18.04 and snapshots work fine as well so I guess I’ll use 18.04 for now, but it would be interesting to know why 19.04 does not work