0
Launching an AMI (Amazon Machine Image) for a Ubuntu instance with installed GUI does not work. Stop/Start of the same instance works without any problems, but when you create an image of that instance and launch it, Ubuntu is stuck at startup. You cannot access the newly created instance via SSH or RDP.
Steps to reproduce:
- Launch a fresh Ubuntu 18.04 LTS on AWS EC2
- Make updates:
sudo apt-get update & sudo apt-get upgrade
sudo apt install tasksel
sudo tasksel install ubuntu-desktop
/* Optional:
sudo apt install xrdp
sudo adduser username
- Connect via RDP
*/
- Stop instance and create an AMI (Amazon Machine Image)
- List item
Launch new instance based on AMI.
What I tried:
- Switching between
sudo systemctl set-default multi-user.target
<->sudo systemctl set-default graphical.target
/etc/default/grub
->GRUB_CMDLINE_LINUX_DEFAULT="text"
/etc/gdm3/custom.conf
->WaylandEnable=false
& Allow Automatic Login- Using LightDM instead of GDM3
Are there some settings I am missing? Any hints or suggestions I could try?