VirtualBox and Google Compute Engine
Yes, the same approach will work on a GCE VM.
You can also use Vagrant with the Google Compute Engine plugin to automate creation of virtual machines and GCE VMs.
- Create GCE instance
- SSH to that instance
- Download and install Virtualbox (wget DEB + sudo dpkg -i virtualbox-5*.deb)
- Upgrade system, build and install kernel modules
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y linux-headers-$(uname -r)
sudo /etc/init.d/vboxdrv setup
- Profit!
To check if all is good just run VBoxManage --version
. If some other errors are present google and resolve