6

I have a MacBook Pro through my employer, but I prefer to spent most of my day in Linux. Will running Linux in a virtual machine (e.g. VirtualBox) in full-screen mode be enough slower than running it directly on the hardware to make normal workstation tasks (web browsing, writing and running code, etc.) annoying?

I may be able to swap the hard disk for an SSD, if that will help.

(I did look into dual booting Mac OS and Linux, but it seems like it's rather a hassle to get Linux to run on the latest Mac hardware.)

2 Answers 2

8

I have done this. It works. Performance is a little reduced, and there is some quirkiness. Be sure to give the VM enough resources -- mainly RAM. Definitely do NOT give the VM both processor cores! Give it ONE. I've done it on a 4GB macbook, giving the VM 1.5GB and one core, and I was happy with the desktop performance.

That said, "happy" in this context is a bit of an "eye of the beholder" thing. You may or may not be happy, depending on your expectations.

Also, it depends on what you are doing. For me, that was PHP programming, (i.e. lots of Vi), LAMP box sysadmin stuff (i.e. lots of terminal), web browsing stuff.

I must admit that eventually I got frustrated with some of the limitations.

Pros:

  • Get to use Linux on nice laptop hardware
  • Don't have to fiddle with installing Linux on an MBP (Linux on Apple hardware has always been fiddly, IMO. Much better on certain Dells or Thinkpads or other more "generic" laptops)
  • Hardware stuff, such as sleep, VPN, volume controls, whatever, Just Work. (relates back to "fiddly" comment, just prior)
  • Trackpad gets all the Apple driver goodness (related to last two points)

Cons:

  • Performance loss
  • Quirks, such as weird screen refresh issues, Apple keyboard, Apple one-button mouse or trackpad doing weird stuff, Desktop-integration weirdness (sorry I can't think of specifics)

Finally, my frustrations with the quirks, not so much the performance, led me to bite the bullet and use all the Appley goodness straight up. I removed the VM completely. (I still have a server VM, though, for doing server sandboxing). I must say, I am way, way, MUCH happier this way. Mac OS has a ton of things that you can do to make it more friendly to a Linux user. My recommendation is for you to explore those things, instead.

Ideas:

  • Install gvim
  • Try iTerm
  • Check out Macports or Darwin Ports (I don't remember which is better)
  • Learn the Apple keyboard shortcuts (unfortnately, they are almost all different from Linux desktops. However, they are MUCH more internally consistent on Mac OS, as Apple enforces UI consistency quite strictly)
  • Try a better GUI shell than Finder (I actually mostly use CLI because I hate Finder so much)
  • Many, many other things
3
  • Thanks! The only thing holding me back from staying with just Mac (which I've been doing for the past year) is the window management and the One True Menu Bar - I very much prefer focus-follows-mouse with no autoraise and a menu bar per window, neither of which are possible in Mac OS.
    – Reid
    Commented Sep 30, 2011 at 13:32
  • @JDS: why not to give it both cores? Commented Dec 31, 2014 at 7:17
  • because if something happens to make the VM lock up or otherwise hang or misbehave, your whole machine will lock up, and the only solution will be a hard reset of the whole box. whereas if you leave at least one core free (mind you, my original answer was written when dual core was more common -- quad is common these days) then the host can still be responsive enough to let you kill only the VM
    – JDS
    Commented Jan 1, 2015 at 14:29
1

It all depends on the resource allowed to your guest. I can tell you that i run multiple OS's as guests and don't find the experience annoying at all.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .