VMware Fusion: OS virtualization for Mac OS X
One of the biggest buzzes in IT at the moment is around virtualization. Server virtualization works like this: most computers in data centers are not really very busy: many of them are actually less than 15% utilized most of the time. There are many reasons for this. In the past, as a company started a new project, it was common to buy a complete set of new equipment for that project: a new web server, new application server, new database server, and in some cases two or more of each for redundancy. Plus firewalls and load balancers and such. I've built lots of these set ups and they are sold like this for three main reasons:
1. because it allows the purchaser to attribute all blame for anything that goes wrong to the vendor who sold "the solution"; this is known as "the one-throat-to-choke principal".
2. because whoever is funding the project wants to "own" the kit, and not share with anyone else; this is common in environments that aren't mature enough to have figured out how to bill for compute time and facilities as a service. We call this phenomenon "server hugging".
3. often no one has a clear idea of how the new environment will perform, what sort of load it will carry, or even if the service it provides will be popular enough to pay for the deployment. There is a desire to protect the known, stable part of the infrastructure from the new project, in case something goes wrong during the course of the build. This is warranted - I recall several new deployments that had unforeseen and regrettable impacts on the existing systems in the data center. If you don't have a good test environment, the only mitigation of this risk is physical separation.
So new systems go into production, and sit there at perhaps 15% utilization, often much less, consuming electricity and generating heat 24 hours a day, 365 days a year. This is a huge waste of money, and environmentally irresponsible. It's been common in the past because in the majority of companies, the IT department does not pay for electricity: power and cooling comes out of another budget, so IT has no incentive to do anything about it. It's not even terribly obvious if your servers are collocated in someone else's data center: there, you are typically charged for rack space, and sometime per CPU, and the data center owners will have factored power and cooling into their charges. But business owners are beginning to be aware of these details, and the accountants are sharpening their knives. If green computing can save money, they are all for it.
So if you take 4 machines that are only 15% utilized, and merge their workloads together onto one machine, that one machine will be a lot busier, but it will occupy less rack space, consume less electricity and produce less heat. When IT vendors wax lyrical about "green computing", this is generally part of what they are talking about.
Of course not all applications are suitable for virtualization: anything with very high I/O requirements should be tested carefully. Some applications just do not play well in a shared environment, and you need to consider what your security policies say about the separation of various services and components before you start consolidating things. Consider also that if you are going to put a lot of eggs into a single basket, it should be a very good quality basket, not some nameless beige box that you got cheap from a friend of a friend. But with sensible planning, testing and resourcing, server virtualization can save a great deal of money.
The leading vendor in this field is VMware, who produce the VMware Server products. There are other players, including Xen, IBM, Red Hat and Sun, but VMware (to the annoyance of their competitors) was first to market with a robust solution, and they have both market and mind share that others only can dream about. Their products are good, their support excellent, and as a vendor they are a joy to deal with. So when I found that their VMware Fusion product, VMware for Mac OS X, was about to be released, I was curious to see what it had to offer. I'd been dimly aware of the beta, but never looked at it, and the final release is an Intel binary, so when my new MacBook arrived in August I downloaded the demo and gave it a whirl.
Now I must confess to having followed standard engineering practice for installing this software
1. Download software
2. Glance at the first page of the vendor's doco, conclude that it looks simple, toss doco aside.
3. Install software by following the prompts and doing what seems obvious.
4. Reach the point where it prompts for a Windows installation CD.
5. Go round to the IT department and borrow media and software keys from those enormous folders of CDs that Microsoft ships people who take its products seriously.
6. Stick Windows XP disk into MacBook's DVD drive while thinking "what am I doing?"
7. Go through the usual messy and disgusting procedure of installing XP, Office, Project and Visio, and applying enough patches to choke a horse. I had to refer to the doco briefly at this point, to work out how to have the Mac send CTRL+ALT+DEL to the Windows virtual machine.
8. Watch XP boot in a window on my Mac desktop and realize with horror that I have loaded a petri dish onto my beautiful Mac.
9. Scrabble hastily for a distro of our preferred anti virus software, and get it going before something bad happens.
10. Tinker for a few minutes, to get the virtual machine to authenticate to Active Directory, and get a print queue and some file shares.
11. Build another virtual machine (VM), this one running Solaris 10 (you'll need the X86 media, not Sparc).
12. Download a pre-built VM of Ubuntu Linux from the VMware appliance site.
13. Start all three VMs simultaneously in different windows.
14. Try to engage the enthusiasm of the person at the next desk in how utterly cool this is.
15. Conclude that I shouldn't have tried step 14 on a business development manager.
Now you may well ask "why would I do this?", or "why not use Parallels or Boot Camp or whatever?" Taking those questions in reverse order:
Boot Camp gives you a dual boot machine: you have to stop one operating system to start the other one. Life is too short.
Parallels only supports 32 bit guest operating systems, it's a notorious resource hog, and I have heard horror stories about its stability, or lack thereof. Fusion is highly configurable, doesn't bog my machine down, and is stable. Also, and Parallels doesn't have very many pre-built virtual appliances available. VMware has hundreds, many of them free, including VMs of all sorts of operating systems and networking kit. This gives me the opportunity to tinker with things that I might otherwise never get to try.
Furthermore, VMware is a large and successful company: they have recently completed their IPO, and are going from strength the strength. The other players in this space have interesting products, but big businesses like to buy software from other big businesses: it gives them a cosy feeling that there will be ongoing support, if they need it. And since I have a lot of customers who use VMware in their production environments, it's handy for me to use some of the software myself: helps me stay current on the products.
For me the ability to run multiple operating systems on the Mac is wonderful. For example, I'm in the throes of updated a training course that I wrote years ago, 'The General Introduction to Unix', which I am generalising (it was originally written for SCO Unix and Solaris in the late 90's) to cover Solaris, Linux and Mac OS X. I need to check every bit of syntax, update screen shots, and in some cases remind myself how things work in different operating systems. Not having to power up the old Ultra 10 in my study to look at Solaris saves time and electricity.
Then there are the cases where you need to run some piece of software that will only run on Windows. To be honest, the only thing I really need on Windows is Visio. Anything else either runs natively on a Mac, or there is a better alternative on a Mac. Visio however I do use, and it is pretty much the standard diagramming package used across the industry - you even see it as a required skill set in job descriptions. I use OmniGraffle on my Mac, but until Omnigraffle can give me a Size and Position dialog like Visio's, I will never be able to get the level of precise control that I need. Also, customers frequently send me Visio diagrams and just assume that everyone can read them, because Visio is "the standard". And it is a good piece of software (I note that Microsoft bought the product, they did not create it).
Furthermore, running Windows in a VM on my Mac allows me to get past a problem that has annoyed me since the day I started this job: the local IT folk refuse to add my Mac to Active Directory, so I have never been able to map a file share or print (and yes, I have tried direct IP printing; we have particularly nasty brand of printers that do not support direct IP printing from Macs; the vendors published "work around" is "do not print from Mac". I kid you not). But as soon as the VM of Windows booted, AD recognized it, and allowed me to map drives and set up a print queue. The VM looks just like a PC to AD, and it treats it as such.
And it just works. A few weeks back, I took my Mac to a training course, and when I got it out, the instructor's face fell. The software we were supposed to be learning had a client interface that ran on Windows, and he didn't think it would work on a Mac. So I started my Windows VM, loaded the client, and it worked perfectly (and the other people on the course were jealous, because they had the usual Windows based laptops: slow, ugly and flaky). I had to allocate a bit more memory to the Windows VM for the duration of the course (the client software was a real hog), but once I had done that, my virtual Windows box could easily keep up with their physical ones.
Fusion allows you to emulate all sorts of things, which is handy if you need to do demonstrations. I recently attended a presales demo by an antivirus vendor. The customer wanted to buy antivirus software for their fleet of Microsoft machines. The antivirus presales guy turned up to the demo with a Mac, started up a hoard of Microsoft VMs, and demonstrated his products using them. It worked brilliantly - he had a demo lab in a box, something that it would have taken days to build physically (and he closed the sale, against stiff competition).
The arrival of Leopard has made using Fusion even easier, because I can park the VMs in a Spaces pane until I need them, and they don't even clutter up my desktop. If you haven't tried Fusion, there is a 30 day evaluation version available from the VMware website: give it a try, I think you'll like it.
Showing posts with label leopard. Show all posts
Showing posts with label leopard. Show all posts
Sunday, November 11, 2007
Tuesday, October 30, 2007
Happy Leoparday
I got my copy of Leopard on Friday, and spent much of the weekend upgrading and testing my old 15" Powerbook and my new 15" MacBook Pro. I started on the Powerbook, because I wanted some confidence that my critical apps would work, and retain their data, before I hosed my MacBook: that's my "production" machine, and if it doesn't work, neither do I.
And I wanted to do a clean install, rather than an upgrade, because I was pretty sure that I had some old and ugly kernel level stuff (from some work I did last year) that had migrated from the Powerbook to the MacBook when I transitioned a few months back. I had some problems with drivers for my Huawei wireless modem, and there were some apps installed via Fink, and a shattered copy of Nmap that never compiled cleanly, and caused the Mac to lock solid. I wanted a fresh start, so I started by doing a full backup of the MacBook to an external drive, and while that was running, I sat down with the Powerbook and made sure that there was nothing on it that I didn't have backed up somewhere. I made notes of some config settings (not enough, as it turned out). Then I put the disk in the drive, and did a fresh install.
Leopard installed without problems. I logged in, resisted the urge to play with it (well, mostly), and started installing test apps. The Powerbook spends most of its life in a drawer - it had zero battery charge when I got it out - and I would only use it now if the MacBook died (perish the thought!) or I had to test something requiring two Macs; I'm afraid I don't even keep the machines in sync. The things I cared most about were DevonThink and EagleFiler: as long as I could install them, and restore their data, I knew I could proceed safely. Neither app had a problem, I restored their data from backups, and everything worked.
I moved on to installing a few other things, Firefox, Thunderbird and so on. Then I loaded iWork'08 and iLife'08 (family pack licenses, I'm legal). Everything worked, except iMovie, which said the Powerbook's processor was too slow, and refused to install.
Once the MacBook had finished backing up, I installed Leopard on it, and started doing a proper restore of everything I use every day, starting with CleanApp: I wanted a good understanding of where every package had put every file on the disk. I loaded DevonThink and EagleFiler, and restored their data. I loaded Microsoft Office, iWork and iLife, and OpenOffice. I loaded Firefox and Thunderbird and Curio. I loaded VMware fusion, and restored my virtual machines (they work fine). I imported my iPhoto library, and a whole bunch of other photos that were lying about the place. I spent a long time waiting for iTunes to grind through all my music. In fact I spent a lot of the weekend waiting for data to move from one disk to another, to import or reindex or whatever. I got quite a bit of house cleaning done while I was waiting.
Things that didn't work: iMovie flatly refused to launch on the MacBook, and I was just sitting there thinking "well that seems a bit sad" when Software Update woke up and offered me a bunch of patches: I loaded them, and they sorted iMovie out. Launch2Net, which is what I use to manage the Huawei modem is not quite ready for Leopard, but the nice people at Nova Media have a beta of their next version available, and it seems pretty stable. This is where I found out that I had forgotten to note down how I had got the modem going in the first place. For reasons that elude me, Optus ship this wireless modem to customers and they only support it under Windows. Vodaphone ship the same unit with Mac support. I work for a subsidiary of Optus (and we use these modems for remote access).It's taken me a while to get it going under Mac OS X, and the final answer was to install it on a Windows machine, look at the configuration it used there, get the name of the Optus APN, and then put that into the Launch2Net config on the Mac. Tiresome, but it works.
It looks like I may have problems with the drivers for my CanoScan 9900F. Canon's Mac support is pathetic. I haven't attempted to install the software, I'm going to wait a few days, and see if anyone else has anything to report. The VueScan folks don't seem to be quite ready, either, but I shall compose myself in patience for now. This scanner, its software and I have never entirely got along, so its days may be numbered.
Adobe have not covered themselves in glory, either. I have a copy of Acrobat 6.0 Standard, which includes both the Mac and Windows versions. Acrobat 8 standard is Windows only, so if I want to upgrade, I have to go to Acrobat 8 Professional. Not happy, and haven't decided what to do yet. Adobe reckons that Photoshop Elements 3.0 isn't supported on Leopard, but it seems to work for me - I only need basic functions most of the time.
I haven't had time to test everything, or even try somethings, yet. However, the machine seems faster, I love the new Spaces feature, Spotlight is much better - boolean searching! - and Cover Flow is great. Time Machine is absolutely awesome. Many people have complained about the new transparent dock. I'm reserving judgement for now. I'm not keen on the transparent menu bar and I absolutely hate, loathe and abominate the semi transparency of right click pop up menus. The person who thought this up should be forced to do Windows installs for a few months, and who ever approved the idea and let it into the final product should be compelled to do level 1 Windows technical support for a couple of years. Semi transparent menus are beyond stupid, they are twee: cute for the sake of cuteness, while meaningfully degrading the user experience. If I open a menu, it's because I want to see what is on it, which I cannot do if the text is tangled up with the image behind it. Wrong, bad, inexcusably stupid: how did this feature survive beta testing? Did you do user acceptance testing, and if so, who wrote the test plan? Were they sober when they did it? If there is a way to disable this ridiculously pretentious bit of business, please tell me. My eyeballs are approaching their half century, and I need nice clear type (and new glasses).
But over all, fantastic. There are so many new things to look at that I hardly know where to start. When I've had a chance to try things out (and I'm on a training course for the next two days), I will try to report in more detail.
Subscribe to:
Posts (Atom)
