Apt-get install tomcat7
To install Apache Tomcat on Debian, follow the instructions provided by Digital Ocean: How To Install and Configure Apache Tomcat on a Debian Server.

The two steps are:

sudo apt-get update
sudo apt-get install tomcat7


Installing Tomcat on your virtual machine does not require Mac OS X specific commands. Your installation is taking place within the virtual machine and all the commands should be Debian specific.