Difference between revisions of "VirtualBox notes"

From Noah.org
Jump to navigationJump to search
Line 6: Line 6:
  
 
<pre>
 
<pre>
 +
$ sudo su -
 +
# cd /media/cdrom0
 +
# ./VBoxLinuxAdditions-x86.run
 +
Verifying archive integrity... All good.
 +
Uncompressing VirtualBox 2.0.2 Guest Additions for Linux installation.........................................................................................................................................................................................
 +
VirtualBox 2.0.2 Guest Additions installation
 +
Attempt to remove old DKMS modules...
 +
Done.
 +
Building the VirtualBox Guest Additions kernel module...
 +
Building the shared folder support kernel module...
 +
Installing the VirtualBox Guest Additions...
  
 +
Successfully installed the VirtualBox Guest Additions.
 +
You must restart your guest system in order to complete the installation.
 +
</pre>
  
</pre>
+
Restart the guest.
  
 
== Guest video resolution ==
 
== Guest video resolution ==
Line 28: Line 42:
 
   SubSection "Display"
 
   SubSection "Display"
 
     Depth    24
 
     Depth    24
     Modes      "1024x768"
+
     Modes      "1024x768" "1440x900" "1680x1050"
#    Modes      "1024x768" "1440x900" "1680x1050"
 
 
   EndSubSection
 
   EndSubSection
 
EndSection
 
EndSection

Revision as of 12:54, 21 October 2008


Install Guest Additions

This is the equivalent of VMware or Parallels Tools. Under VirtualBox application menu go to: "Devices | Install Guest Additions...". This will cause a virtual CD-ROM ISO to be mounted on your guest Linux system. From inside the guest you just run a simple installer script:

$ sudo su -
# cd /media/cdrom0
# ./VBoxLinuxAdditions-x86.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 2.0.2 Guest Additions for Linux installation.........................................................................................................................................................................................
VirtualBox 2.0.2 Guest Additions installation
Attempt to remove old DKMS modules...
Done.
Building the VirtualBox Guest Additions kernel module...
Building the shared folder support kernel module...
Installing the VirtualBox Guest Additions...

Successfully installed the VirtualBox Guest Additions.
You must restart your guest system in order to complete the installation.

Restart the guest.

Guest video resolution

Edit /etc/X11/xorg.conf and replace the file with the following. You can try other resolutions besides 1024x768. Mode "1440x900" is for a MacBook Pro and mode "1680x1050" is for a Dell E228WFP display.

Section "Device"
   Identifier   "Configured Video Device"
   Driver    "vboxvideo"
EndSection
Section "Monitor"
	Identifier	"Configured Monitor"
EndSection
Section "Screen"
   Identifier    "Default Screen"
   Device    "VirtualBox graphics card"
   Monitor    "Generic Monitor"
   DefaultDepth    24
   SubSection "Display"
     Depth    24
     Modes      "1024x768" "1440x900" "1680x1050"
   EndSubSection
EndSection

Restart the guest.

For reference, the default xorg.conf file looks like this:

Section "Device"
    Identifier  "Configured Video Device"
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
EndSection