other:vb:update
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
other:vb:update [2015/05/19 15:52] – Updates of the update... jypeter | other:vb:update [2016/09/19 17:19] (current) – [Updating Linux] Improved... jypeter | ||
---|---|---|---|
Line 2: | Line 2: | ||
<note important> | <note important> | ||
+ | * //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//). |
</ | </ | ||
+ | |||
+ | ===== When should you update the VB? ===== | ||
+ | |||
+ | <note warning> | ||
+ | |||
+ | It is safe to update the Linux running inside VB</ | ||
+ | |||
+ | 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 | + | * Click on the link that VB will display in a pop-up window when there is a new version, or download |
- | * Execute the VirtualBox-NN1234-Win.exe installer | + | * If the host where you are updating VB has no network connection, you probably also want to download the matching //VB Extension Pack// |
- | * Execute | + | * You can also download an updated version of the //User Manual// from the same page |
- | * Do not forget to update the guest additions | + | * 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) | ||
+ | * VB is not running (e.g. you don't have an open //Oracle VM VirtualBox Manager// window) | ||
+ | * Execute the VirtualBox-vvvv-NNNN-Win.exe installer | ||
+ | * Accept all the default settings | ||
+ | * 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, | ||
+ | * Reboot the computer if VB asks for it (otherwise, you may get weird error messages when trying to restart the guest) | ||
+ | * Start the VM, optionally [[# | ||
==== Note about the manual update of the extension pack ==== | ==== Note about the manual update of the extension pack ==== | ||
Line 22: | Line 41: | ||
* or **2)** Go to the directory where the VM is installed (e.g. '' | * or **2)** Go to the directory where the VM is installed (e.g. '' | ||
+ | ==== Cleaning up things ==== | ||
+ | |||
+ | After updating VB, you can remove the downloaded extension packs from '' | ||
===== Updating the Linux guest system ===== | ===== Updating the Linux guest system ===== | ||
Line 31: | Line 53: | ||
* On the LSCE network: **yum update** | * On the LSCE network: **yum update** | ||
* Outside LSCE: **yum %%--%%disablerepo lsce update** | * Outside LSCE: **yum %%--%%disablerepo lsce update** | ||
+ | |||
+ | Note: You will know you have updated the //Linux kernel//, if '' | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
=== Cleaning up things === | === Cleaning up things === | ||
+ | |||
+ | Check the space available on the disks with '' | ||
It may be a good idea to clean the yum cache from time to time | It may be a good idea to clean the yum cache from time to time | ||
- | '' | + | < |
- | yum clean all\\ | + | # Execute the following commands as root |
- | du -sh var/ | + | |
- | yum update\\ | + | |
- | du -sh var/ | + | |
+ | du -sh / | ||
+ | yum clean all | ||
+ | du -sh / | ||
+ | yum update | ||
+ | du -sh / | ||
+ | </ | ||
- | ==== Updating the guest additions ==== | + | Recent machines (Fedora Core 22 and later) may use '' |
+ | * **dnf** (/ | ||
+ | * **PackageKit** (/ | ||
+ | |||
+ | It's also a good thing to clean the //journal// (note: limiting the journal size probably has to be done only once) | ||
+ | |||
+ | < | ||
+ | |||
+ | du -sh / | ||
+ | journalctl --disk-usage | ||
+ | |||
+ | # Edit the / | ||
+ | # SystemMaxUse=50M | ||
+ | # Then use the following command to restart the service and remove old journal entries | ||
+ | |||
+ | systemctl restart systemd-journald.service | ||
+ | </ | ||
+ | |||
+ | Note: **abrt** ([[http:// | ||
+ | |||
+ | ==== Updating the Linux guest additions ==== | ||
The guest additions are extensions of the guest system that will allow a better integration of the guest and the host: | The guest additions are extensions of the guest system that will allow a better integration of the guest and the host: | ||
Line 53: | Line 107: | ||
* //many other subtle things...// | * //many other subtle things...// | ||
- | You have to update the guest additions | + | You should |
+ | * after updating | ||
+ | * after updating the **main VirtualBox | ||
- | | + | Guest additions updating steps: |
+ | * If you have just updated the Linux kernel (when doing a Linux update), make sure you reboot the Linux guest before you reinstall the guest additions, so that the new kernel is running when you install the guest additions! | ||
+ | | ||
* 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: | + | * Become root in a window: |
- | * Check where the CD image has been installed: | + | * Check where the CD image has been installed: |
- | * Go to the additions' | + | |
- | * Run the installation script: | + | * If the CD icon has appeared on the Linux desktop, but you don't see any subdirectory in '' |
- | * Reboot: | + | * Go to the additions' |
- | * Virtually eject the CD image by selecting in the VB window, // | + | * Run the installation script: |
+ | * Reboot: | ||
+ | | ||
+ | * Virtually eject the CD image by selecting in the VB window, // | ||
* Note: click in //Force unmount// in the popup Window, if necessary | * Note: click in //Force unmount// in the popup Window, if necessary | ||
+ | * The //virtual// CD icon should disappear from the desktop of the Linux guest | ||
* **After rebooting**, | * **After rebooting**, | ||
Note: you can check the status or force the re-installation of the guest additions with | Note: you can check the status or force the re-installation of the guest additions with | ||
- | * Status (running or not): **/ | + | * Status (running or not): '' |
- | * Starting manually the //guest additions service//: | + | * Starting manually the //guest additions service//: |
- | * Install: | + | * Install: |
+ | |||
+ | ==== The Linux guest and the host graphics card ==== | ||
- | Note: 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 | + | * '' |
+ | | ||
* 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\\ '' |
- | * You can get some additional information (including the screen resolution) with the // | + | * You can get some additional information (including the screen resolution) with the // |
- | ==== In case of weird graphics problems... | + | === In case of weird graphics problems... === |
There seems to be some problems linked to some combination of: | There seems to be some problems linked to some combination of: |
other/vb/update.1432043571.txt.gz · Last modified: 2015/05/19 15:52 by jypeter