VirtualBox and VMware will work.
I don't use neither of them. However in this case virtualization platform type doesn't matter.
What program versions do you normally use to build?
Normally I don't pay too much attention to that.
I've just made a clean QEMU/KVM VM with Ubuntu 18.04 LTS with packages upgraded to actual state. Mibew Messenger were built there without any issues.
$ uname -a
Linux ubuntu 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ node --version
v8.10.0
$ npm --version
3.5.2
$ php --version
PHP 7.3.7-2+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jul 25 2019 11:44:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.7-2+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
$ gulp --version
[19:26:08] CLI version 3.9.1
[19:26:08] Local version 3.9.1
It would be much easier if you provide information about your system, rather than asking about ours.