Showing posts with label vmware. Show all posts
Showing posts with label vmware. Show all posts

Thursday, February 28, 2008

The Only Mac in the Office

My boss is a sensible and understanding man, and a week or so back he gave me permission to stop using my company-issue Windows XP laptop, and move all my working activities to my MacBook Pro. I have the only Mac in the office: every other computer runs some sort of Windows. We have Exchange and Sharepoint, and all those other applications that make you wonder why so much "technological progress" produces such a sad result: slow, ugly and inefficient. Of course, I used to work for Sun, where we had much better email systems, so I am biased. However, I see occasional questions in the press questions about whether a Mac can work effectively in an office environment, and I'm here to tell you: it can.

Now the IT department has not gone out of their way to help me (for which I don't blame them: I've done that job, and if you once modify your systems to suit one user, you set a precedent that makes it hard to refuse other changes, and the next thing you know, you have unstable systems and major administration headaches). They haven't blocked my access, and my VMware Fusion virtual Windows XP machine can authenticate to the network, and I can access everything I need, either natively through Mac OS X, or through the Windows VM. My biggest problem is that I have to remember when to hit CTRL-c to copy, and when to hit CMD-c. I have so far resisted the temptation to remap anything, because this really isn't a big issue, and I don't want to program myself, by establishing a habit, in such a way that I have trouble with a normal keyboard layout on either system.

So what does this get me? Well first, I don't have to waste time waiting for the Windows machine to boot and login every morning (we have to lock our machines up at night, for security reasons). Why does Windows take so long to start up? And it's alleged "sleep function" never seems to work properly, so you have to boot up from cold anyway, and even when the thing gets to the login prompt, it'll take a few more minutes to complete login tasks. Every Windows machine I have ever had or used demonstrates this behaviour, regardless of manufacturer, and in most cases the configuration of the machine seems to make little difference. It's not the hardware, it's the operating system: how can anything that slow be considered normal? I can take my Mac out of my bag, and have it running in seconds. I'm guessing that it saves me a good half hour every day, just in time I don't have to spend waiting for Windows to start or stop, run it virus checkers, and do all the other things that it does so slowly. Of course, I should be grateful: it might be Vista. I've seen that, and I'm sorry: life is too short to use bad software.

I also have access to all my favourite tools - EagleFiler, Curio, DevonThink, Omnigraffle. I am happy, and happy people are more productive.

And the really big bonus: I am no longer exposed to Microsoft's well-developed ability to devastate a system with a single poorly tested patch. I've had experiences in the past where I have loaded Microsoft's recommended patches onto a system, and suffered serious problems as a result. And Windows suffers badly from "bit rot": the longer you use it, the worse it performs. Eventually, you have to do a reinstall to clean up the mess. But if you run Windows in a virtual machine, you can avoid all this pain. For example....

This morning, I ran Microsoft Update on the Windows XP. So far, it seems OK. But if it develops a problem, I have a simple and quick way out: Time Machine. My Time Machine backups have a copy of the VM pre-patching. If I need to, I can delete the "live" VM, and pull a known-good, working copy from backup in minutes. No time wasting reinstalls: I can roll back any time I like.

To make this as painless as possible, it is VITAL that you do not store working files (Word documents, spreadsheets, anything) inside the VM. All "data" files should be stored in a shared directory in the Mac's "real" file system: treat it as you would a shared drive on a network. Store nothing on the local machine (in this case, the VM): keep everything in the share. Then if the VM dies, you still have your data.

Wednesday, February 06, 2008

Technology Refresh

Greetings! I blog to you today from my brand new 20" iMac. I've spent the last couple of weekends moving my digital life onto this machine, and having a general tidy up and consolidate. The old Dell, with its plethora of cables, is in a temporary location in the family room: I still need it to read a few old zip drive cartridges, and when I'm sure I've got them all, I can decommission the machine, and send it to charity. I've also installed a 1.5TB Western Digital My Book Pro II, to act as a Time Machine disk for the iMac, and to provide some shared storage. I'm consolidating all my small external hard drives (to my shame, there are 4 of these of differing sizes, and 4 copies of some files), and cleaning up files going back to 1996. My desk is now much less cluttered - that Dell was a messy thing, cables everywhere - and a pleasant sense of order is developing.

One of the things that always worries me about decommissioning a machine is the chance that I will either omit to archive some data, or that I will loose access data because it is in some old or proprietary format. This has happened to me before - I have a CD that contains my old Lotus Notes mail box from a job I had about 12 years ago: I can no longer read that data, because the I no longer own a machine that runs the old Notes client. I junked it a couple of years back, knowing that I was losing access to the data.

But this time, I've used VMware to insure myself against possible problems. I've converted the entire operating system on the old Dell to a virtual machine, and loaded it onto the Mac, where I can used VMware Fusion to access it. I downloaded the VMware Converter (which is free) and installed it on a Windows XP machine, did the P2V, copied the files it created onto the Mac, installed the VMware tools, and it works fine. And Windows 2000 starts a whole lot faster on the Mac than it did on the Dell!

Wednesday, January 23, 2008

It works!

Yesterday I started to uncable my 9900F scanner, with the intention of hauling it upstairs, so I could connect it to the old PC that I keep on the gallery. The scanner sits on top of an Ikea PC desk that has a sort of string bag arrangement at the back, to keep cables tidy. I fished the scanner's power supply out of the bag, and noticed the original USB cable that shipped with the scanner. So I thought, "let's have one last go at getting this thing going under Fusion", extracted the cable, resumed the VM, and plugged in the scanner. Viola! The VM of XP recognized the scanner immediately. I went "What the...?", put a greeting card that was handy on the platen and did a test scan. It worked. I unplugged the USB cable: it is completely unremarkable. I tried one of the USB cables that I was working with over the weekend, and it worked, as well! I do not understand how or why, but the scanner now appears to work perfectly under a VMware Fusion VM of Windows XP on top of Leopard.

I hate transient faults: they were one of the nightmares of my life when I still worked in technical support. If something suddenly starts working, and you don't know why, when it stops working again, you still have no idea how to fix it. I should have my new iMac by the weekend, and I plan to conduct some tests to see if I can reproduce the original fault. However, right now, it works. So I don't have to replace my scanner any time soon - I would like one that works natively under Leopard, but I can now wait until the various manufacturers sort themselves out (which they seem to be very slow to do. It looks as though they all updated their printer drivers for 10.5, and sort of overlooked scanners). I should point out that I require a flat bed scanner: many of the documents that I need to scan are old and fragile, and not suitable for running through a page feed. So until someone brings out a decent, reliable, flat bed scanner that is supported under Leopard, I shall wait. As Robert Heinlein wrote, "Never do today what you can put off till tomorrow if tomorrow might improve the odds".

And if you've got a scanner that won't work under Leopard, a license of Fusion may be a cheap way to keep it going until updated drivers are available.

Sunday, November 11, 2007

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.

Addthis

Bookmark and Share