<p>I am considering buying an Apple MacBook Pro. Are there any pitfalls developing C#/.NET code in a virtual machine running on a Mac?</p>

<p>Also, is it better to run Vista or XP Pro for this purpose?</p>

[{'answer_id': 28270, 'author': 'Kibbee', 'author_id': 1862, 'author_profile': 'https://Stackoverflow.com/users/1862', 'pm_score': 0, 'selected': False, 'text': "<p>Probably better not to run vista in a VM. Especially if you want the Aero UI turned on.  VMs aren't very good with advanced graphics, so you'll probably want to run XP, or Vista in classic mode.</p>\n"}, {'answer_id': 28273, 'author': 'Adam Haile', 'author_id': 194, 'author_profile': 'https://Stackoverflow.com/users/194', 'pm_score': 0, 'selected': False, 'text': "<p>Not really, it should run just fine.  Your dev environment will just be a little bit slower...but in my experience, it's not really all that bad.  I wouldn't want it as my main machine, but it's perfectly usable.</p>\n"}, {'answer_id': 28276, 'author': 'TheSmurf', 'author_id': 1975282, 'author_profile': 'https://Stackoverflow.com/users/1975282', 'pm_score': 1, 'selected': False, 'text': "<p>XP Pro is definitely better, unless you have a really beefy Mac.</p>\n\n<p>Regarding your other question, no there are no pitfalls, other than performance. I prefer to use a real PC to do actual coding, using VMs for testing. Clearly, that's not an option for you within OSX. However, you do have the option of Boot Camp if the VM performance becomes an issue for you. That will also let you run Vista with no performance degradation. </p>\n\n<p>Bear in mind that the two virtual machine solutions for the Mac are fairly immature. I've used both, and while they are perfectly adequate for development, I've found both to be flaky, to varying degrees. Parallels seems mostly stable, but does crash and seems to have memory leaks; VMWare is beefer, and sucks more of the system's performance away by default (also seems to perform somewhat better than Parallels), but can have serious graphical problems depending on your setup, particularly if you try to use Unity mode.</p>\n"}, {'answer_id': 28277, 'author': 'Ryan Farley', 'author_id': 1627, 'author_profile': 'https://Stackoverflow.com/users/1627', 'pm_score': 5, 'selected': True, 'text': '<p>I can\'t tell you any specific experiences since I don\'t have a Mac, but I did want to point out that there was an awesome episode of the DeepFriedBytes podcast that discussed this very topic. It made me want to give it a try. They discuss the pros and cons of going this route - well worth the listen IMO if this is something you\'re considering:  </p>\n\n<p><a href="http://deepfriedbytes.com/podcast/episode-5-developing-net-software-on-mac/" rel="noreferrer">Episode 5: Developing .NET Software on a Mac</a></p>\n'}, {'answer_id': 28279, 'author': 'Tom Lokhorst', 'author_id': 2597, 'author_profile': 'https://Stackoverflow.com/users/2597', 'pm_score': 1, 'selected': False, 'text': "<p>I'm developing .NET apps in a Vista VM under VMWare Fusion.\nObviously you need a lot of memory, but other than not having Aero, I haven't run into any problems yet.</p>\n"}, {'answer_id': 28283, 'author': 'Mo.', 'author_id': 1870, 'author_profile': 'https://Stackoverflow.com/users/1870', 'pm_score': 0, 'selected': False, 'text': "<p>I don't think Kibbee advice is correct. VMware Fusion (for the mac) currently supports up to DirectX9. The Vista integration is very good. If you have any trouble, you can natively boot into your Virtual Machine (If you have set it up as a BootCamp partition on the mac).</p>\n\n<p>I don't see any trouble with this setup, although I would not do it myself.</p>\n\n<p>The only thing, that my be a problem to you, is the keyboard-layout. The mac-keyboard has a different layout to pc-keyboards. (Especially on a german mac running a german windows, some characters might be a bit harder to type). You will have to relearn some parts of the keyboard!</p>\n"}, {'answer_id': 28297, 'author': 'Jason', 'author_id': 1338, 'author_profile': 'https://Stackoverflow.com/users/1338', 'pm_score': 0, 'selected': False, 'text': '<p>I do asp.net development on a MacBook Pro, running VMWare Fusion and Vista x64.  It works great for me.  </p>\n\n<p>As someone else mentioned, the keybindings are a little weird.  I usually use a full size external keyboard, which helps a lot.</p>\n'}, {'answer_id': 28317, 'author': 'AidenMontgomery', 'author_id': 1403, 'author_profile': 'https://Stackoverflow.com/users/1403', 'pm_score': 0, 'selected': False, 'text': '<p>I am developing .net applications using XP Pro in VMWare Fusion and I am not finding any issues. I am not even seeing any performance issues as the hardware in the MacBook Pro is much better than the hardware I had in my previous laptop.</p>\n\n<p>I found that there were a few things that I had to fiddle with to make the experience the same as working on my previous laptop.</p>\n\n<p>I had to install <a href="http://www.randyrants.com/sharpkeys/" rel="nofollow noreferrer">Sharp Keys</a> to be able to access the right-click/context menu key on the keyboard, which I use often when in VS. I also made sure that some of the Mac OS keyboard and mouse shortcuts were not registered in VMWare Fusion, to stop strange things happening.</p>\n\n<p>I just noticed that I am only allowed my VM to use 1GB of memory, maybe I should up this just a little. There are posts out there that warn about assigning too much memory to a VM.</p>\n\n<p>One thing that is suggested for improving performance is to run the VM on another spindle. I haven\'t found a suitably priced 7200rpm portable drive yet, so I can\'t comment on this.</p>\n\n<p>[Edit] I knew I had seen this somewhere, <a href="http://keithelder.net/blog/archive/2008/06/30/Setting-Up-Windows-Server-2008-VMWare-Virtual-Machines-For-.Net.aspx" rel="nofollow noreferrer">Setting Up Windows Server 2008 VMWare Virtual Machines For .Net</a> - This is something that I have been meaning to try out, I just haven\'t got around to it yet. (Too much time spent reading CrackOverflow)</p>\n'}, {'answer_id': 28325, 'author': 'Justin Bennett', 'author_id': 271, 'author_profile': 'https://Stackoverflow.com/users/271', 'pm_score': 0, 'selected': False, 'text': '<p>For virtualization, I\'d try Sun\'s <a href="http://virtualox.org" rel="nofollow noreferrer">Virtual Box</a>.  I use it in Windows XP and Windows Vista and it works great, I expect performance would be similar running on a Mac.</p>\n\n<p>As for which OS to run, I would stick with Windows XP Pro.  You\'ll not need to dedicate as much RAM to the VM as you would if you ran Vista.</p>\n'}, {'answer_id': 28341, 'author': 'samiq', 'author_id': 1549, 'author_profile': 'https://Stackoverflow.com/users/1549', 'pm_score': 0, 'selected': False, 'text': "<p>I've been doing .NET development using Parallels for over a year now, using WinXP Pro and can't complain, it runs fast (just as it would on a regular machine) and I get the best of all worlds --> a tip, use spaces, so have Windows running in one desk and your Mac stuff on the other, and with just a keystroke you move from one side to the other, flawlessly!</p>\n\n<p>On the Bootcamp side, to be honest I tried for a while, but having to reboot to access my apps on Mac became annoying after some time. Just a word of advice: if you go with this option take a look at MacDrive, can't go wrong with it, as you will maintain access to your Mac partitions.</p>\n\n<p>Been there, done that... and I kind of like it ;)... good luck with the transition!</p>\n"}, {'answer_id': 28354, 'author': 'Konrad Rudolph', 'author_id': 1968, 'author_profile': 'https://Stackoverflow.com/users/1968', 'pm_score': 0, 'selected': False, 'text': "<p>Just to mention an alternative to VMWare Fusion, I'm using Parallels als a VM. Performance has not been an issue so far when I've given the VM 1 GiB of main memory. Before deciding on one VM, I'd suggest testing them all extensively. I am quite happy with Parallels but I'm not sure I wouldn't use VMWare Fusion the next time.</p>\n\n<p>Contrarily to what Mo said, I actually find the Mac keyboard layout much better than the Windows layout, using a Germany key binding.</p>\n"}, {'answer_id': 28378, 'author': 'Jeffrey Meyer', 'author_id': 2323, 'author_profile': 'https://Stackoverflow.com/users/2323', 'pm_score': 2, 'selected': False, 'text': "<p>I'm developing in a Parallels VM running Windows Server 2008, and overall it is terrific. I'd highly recommend the server OS over Vista or XP if you are doing web development.</p>\n\n<p>Other than the keyboard issue, the one pitfall with the MacBook Pro is that the fan is extremely loud and annoying, and running a VM has in my experience tended to heat up the laptop enough to kick it on relatively frequently. However, there are utilities out there such as Coolbook to keep it from kicking on.</p>\n"}, {'answer_id': 28465, 'author': 'Stephen Tolton', 'author_id': 2834, 'author_profile': 'https://Stackoverflow.com/users/2834', 'pm_score': 1, 'selected': False, 'text': "<p>I develop on my Macbook (not pro) using VMWare Fusion and WinXP.  For the most part, it is a very good experience.  I assign 1GB of memory, out of my 4GB, to the VM and its pretty speedy.</p>\n\n<p>The one major pitfall I've encountered is disk space.  If you install a full VS2008 install and other tools, you can quickly eat up 30-40GB of disk.  If you start using the snapshot feature or running multiple VMs, you'll eat up even more.  Since I use my laptop as a primary machine and have lots of data and applications on the OSX side, I have run low on disk space with the standard 120GB drive.</p>\n\n<p>So, if you keep in mind the disk space issue, I think you'll find the experience quite satisfactory.</p>\n"}, {'answer_id': 28497, 'author': 'dlamblin', 'author_id': 459, 'author_profile': 'https://Stackoverflow.com/users/459', 'pm_score': 1, 'selected': False, 'text': "<p>You'd have the least problems running windows not in a VM, but for development your experience should be close to perfect with a VM. Both will give you less issues than MonoDevelop presumably, which is an entirely different CLR, compiler and a reimplementation of the framework.</p>\n"}, {'answer_id': 30765, 'author': 'dewde', 'author_id': 2640, 'author_profile': 'https://Stackoverflow.com/users/2640', 'pm_score': 1, 'selected': False, 'text': '<ol>\n<li><p>I use Parallels. I used Vista for 4 months then switched to XP. I prefer XP as it is faster.</p></li>\n<li><p>Key bindings are quirky. Using function keys while debugging in the hosted XP will trigger events in OS X, effectively popping you out.</p></li>\n<li><p>I have 3 "spaces" set up. One for OS X, one for XP VM, and the last for a RDC to my desktop. THIS IS BRILLIANTLY USEFUL. I can\'t live without spaces now. This technique actually killed my desire for a second monitor.</p></li>\n<li><p>Like Jason said, any files stored on the OS X partition will be seen as a network resource to the XP/Vista VM. So trying to run EXEs or storing web roots there cause trust issues. Studio doesn\'t like project web roots to be on network shares.</p></li>\n</ol>\n\n<p>peace|dewde</p>\n\n<p><a href="http://dewde.com" rel="nofollow noreferrer">http://dewde.com</a></p>\n'}, {'answer_id': 33269, 'author': 'Chaz Lever', 'author_id': 2052, 'author_profile': 'https://Stackoverflow.com/users/2052', 'pm_score': 1, 'selected': False, 'text': '<p>I would look into the <a href="http://www.vmware.com/landing_pages/fusion2_beta.html" rel="nofollow noreferrer">VMWare Fusion 2 Beta</a> to get around the quirks with the key bindings experienced by those using Parallels.  Fusion will capture all key events inside the virtual machine unless you hit a special key sequence to escape from the VM.  You will, however, still have to get used to some of the oddities having an Apple based keyboard layout (no backspace, etc.).  Those things aside, it really is quite seamless.</p>\n'}]
['https://Stackoverflow.com/questions/28268', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2858/']