Fix screen resolution for BackTrack VM under VirtualBox

Revisions: 20110521 - Revised to show the fix for BT5

On BT5

The following worked with no fuss:

# Xorg -configure
# cp /root/xorg.conf.new /etc/X11/xorg.conf
# startx

And that’s it!

On BT4

Note to self.  To fix the screen resolution for X on a host running BackTrack on VirtualBox…

Modify the “Screen” section in /etc/X11/xorg.conf to read as follows:

Section "Screen"
Identifier           "Default Screen"
Monitor             "Configured Monitor"
Device               "Configured Video Device"
DefaultDepth     24
SubSection "Display"
Depth    24
Modes   "1024x768" "800x600"
EndSubSection
EndSection

2 Responses to “Fix screen resolution for BackTrack VM under VirtualBox”

  1. mico Says:

    Does not work. The only available resolutions are still 800×600 and 640×480.

  2. jgg Says:

    On OS X Lion (10.7.2) you might need to first run one of the following at an OS X Terminal prompt:

    VboxManage setextradata Backtrack CustomVideoMode1 1100×740x16
    VboxManage setextradata Backtrack CustomVideoMode1 1440×900x16

    Then run either the BT5 or BT4 Terminal commands shown above after logging into BT but before running startx.

    I was able to achieve 1024×768 from X11.

    I’m still working out if I can get to a higher X11 screen size.

Leave a Reply