This gets me tantalizingly close, but not quite. It seems that "bazel build" uses the sandbox only when run as root, but when run as an ordinary user, it can't use the sandbox.
Here are my steps to reproduce:
2) vagrant up
This prints the "WARNING: Sandboxed execution is not supported" message in the Vagrant boot log.
3) vagrant ssh
4) sudo grubby --args="user_namespace.enable=1" --update-kernel=/boot/vmlinuz-3.10.0-327.13.1.el7.x86_64
5) exit
6) vagrant reload
Now, the Vagrant boot log does NOT show the warning.
7) vagrant ssh
8) bazel build //:x