Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Sourcing in the profile does not solve all the problems. GUI apps, for instance, do not read-in modifcations to PATH from /etc/paths.d/ the way Terminal does. I think there might be some other environment variable issues too, but I haven't been able to nail them down yet. Still, I'll look into iTerm2 and see how much closer that gets me to where I need to be.
A warning for those trying to follow these instructions: You must be running El Capitan (or, presumably, higher once Sierra comes out) in order for them to work. If you're running a Yosemite host (as I am) then these instructions (suitably modified) will work to create a Mavericks or Yosemite boot disk, but you cannot use them to create a working El Capitan boot disk (the VM will hang during the boot process and never get to the installer). Also, the created iso can't be used to upgrade a Yosemite VM (you'll get an error message when you try). For that, you need to use the App Store.