My EC2 instance crashes whenever I try vncserver

0

Hi,

I'm trying to implement a vnc environment on my t2.micro instance. But Whenever I use 'vncserver', the instance seems to freeze and I have to reboot it.

You can refer to the commands I used.

$ dnf update $ dnf groupinstall GNOME $ dnf groupinstall "Server with GUI" $ dnf groupinstall workstaion $ dnf install tigervnc-server $ dnf install tigervnc -y $ vncserver (freezes)

asked 10 months ago171 views
2 Answers
0
Accepted Answer

t2.micro is very small!!!
If you are trying to run a graphical environment, I would suggest bare minimum of 2GB memory (t2.small) and more likely 4GB (t2.medium) for a smooth experience.

Additionally, you can save some cost by using t3a instances over t2. The processors are new and more performant and the cost is less.

Here are the recommended memory requirements for Fedora (you did not specify the OS).
https://docs.fedoraproject.org/en-US/fedora/f39/release-notes/welcome/Hardware_Overview/

Minimum System Configuration

The figures below are a recommended minimum for the default installation. Your requirements may differ, and most applications will benefit from more than the minimum resources.

  • 2GHz dual core processor or faster
  • 2GB System Memory
  • 15GB unallocated drive space

Users of system equipped with the minimum memory of 2GB may want to consider Fedora Spins with less resource intense Desktop Environments

Recommended System Configuration

The figures below are recommended for the default x86_64 Workstation installation featuring the Gnome desktop . Your requirements may differ, depending on Desktop Environment and use case.

  • 2GHz quad core processor
  • 4GB System Memory
  • 20GB unallocated drive space
profile pictureAWS
EXPERT
answered 10 months ago
profile picture
EXPERT
reviewed 10 months ago
0

Hello.

Are there any errors output to the system log, etc.?
Maybe an OOM error has occurred.
If an OOM error occurs, there is insufficient memory, so try creating a swap area or changing the instance size to a larger one.
https://repost.aws/knowledge-center/ec2-memory-swap-file

profile picture
EXPERT
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions