Re:  Overcoming VirtualBox&#39;s Miniature Screen Size in PCBSD VM.<br> <br>About ten days ago Ian Robinson asked:<br><span class="il"></span><br>
&gt; Here is a question about <span class="il">VirtualBox</span> and its resolution. Since FreeBSD does &gt;not have a guest additions module, you are limited to using <br>&gt;either a vesa driver or a <span class="il">VirtualBox</span> Graphics Adapter from Innotek &quot;fbdev.&quot;<br>

&gt;<br>
&gt; Generally, the higher the screen resolution, the larger the screen display <br>&gt; (i.e., 1024x768 results in a bigger screen than 800x600).<br>&gt;Both seem to be limited to a max of 1024x768.<br>&gt;However, here is the rub -- Kris&#39; PCBSD video driver routine <br>
&gt;used to configure X during the 1st reboot produces an even larger <span class="il">VirtualBox</span><br>
&gt; Screen than 1024x768.? How does Kris do this? What driver, what settings?<br>
<br>Kris Moore replied.<br><br>
<span class="il">Magic</span>!!<br>
<br>
Actually I&#39;m pretty sure its just the vesa driver, and it sets some monitor values to try and force xorg to run in a higher res. If you play with it, <br>check /etc/X11/xorg.conf afterwards and you can get examples of<br>

what its doing. Or when the XGUI comes up, right click, bring up xterm, <br>and look at the /etc/X11/xorg.conf there to see what its doing as well.<br>
<br>
--<br>
Kris Moore<br>
PC-BSD Software<br><br>===============================================<br>1.  Analysis:  Kris&#39; video configuration routine boots using /root/xorg.conf.new.  The resulting configuration file is stored in /etc/X11/xorg.conf.  The biggest difference between the two is that Kris uses a depth of 16 instead of 24.  Consequently, the &quot;depth&quot; variable plays a critical role in the resulting size of the PCBSD virtual machine.<br>
<br>2.  Thanks to a post found at:<br><br><a href="http://www.h-i-r.net/2009/11/virtualbox-full-screen-resolution-for.html">http://www.h-i-r.net/2009/11/virtualbox-full-screen-resolution-for.html</a><br><br>There, the author discusses his technique for enlarging the VirtualBox window, and I followed most of his advice and most of his settings.  However, <br>

to get my Virtualbox screen to adapt to a new size, I never had to invoke the command line:<br><br>VBoxManage setextradata [VM-name] CustomVideoMode1 [WxHxBPP]<br><br>3.  What I did is combine the PCBSD xorg.conf and the author&#39;s xorg.conf.  For example, one of the obvious differences is that PCBSD keeps its font libraries in a different location than the author&#39;s system.  Here is the complete configuration I ended up with (and which you can copy into a text editor &amp; save as xorg.conf) to get a Virtualbox display covering about 7/8 of my screen:<br>
<br><br># Xorg.conf file generated for PC-BSD<br><br>Section &quot;ServerLayout&quot;<br>    Identifier     &quot;XFree86 Configured&quot;<br>    Screen      0  &quot;Screen0&quot; 0 0<br>    InputDevice    &quot;Mouse0&quot; &quot;CorePointer&quot;<br>
    InputDevice    &quot;Keyboard0&quot; &quot;CoreKeyboard&quot;<br>    Option       &quot;Clone&quot; &quot;off&quot;<br>EndSection<br><br>Section &quot;ServerFlags&quot;<br>        Option &quot;AutoAddDevices&quot; &quot;False&quot;<br>
        Option &quot;AllowEmptyInput&quot; &quot;Off&quot;<br>EndSection<br><br>Section &quot;Files&quot;<br>    ModulePath      &quot;/usr/local/lib/xorg/modules&quot;<br>    FontPath        &quot;/Programs/fonts/&quot;<br>
    FontPath        &quot;/usr/local/lib/X11/fonts/cyrillic/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/TrueType/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/webfonts/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/misc/&quot;<br>
    FontPath        &quot;/usr/local/lib/X11/fonts/TTF/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/Type1/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/CID/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/75dpi/&quot;<br>
    FontPath        &quot;/usr/local/lib/X11/fonts/100dpi/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/dejavu/&quot;<br>    FontPath        &quot;/usr/local/lib/X11/fonts/local/&quot;<br>EndSection<br><br>
Section &quot;Module&quot;<br>    Load           &quot;dbe&quot;<br>    Load           &quot;dri&quot;<br>    Load           &quot;ddc&quot;<br>    Load           &quot;extmod&quot;<br>    Load           &quot;glx&quot;<br>
    Load           &quot;xtrap&quot;<br>    Load           &quot;freetype&quot;<br>EndSection<br><br>Section &quot;InputDevice&quot;<br>    Identifier     &quot;Keyboard0&quot;<br>    Driver         &quot;keyboard&quot;<br>
    Option         &quot;XkbModel&quot; &quot;pc105&quot;<br>    Option         &quot;XkbLayout&quot; &quot;us&quot;<br>    Option         &quot;XkbVariant&quot; &quot;&quot;<br>EndSection<br><br>Section &quot;InputDevice&quot;<br>
    Identifier     &quot;Mouse0&quot;<br>    Driver         &quot;mouse&quot;<br>    Option         &quot;Protocol&quot; &quot;auto&quot;<br>    Option         &quot;Device&quot; &quot;/dev/sysmouse&quot;<br>    Option         &quot;Buttons&quot; &quot;6&quot;<br>
    Option         &quot;ZAxisMapping&quot; &quot;4 5&quot;<br>    Option         &quot;Emulate3Buttons&quot;<br>EndSection<br><br>Section &quot;Monitor&quot;<br>    Identifier     &quot;Monitor0&quot;<br>    HorizSync      31-80<br>
    VertRefresh    30-100<br>    VendorName     &quot;Monitor Vendor&quot;<br>    ModelName      &quot;Monitor Model&quot;<br>EndSection<br><br><br>Section &quot;Device&quot;<br>    Identifier      &quot;Card0&quot;<br>    Screen           0<br>
    Driver         &quot;vesa&quot;<br>    VendorName     &quot;Generic Vesa Driver&quot;<br>    BusID      &quot;PCI:0:2:0&quot;<br>EndSection<br><br><br>Section &quot;Screen&quot;<br>    Identifier     &quot;Screen0&quot;<br>
    Device         &quot;Card0&quot;<br>    Monitor        &quot;Monitor0&quot;<br>    DefaultDepth   16<br>    SubSection     &quot;Display&quot;<br>        Viewport   0 0<br>        Depth      16 <br>        Modes      &quot;1280x800&quot;<br>
    EndSubSection<br>EndSection<br><br><br>REMEMBER -- Back up your virtual machine&#39;s existing xorg.conf.  <br>REMEMBER -- You will have to have root privileges to save this new file in (or in place of)  /etc/X11/xorg.conf<br>
<br><br>Ian Robinson<br>Salem, Ohio<br><br>