If this route is not suitable, you can install Eclipse (a different integrated development environment) with C++ plugin and Xcode (comes on the Mac OS installation CD). This way you can still develop and submit your programs. However, Eclipse differs from MSVS and you won't directly benefit from the MSVS instruction done in class.
If virtual machine installation fails, you can, similar to Mac, install eclipse with C++ plugin and use g++ compiler toolchain that comes installed with most flavors of Linux.