I suggest you to build the Cross Compile Toolchain by following the steps from Section 7: Quark BSP User Guide
If you want to install the image in VirtualBox, take a look at this link:How can I boot an Edison custom image on VirtualBox? it is for Edison but the idea is similar, you will need to create a qemu target in order to emulate the board.
If you just want to compile code with the same resources the images has, I suggest you to use the Cross Compile Toolchain.
Thanks for the info Charlie.