This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:vb:update [2015/10/21 09:10] jypeter [Updating the Linux guest additions] |
other:vb:update [2016/09/08 08:33] jypeter Added 'modinfo' |
||
---|---|---|---|
Line 2: | Line 2: | ||
<note important>Important reminder: | <note important>Important reminder: | ||
+ | * //VB// : VirtualBox | ||
+ | * //VM// : a Virtual Machine running inside VB | ||
* VB //host//: the machine and operating system where the VB program is running. | * VB //host//: the machine and operating system where the VB program is running. | ||
- | * VB //guest//: the operating system running **inside** VB. | + | * VB //guest//: the operating system running **inside** VB (aka //VM//). |
</note> | </note> | ||
Line 12: | Line 14: | ||
It is safe to update the Linux running inside VB</note> | It is safe to update the Linux running inside VB</note> | ||
- | VB will periodically check if a new version is available. You can also check that manually by doing: //Help --> Check for updates...// | + | VB will periodically check if a new version is available. You can also check that manually by doing: //File --> Check for updates...// |
===== Updating the VirtualBox program on the host ===== | ===== Updating the VirtualBox program on the host ===== | ||
- | * Download the latest version of VB from the [[https://www.virtualbox.org/|VirtualBox web site]] | + | * Click on the link that VB will display in a pop-up window when there is a new version, or download the latest version of VB from the [[https://www.virtualbox.org/|VirtualBox web site]] |
* If the host where you are updating VB has no network connection, you probably also want to download the matching //VB Extension Pack// | * If the host where you are updating VB has no network connection, you probably also want to download the matching //VB Extension Pack// | ||
* You can also download an updated version of the //User Manual// from the same page | * You can also download an updated version of the //User Manual// from the same page | ||
* Make sure that: | * Make sure that: | ||
* Your VB guest is in the //Powered Off// state (i.e. you have exited the guest with a proper Linux shut down last time you used the guest) | * Your VB guest is in the //Powered Off// state (i.e. you have exited the guest with a proper Linux shut down last time you used the guest) | ||
- | * VB is not running | + | * VB is not running (e.g. you don't have an open //Oracle VM VirtualBox Manager// window) |
- | * Execute the VirtualBox-NN1234-Win.exe installer **as an Administrator** (e.g. right-click on the installer and select //run as Administrator//). | + | * Execute the VirtualBox-vvvv-NNNN-Win.exe installer **as an Administrator** (e.g. right-click on the installer and select //run as Administrator//). |
* Accept all the default settings | * Accept all the default settings | ||
- | * Make sure you don't have another program using the network before the installer warns you about temporary stopping the network | + | * Make sure you don't have another program using the network when the installer warns you about having to temporarily stop the network |
- | * Choose to start VB at the end of the installation, and accept to download and install the updated //Oracle VM VirtualBox Extension Pack// if VB tells you that a new pack is available | + | * Choose to start VB at the end of the installation, and accept to download and install the updated //Oracle VM VirtualBox Extension Pack// when VB tells you that a new pack is available |
* Reboot the computer if VB asks for it (otherwise, you may get weird error messages when trying to restart the guest) | * Reboot the computer if VB asks for it (otherwise, you may get weird error messages when trying to restart the guest) | ||
- | * Do not forget to update the guest additions (see below) | + | * Start the VM, optionally [[#updating_linux|update the linux guest]] and no not forget to [[#updating_the_linux_guest_additions|update the guest additions]] |
==== Note about the manual update of the extension pack ==== | ==== Note about the manual update of the extension pack ==== | ||
Line 101: | Line 103: | ||
You should update the guest additions: | You should update the guest additions: | ||
- | * after updating the **Linux guest kernel** | + | * after updating the **Linux guest kernel** (no need to update the guest additions after non kernel updates) |
* after updating the **main VirtualBox program** running on the host | * after updating the **main VirtualBox program** running on the host | ||
Line 108: | Line 110: | ||
* In the VB window (the one where the guest is running), select //Devices->Insert Guest Additions CD Image...//. A //virtual// CD icon should appear on the desktop of the Linux guest | * In the VB window (the one where the guest is running), select //Devices->Insert Guest Additions CD Image...//. A //virtual// CD icon should appear on the desktop of the Linux guest | ||
* Click on //Force unmount// in the popup Window, if a previous virtual CD is still present | * Click on //Force unmount// in the popup Window, if a previous virtual CD is still present | ||
+ | * Right-click on the CD icon and choose //Mount Volume// | ||
* Click on //Cancel// if you get a popup window displaying //This medium contains software intended to be automatically started. Would you like to run it?// | * Click on //Cancel// if you get a popup window displaying //This medium contains software intended to be automatically started. Would you like to run it?// | ||
* Become root in a window: ''sudo su -'' | * Become root in a window: ''sudo su -'' | ||
* Check where the CD image has been installed: ''df -h'' | * Check where the CD image has been installed: ''df -h'' | ||
- | * The CD should be available in ''/run/media/your_login/VBOXADDITIONS_NNNN'' | + | * The CD should be available in ''/run/media/your_login/VBOXADDITIONS_vvvv_NNNN'' |
* If the CD icon has appeared on the Linux desktop, but you don't see any subdirectory in ''/run/media'', right-click on the CD icon and select //Mount volume// | * If the CD icon has appeared on the Linux desktop, but you don't see any subdirectory in ''/run/media'', right-click on the CD icon and select //Mount volume// | ||
- | * Go to the additions' directory: ''cd /run/media/your_login/VBOXADDITIONS_NNNN'' | + | * Go to the additions' directory: ''cd /run/media/your_login/VBOXADDITIONS_vvvv_NNNN'' |
* Run the installation script: ''./VBoxLinuxAdditions.run'' | * Run the installation script: ''./VBoxLinuxAdditions.run'' | ||
* Reboot: ''shutdown -r now'' | * Reboot: ''shutdown -r now'' | ||
+ | * Log in | ||
* Virtually eject the CD image by selecting in the VB window, //Device->Optical Drives->Remove disk from virtual drive// | * Virtually eject the CD image by selecting in the VB window, //Device->Optical Drives->Remove disk from virtual drive// | ||
* Note: click in //Force unmount// in the popup Window, if necessary | * Note: click in //Force unmount// in the popup Window, if necessary | ||
Line 132: | Line 136: | ||
If you want some details about how the graphics are handled by the current installation of you VB (i.e. **is your VM using the graphics card of the Windows host** or is it running is it use the sloooow software mode?), you can use the following commands | If you want some details about how the graphics are handled by the current installation of you VB (i.e. **is your VM using the graphics card of the Windows host** or is it running is it use the sloooow software mode?), you can use the following commands | ||
- | * **glxgears**: if things work correctly, you will get a window with smoothly rotating gears (you can make the window fullscreen and check that it is still working) and the terminal will display some frames per second statistics | + | * ''modinfo vboxvideo'' will give you some information about the video driver provided by VB. Theoretically, //vboxvideo// should also appear when you type ''lsmod'' |
+ | * ''glxgears'': if things work correctly, you will get a window with smoothly rotating gears (you can make the window fullscreen and check that it is still working) and the terminal will display some frames per second statistics | ||
* You may get some warning and error messages, but you should be good if the gears are rotating smoothly | * You may get some warning and error messages, but you should be good if the gears are rotating smoothly | ||
- | * You can run the //glxinfo// command and you should see a reference to your graphics card if the video is indeed using it\\ **glxinfo | \grep -i opengl**\\ OpenGL vendor string: Humper\\ OpenGL renderer string: Chromium \\ OpenGL version string: 2.1 Chromium 1.9\\ **NVIDIA card =>** OpenGL shading language version string: 4.40 **NVIDIA** via Cg compiler\\ **Intel HD Graphics xxxx card =>** OpenGL shading language version string: 4.00 - **Build 10.18.10.3993**\\ OpenGL extensions: | + | * You can run the //glxinfo// command and you should see a reference to your graphics card if the video is indeed using it\\ ''glxinfo | \grep -i opengl''\\ OpenGL vendor string: Humper\\ OpenGL renderer string: Chromium \\ OpenGL version string: 2.1 Chromium 1.9\\ **NVIDIA card =>** OpenGL shading language version string: 4.40 **NVIDIA** via Cg compiler\\ **Intel HD Graphics xxxx card =>** OpenGL shading language version string: 4.00 - **Build 10.18.10.3993**\\ OpenGL extensions: |
- | * You can get some additional information (including the screen resolution) with the //xdpyinfo//\\ **xdpyinfo | less** | + | * You can get some additional information (including the screen resolution) with the //xdpyinfo//\\ ''xdpyinfo | less'' |