How do you create an OS X ISO if you already have access to an iMac? I am using Ubuntu 14.04, and I want to create a virtual machine running OS X. I have a friend who owns an iMac with OS X Yosemite. Is there any way to create an ISO without downloading an installer? Or is there any way to download a legit ISO from my computer?
The only option you have is to have your friend download the installer and create a ISO image. The other options are p2p.

However, when you click 'I Agree' on the EULA, you are stating that you have a legal license, i.e the VM running OS X is hosted on a Mac.