Recently ran into a situation where I need to install headless TeamViewer on a CentOS 7 server on Linode. This requires /dev/fb0 in order to function.

So far it has not been clear on how to enable the framebuffer (/dev/fb0). What do we need to do to install kernel support for a virtual machine?

2 Answers 2


I know this is old question, but still valid. In order to have /dev/fb0 you need to have the frame-buffer enabled in your kernel.

To check you can grep it from kernel configuration (from currently running grep CONFIG_FB_ /boot/config-3.10.0-693.17.1.el7.x86_64

For virtual environment you probably need VESA enabled so you add grep VESA and you should get the following output:

# CONFIG_FB_UVESA is not set

If you have this configured you will see the device /dev/fb0

  • Thanks, yeah, it was enabled in the kernel. I don't have the details any longer, but thanks for the post. I think the VESA info probably would have helped, but can't be sure now.
    – ylluminate
    Apr 11, 2018 at 22:39
  • @ylluminate ah pitty that you don't have the details now. I hope it will work if anyone needs it.
    – tukan
    Apr 12, 2018 at 7:39

This works for me.

Perform steps as root:

  1. systemctl set-default multi-user.target

  2. append vga=0x317 to GRUB_CMDLINE_LINUX line in /etc/default/grub.conf

  3. grub2-mkconfig -o /boot/grub2/grub.cfg

  4. add the user to the 'video' group in /etc/group

  5. reboot

Perform as user:

  1. id

    uid=1000(mario) gid=1000(mario) groups=1000(mario),39(video)

ensure in video group (if not yet rebooted, log out and back in)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.