Bildschirmauflösung im VirtualBox-Gast erhöhen, ohne VirtualBox-Gasterweiterungen?

Bildschirmauflösung im VirtualBox-Gast erhöhen, ohne VirtualBox-Gasterweiterungen?

Ohne installierte VirtualBox-Gasterweiterungen beträgt die einzige Bildschirmauflösung 640 x 480:

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 640 x 480, maximum 640 x 480
default connected primary 640x480+0+0 0mm x 0mm
   640x480       73.00* 

Wie kann man die Auflösung z.B. auf 1280x1024 einstellen? Es sollten keine VirtualBox-Gasterweiterungen notwendig sein.

Der Gast ist ein Fedora-System.

Ich habe versucht, eineXorg-Konfigurationsdatei wie in diesem Whonix-Artikel beschrieben, was genau nichts bewirkt hat.

Die Verwendung von cvt zum Abrufen einer neuen Modeline für xrandr scheint auch nicht zu funktionieren:

$ cvt 1280 1024
# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz
Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
$ xrandr --newmode "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
xrandr: Failed to get size of gamma for output default
$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 640 x 480, maximum 640 x 480
default connected primary 640x480+0+0 0mm x 0mm
   640x480       73.00* 
  1280x1024_60.00 (0x1bd) 109.000MHz
        h: width  1280 start 1368 end 1496 total 1712 skew    0 clock  63.67KHz
        v: height 1024 start 1027 end 1034 total 1063           clock  59.89Hz
$ xrandr --addmode default 1280x1024_60.00
xrandr: Failed to get size of gamma for output default
$ xrandr --output default --mode 1280x1024_60.00
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed

Antwort1

1) Stoppen Sie XOrg

 stop REPLACEWITHNAMEOFXORGSERVICE

2) Konsole öffnen

CTRL-ALT-F1

3) Erstellen Sie die Standard-xorg.conf, sie existiert nicht

X -configure

4) Verschieben Sie xorg.conf.new, damit das System die Konfigurationsdatei verwendet

mv xorg.conf.new /etc/X11/xorg.conf

5) Neustart

reboot

6) Ändern Sie xorg.conf, fügen Sie hinzu

Section "Monitor"
...
 HorizSync 1.0 - 1000.0
 VertRefresh 1.0 - 1000.0
 Option "MinClock" "1.0"
 Option "MaxClock" "10000.0"
 Option "Primary" "True"
 Option "PreferredMode" "1920x1080"
...
EndSection

7) Neustart

reboot

8) Systemeinstellungen > Anzeige > „Beliebige -4:3- Auflösung auswählen“

9) Breitbild aktivieren

Host:VBoxManage setextradata "YOURGUEST" "CustomVideoMode1" "1920x1080x32"

verwandte Informationen