VirtualBox > 5.0.26 causes data corruption errors in Linux guests
Posted: 28. Oct 2016, 17:40
An increasing number of PHP web developers are using Composer (a PHP dependency manager) and have come to rely on it heavily.
Many of those developers are also using VirtualBox, usually with Ubuntu as the guest OS, and oftentimes with a networked filesystem configuration that mounts a Windows or Mac OS volume to the guest (Ubuntu) filesystem (usually with CIFS or NFS).
In versions of VirtualBox > 5.0.26, some change seems to have been introduced that causes incessant failures with Composer when it attempts to download compressed archives and expand them with PHP's zlib_decode() function.
After much frustration (I upgraded VirtualBox to an affected version a few days ago), I found this thread, in which several people confirm that downgrading VirtualBox to 5.0.26 solves the problem:
https://github.com/composer/composer/issues/5814
I just tried this and can confirm that indeed it solves the problem.
Given that people are experiencing the exact same problem on both Mac OS and Windows hosts, it seems that the problem may be guest-specific (and perhaps even specific to particular OS running on the guest).
Does anyone know what might have changed in these recent version of VirtualBox that could be causing this odd network data corruption?
Guest OS details:
# uname -a
Linux ubuntu-vm.example.com 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Thanks in advance for any tips!
Many of those developers are also using VirtualBox, usually with Ubuntu as the guest OS, and oftentimes with a networked filesystem configuration that mounts a Windows or Mac OS volume to the guest (Ubuntu) filesystem (usually with CIFS or NFS).
In versions of VirtualBox > 5.0.26, some change seems to have been introduced that causes incessant failures with Composer when it attempts to download compressed archives and expand them with PHP's zlib_decode() function.
After much frustration (I upgraded VirtualBox to an affected version a few days ago), I found this thread, in which several people confirm that downgrading VirtualBox to 5.0.26 solves the problem:
https://github.com/composer/composer/issues/5814
I just tried this and can confirm that indeed it solves the problem.
Given that people are experiencing the exact same problem on both Mac OS and Windows hosts, it seems that the problem may be guest-specific (and perhaps even specific to particular OS running on the guest).
Does anyone know what might have changed in these recent version of VirtualBox that could be causing this odd network data corruption?
Guest OS details:
# uname -a
Linux ubuntu-vm.example.com 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Thanks in advance for any tips!