$ vagrant init jhcook/macos-sierra
$ vagrant up
(I got errors while starting the virtual machine, fixed it opening Virtualbox and editing the generated virtual machine's settings. I disabled nested pagination from the System -> Acceleration menu)
After that the vm booted without problems and I was able to successfully install xcode.