Mac OS on a virtual machine in Ubuntu. Is it possible?

My server specs are Intel Xeon E5-2670 v3 CPU and MSI X99S Gaming 9 ACK motherboard with a GTX 1080Ti GPU. I want to try out Xcode and developing for iOS but don't wanna buy a mac machine until I am sure of it. Is it possible to install a MacOS on a virtual machine in Ubuntu? Whats the latest working method?

Has anyone tried loading Xcode and iOS emulator on a VM running mac OS?