Table of Contents

Updating VirtualBox

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 guest: the operating system running inside VB (aka VM).

When should you update the VB?

If you are not used to installing and debugging VB, you may want to play it safe and not update VB. Many things are fixed in a new version, but things can also break (e.g. network access, graphics, …) and you may have to use the VB forum to get everything working again…

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

Note about the manual update of the extension pack

It is also possible to manually install the updated extension pack, but there is a risk of losing the settings

Cleaning up things

After updating VB, you can remove the downloaded extension packs from C:\Users\your_login\.VirtualBox (i.e. all the Oracle_VM_VirtualBox_Extension_Pack-NNNN.vbox-extpack files)

Updating the Linux guest system

Updating Linux

Note: You will know you have updated the Linux kernel, if yum update displays something like the following:

Installing:
 kernel                             x86_64 3.19.8-100.fc20             updates                 34 M
 kernel-devel                       x86_64 3.19.8-100.fc20             updates                9.3 M
 kernel-modules-extra               x86_64 3.19.8-100.fc20             updates                2.1 M

Cleaning up things

Check the space available on the disks with df -h

It may be a good idea to clean the yum cache from time to time

# Execute the following commands as root

du -sh /var/cache/yum
yum clean all
du -sh /var/cache/yum
yum update
du -sh /var/cache/yum

Recent machines (Fedora Core 22 and later) may use dnf instead of yum, and PackageKit. Use the following commands for cleaning the cache:

It's also a good thing to clean the journal (note: limiting the journal size probably has to be done only once)

# Execute the following commands as root

du -sh /var/log/journal
journalctl --disk-usage

# Edit the /etc/systemd/journald.conf file and add the following option
# SystemMaxUse=50M
# Then use the following command to restart the service and remove old journal entries

systemctl restart systemd-journald.service

Note: abrt (Automated Bug Reporting Tool) may also leave some big directories in several places on the system (/var/cache/abrt, /var/spool/abrt-upload, /var/tmp/abrt, …). The content of /var/tmp/abrt can be cleaned by deleting the reports in gnome-abrt

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:

You should update the guest additions:

Guest additions updating steps:

Note: you can check the status or force the re-installation of the guest additions with

The Linux guest and the host graphics card

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

In case of weird graphics problems...

There seems to be some problems linked to some combination of:

If Cinnamon reports crashes or errors at startup (eg Cinnamon just crashed. You are currently running in Fallback Mode): the errors seem to be related to the graphics acceleration, so try disabling it for the current virtual machine: Settings→Display→Video→(uncheck) Enable 3D Acceleration

https://www.virtualbox.org/ticket/12746#comment:11

https://www.virtualbox.org/ticket/12941

In case of weird complete crashes, also increase the Video Memory: eg use 32 Mb instead of the minimum limit





[ PMIP3 Wiki Home ] - [ Help! ] - [ Wiki syntax ]