Hyper-V: Continuation of no GUI issue

See: Hyper-V: Autostart Dekstop GUI not working - #4 by rmscode

Fresh start of the DietPi Hyper-V image according to the guide.
Install the Xfce (include X11, audio dependencies automatically)
calling startx generates “Cannot run in framebuffer mode…”

If set for autostart, must use SSH to issue commands.

Off to a poor start testing this option.
Did Ubuntu Server with Xfce on Hyper-V without issue.

Additional: Have attempted through dietpi-software and manual apt commands

Hey there! I’m the OP of the thread you linked to.

I haven’t played with DietPi in Hyper-V since last year, but I checked my notes and documented the following:


(copy/paste)

(EE) Cannot run in framebuffer mode. Please specify busIDs for all frambuffer devices
...
(EE) Failed to load module "fbdev" (module does not exist, 0)

Sometime ago, I tried to get DietPi running in Hyper-V for testing purposes but I couldn’t get the X window system to work. Recently (3/14/24), I tried again and figured it out.

Follow the DietPi’s guidance for initial setup and then mine:

  1. Install missing fbdev driver:
    • sudo apt install xserver-xorg-video-fbdev
  2. After installing X or any application that requires it (ie Chromium), run the following command to generate an initial configuration file:
    • Xorg -configure
  3. Copy the generated file to /etc/X11/xorg.conf:
    • sudo cp /home/dietpi/xorg.conf.new /usr/share/X11/xorg.conf.d/98-custom.conf
  4. Specify the fbdev driver (replace modesetting) under the “Device” section:
    • sudo nano /usr/share/X11/xorg.conf.d/98-custom.conf
  5. Fix permissions:
    • sudo chmod 0666 /dev/fb0
    • sudo chmod 0666 /dev/tty0