KIS Systems, Inc - Contract Programming for Unix/Windows/Web in C++/C#/PHP/Qt/.NET and other technologies.

KIS Technoblog

Technical ruminations from our chief codemeister – Rick Berger

Archive for the 'Virtual Machine Software' Category

More VMWare vs. Parallels Investigations

Posted by rickb on 18th February 2008

So, after having a few meltdowns w/ Parallels, I decided to give VMWare Fusion a go.

The Parallels problems seem to have gone away (fingers crossed) with the latest Mac OS X upgrade.

But, I’m still working with VMWare. A couple of pluses:

  • I could be wrong, but qualitatively, I think XP under VMWare is faster. I do a lot of compilations over shared volumes – they seem to go faster under VMWare.
  • The images are smaller w/ VMWare. In the case of my XP VM, it went down from 38gb to 33gb. That’s significant.

On the down side:

  • Trying to get Yahoo Messenger to work in the XP VM was a nightmare – big hangs and I had to power down the system and reboot several times.
  • Bluetooth audio doesn’t appear to be working in VMWare.

Both of those features in the last work quite well in Parallels.

But, the only thing I want this capability for is VOIPing over YM. The good news on that front is that Yahoo has just release a Mac version of Messenger (and that’s a big honkin’ YAHOO!). Thus far, it seems to work pretty well.

Which eliminates the need for the VOIP solution under the XP VM (one of the critical reasons for keeping Windows around…)

Users of Skype can be happy, too – they’ve had Mac version out for some time, now.

rickb

Posted in Parallels, Platforms, VM, VMWare, VOIP, Virtual Machine Software, Windows | No Comments »

End of Parallels?

Posted by rickb on 12th February 2008

On my machine, anyway?

I’ve just upgraded to Leopard on my MacBook – everything seemed to work ok, including the new XCode environment. But, XP under Parallels has been causing kernel panics, regularly.

What to do? I tried to semi-retrograde the MacBook to Tiger by installing that on a USB disk, that I can boot from. I’ve wanted to have a dual-boot scenario, anyway.

Nice try, no cigar. It seems that once OS X sees a new version on a disk, it won’t let you install a previous version, at all, anywhere. Trying to boot from the DVD produces an endlessly wheeling circular progress indicator.

The only way I can make that happen, it appears, is to pull the disk from the machine , insert another, and install fresh. Since this is my only machine, I’m not terribly enthused about that option (but I may screw up the courage — and the time — to do it, anyway.)

On to VMWare…

The next option is to try another VM solution, entirely: VMWare has had it’s Fusion product for the Mac out for a few months now — I could download a trial version and see how it goes.

The upshot is: it goes real well. It has successfully converted my XP and Ubuntu images to VMWare images (the Ubuntu went a little rough — uninstalling Parallels Tools from within the VMWare image waxed the X11 environment. I had to uninstall the tools under Parallels on the original machine and reconvert. Second try worked fine.) Just a FreeBSD image to go.

And the kernel panics went away.

Furthermore, the Ubuntu VM’s “multiple hit” problems with the mouse and keyboard have disappeared, as well.

And, another plus: I like to autohide taskbars, when I can. In Ubuntu under Parallels, I couldn’t do this — if I turned the feature on, the bar went away and hitting the mouse on the target edge would not bring it back. I had to find the keycode to pull it back up, and then turn off the auto-hide feature. Under Fusion, it works great.

So, I have to say, I’m impressed with VMWare’s efforts on the Mac (I had used them before on Windows, and they were rock solid there.) The networking came up transparently (I’m still trying to figure out what voodoo they did to map my VM’s current IP address range into their NAT – maybe they got it from the Parallels network pseudo-devices…)

Aftermath

There’s more to test – how do USB devices fare?  Do I get USB 2.0 or 1.1, if I get it at all?

I hate to give up on Parallels – they brought me to the Mac dance, after all. And it’s paid for.

But, in the end, I can’t have kernel panics, and I want my VM’s to work without funny glitches.
rickb

Posted in Mac, MacIntosh, Parallels, VM, VMWare, Virtual Machine Software | No Comments »

Developing on the Mac

Posted by rickb on 22nd January 2008

Now that the Mac has finally settled down, I’ve been moving my development efforts off of Windows and onto the Mac.  And just recently, I’ve done a partial upgrade to Leopard (hedging my bets by installing it on an external USB drive.  Best of both worlds – I can boot Leopard off the USB, and Tiger off the internal.)

XCode is a reasonable IDE – better with the Leopard incarnation.  The integration with gdb is tight – I’m having to go to the cl gdb less frequently.  Qt is working just fine on the Mac, with no surprising ‘Mac’ gotchas.  (In fact, I’ve gotten more ‘gotchas’ in the linux environment than I have Mac.)(Or Windows.)

A few things I miss in the Windows environment:

  • Visual Studio has better capability to look at out-of-scope expressions.  If I want to examine the contents of a pointer, it’s easier in VS than in Xcode.
  • Visual Studio’s ability to debug Javascript in IE is simply awesome – it looks and behaves pretty much like any other language in the IE.
  • Windiff is still the best windowed comparison program in the land.

For PHP development, Zend’s Eclipse IDE port works fine on the Mac (and the latest incarnation adds a lot of features.)  For first cut debugging of Javascript, the Firefox debugger handles most cases – although in a crunch, I’m tempted to go back to MSVS for the more puzzling situations.

Still, for the most part, I’ve been ‘living in the environment’ and haven’t been tempted to shift back over to Windows for anything in particular.

So,  the Mac is becoming pretty much my mainstream preferred development environment.  With the addition of Parallels and a few scattered VM’s , I can do the verification builds and debugging on Windows and Linux as necessary, using net shares to access the central development environment.  There’s a bit of a time penalty for going this way – but I don’t build frequently in the VM’s and the trade-off for not having to carry more than one machine more than compensates for a slightly slower build.

Ah.  There is one area where the Mac is really hands-down the preferred platform: imaging.  For one thing, you can color profile both displays – an annoying shortcoming in Windows (XP, anyway).

Posted in C++, Mac, MacIntosh, Open Source, Parallels, Platforms, Programming, Qt, Software Development, Virtual Machine Software | No Comments »

MacBook Saga, Cont’d

Posted by rickb on 28th November 2007

So, I think I finally have the MacBook situation stabilized. The machine is running well, and I’ve been working it pretty hard, usually running two Parallels VM’s and the MacOS, itself. I normally have a second monitor hooked to it for development purposes.  My only complaint is the ‘chicklet’ keys sometimes don’t register a hit.  I have to be somewhat deliberate in my typing.

Been compiling Qt4.3 in various configurations for all platforms, and the huge disk is just gobbling them right up. That’s nice. I understand I can upgrade the memory to 4gb. Have to future that – it’s not in the budget, right now. But I wonder if getting it would allow me to run three VMs at once? I’d like to have the FBSD server, XP, and Ubuntu Linux running simultaneously alongside the MacOS. That might take the next generation hardware leap (which should be out in, what? A week or two?)

I do assiduously avoid getting any liquids near it…

rickb

Posted in Mac, MacIntosh, Parallels, Qt, Virtual Machine Software, software | No Comments »

Let Chaos Reign!!

Posted by rickb on 22nd October 2007

Ok, I’ve got about ten things going at once, here. I’m the incarnation of Andy Grove’s pre-commitment exploration dictum: Let Chaos Reign!! Of course, the other side of that dictum is that when you’re committed to a particular direction, you apply the inverse: Reign Chaos In!!.

Well, it keeps me from getting bored between gigs, anyway.

The top four things (as of the moment) are:

  1. Getting the Zend IDE up and running for PHP. Ostensibly, this would seem to be simple, but things are complicated by virtue of the fact that Zend has created a second IDE based on Eclipse. Eclipse is a good thing – it not only supports PHP, but HTML, CSS, XML, and the rest of the alphabet soup of net languages, for development on the net. But, it supports application development languages, as well, most notably C++ and Java.
  2. Assiduously avoiding Java (don’t like things that consume half the machine’s resources to run a ‘hello world’ program), but C++ is right in there.
  3. Ubuntu VM configuration. Ok, I like ubuntu bunches. I hate to say it’s almost ‘Windows-like’ in ease of use, but it is. It has what must be the best update manager in the open-source world – it really does ‘just work’.
  4. Qyoto investigations: C# and Qt – what I think may emerge as the best cross-platform agile development environment, ever. C# has all the advantages of Java, without the overhead penalties. Qt is the best cross-platform windowing environment, albeit the cost is almost usurious, at least for small developers. Maybe in the future there would be a wxSharp effort? Not sure how that would work with wxWidget’s message map architecture…
  5. I’ve put this up under monodevelop on the ubuntu system, but it’s not working (even though monodevelop says it is. Just copies down the reference .dll’s.Real anxious to get this working on as many platforms as I can.
  6. Getting the WordPress rss feed plugin working. That’s the last piece of this blog. It’s installed, it’s recognized, I can set things up, but it doesn’t output anything.
  7. Getting that done will finish up the blogging system.

It sounds like a lot, and it is, but it interleaves – a lot of these are embryonic efforts (especially Qyoto) and they require some feedback from forum query’s before I can continue. So, I can drop one while waiting for a response and pick up another. Or pick up the other when I get a neuron spark.

Posted in C++, CSharp, Linux, Mac, PHP, Platforms, Programming, Qt, Virtual Machine Software, software | No Comments »

Ubuntu in Parallels

Posted by rickb on 17th October 2007

It took a couple of runs, but I got Ubuntu (the ‘K’ version) up and running under Parallels on the Mac. So, I’ve got four environments on a single machine. Basically good, but I can only run two VM’s at a time, it seems. Too much memory whack trying to run all three. I’ll have to play with memory tweaks to see if I can get three VM’s to play together. Windows just requires a bunch, so launching that VM means taking up a third of the machine’s resources.

The Rationale

Several, really – one, I’m a command-line junkie, and KDE’s command window is simply the best – a tabbed version that allows grouping of several command windows together. This is a good thing, since I will often have six or more command windows open on two or three different machines/servers at a time. Tabbing them in logical groups keeps the desktop clutter down.

Secondly, I want all three environments for cross-platform development testing. A lot of the new development platforms are coming up under open source – eclipse, Qyoto, Qt, Ruby (on Rails), PHP, etc., etc. Linux is the place to hammer those out, and Ubuntu is the easiest of the bunch to install and keep updated.

(Aside: Parallels on the Mac is in version 3, and seems to have improved, for the most part.  There are the usual gripes in the forums from the usual cranks, but on the whole, it seems to be working well.  Also: version 3 adds 3d support to the Windows VM, an important consideration for a 3d graphics software developer. )

Now, I need to hook up four screens…

Next investigation is automating the .rss feeds from WordPress.

Posted in Linux, Open Source, Programming, Virtual Machine Software | No Comments »

Things MacIntosh – The Promise II

Posted by admin on 10th December 2006

The Promise, Revisited

The White MacBook had been running reasonably well, since I got it back from AppleCare. Outside of the occasional hang from the DVD player, I hadn’t had any further experiences with the Dreaded Random Shutdown Syndrome, or the Dreaded Vertical Line syndrome.

It was time to put this thing to work, and see if the multiple OS situation was feasible.

Apple provided an interesting intermediary solution – you can dual-boot Windows in a separate disk partition. Not bad, but to be able to have a web-server running in a separate machine, I need real virtualization, or I’m back to lugging around multiple machines.

VMWare, my old stalwart on Win machines wasn’t available on the Mac. But, a new company had sprung up, called “Parallels”, and, lo and behold, they did claim to work on the Mac. In fact, Apple all but endorsed them.

I downloaded the demo version, installed it and then installed an XP image, configured it enough to see the Windows boot screen and desktop come up, and promptly bought it.

Now, it’s an early version of the software, and there are a few wankiness’es about the environment, but fundamentally, it’s working. Parallels supports all of the versions of Windows, most Linux distributions, FreeBSD, and Solaris. They’ll all boot up and run, in parallel. Wankiness’es include having to reboot the guest machine to change anything, including network settings, not a true NAT implementation, and USB1.1 support only.

But, the development team is working hard and furiously on updates – the last fixed the reboot-on-network-change issue, and USB 2.0 is rumored to be in the works, as well as ability to burn CD/DVD’s, etc., etc.

The Promise: Realization

After a few weeks of configuration, I now have pushed over pretty much all of my Windows envoironment to the Parallels VM on MacIntosh. Additionally, I have two VMs of FreeBSD (a minimal version for web-serving and a full version for X-Windows/KDE testing), and more planned. With 2gb of memory, I can run up to three OS’s simultaneously. When I flip into full screen, I don’t even know I’m on a MacIntosh. But, when I want it, I have Mac available on the same platform.

It’s been a bit of a road. But it’s been worth it.

I now can carry only a single machine, if I want to. In practical terms, that’s not always feasible – I like to carry a backup on long trips, in case my primary machine fries. But, I don’t have to, especially when I go out on quickie jaunts.

I’m a happy camping developer.

rickb

Posted in Mac, MacIntosh, Parallels, VM, VMWare, Virtual Machine Software | No Comments »

Things MacIntosh – Initial Experiences

Posted by admin on 10th December 2006

The New: White MacBook

The new Intel MacBooks were out, and it was time to upgrade. So, I popped for a nice, shiny white MacBook, maxed out as much as possible with the 2ghz Intel Duo processor, 160gb hard-drive, and 2gb memory. Figured that should last for a while.

(Why, you might ask, not a MacBook Pro? Frankly, IMHO, the Pros are a lot of footprint and bulk to carry around. From the comparison specs, I couldn’t see any difference in pure processing power between the Pro and the standard Black/White MacBook. The standard configuration is a lot smaller, lighter, and thinner, although Apple could take a lesson from Toshiba and Fujitsu on making small notebooks.)

Things with the new Mac went well, initially – I put on Parallels (worth a review in it’s own right), added the development kit, and started filling it up.

Then, the unimaginable happened: as I was working, the machine just blinked off. I blinked back and tried to reboot. No, it didn’t want to reboot. I held the power button down for the extended five-second period, and it booted, albeit very reluctantly. It took a good five minutes for it to reboot.

Thinking it was just a glitch, I continued on and at the end of the session, powered the machine down. Imagine my disappointment when the machine wouldn’t boot up, normally (I had to use the long hold on the power button, again), and even more dismay when it konked out in the middle of a session, again. No warnings, no, “Hi! I need to reboot..” message accompanied by a smiley face. Nada. Just suddenly black screen.

The Dreaded Random Shutdown Syndrome

A perusal of the web revealed I wasn’t the only one having these troubles. There were reports of incidents all over the Mac forums, with the responses from Apple being vague disclaimers: “Gee, we’ve never heard of that…” type, followed up by recommendations to to a hard reset, a PRU reset, etc., etc., etc.

But, as I dug deeper, I could see there was more to the problem. There was (may still be as of this writing) a full domain dedicated to the issue (macbookrandomshutdown.com), with a lot of disgruntled folks complaining about Apple’s indifference and threatening a class-action lawsuit.

Time to call Apple. The person on the other end I talked to was extremely polite, and didn’t ask me to go through the “reset the following six things and maybe re-install your operating system” dance (ok, an exaggeration, but that’s what it feels like.) He just gave a number and sent a box, which arrived the next day. I packed the machine per instructions and sent it in.

The machine came back within a week, all clean and shiny. None of the horror stories I’d read about happened (like the hard-drive being cleaned prior to return.) The machine booted up, and seemed to work fine.

The Dreaded Vertical Lines Syndrome

All seemed well, until I booted it up one morning and was greeted by a gray screen, with slowly-filling-in vertical color-lines. No happy face, no desktop, nada. A reboot repeated the scenario.

Fine. Good thing I’d kept the box.

Another call to Apple, another courteous response, and an interesting answer: This was actually a known problem, and was resolved by … an OS upgrade. Get outta here! It certainly looked like a hardware issue, to me.

But, I followed the gentleman’s advice and installed the latest upgrade (2.4.8, at the time), and, voila! No more grey screen with vertical color-lines. After about six weeks of messing around, maybe I could get back to making this thing suit my purposes.

(Cont’d next…)

rickb

Posted in Mac, MacIntosh, Parallels, VM, VMWare, Virtual Machine Software | No Comments »

Things MacIntosh – The Promise

Posted by admin on 10th December 2006

The Promise

As a cross-platform software/web developer, I find it important to have as many platforms as feasible available on which to test/adopt various pieces of software or webpages. There’s simply no other way to guarantee cross-platform robustness than having an actual running system available.

Under normal circumstances, that means packing a lot of hardware. But, with the advent of virtual machine technology, I’ve been able to consolidate at least the Intel OS’s (various flavors of Windows/Unix) with a thing called VMWare Workstation that allows multiple OS’s to run on a single box.

This has been good, but the Apple MacIntosh has been the odd duck in the parade. It didn’t run on Intel chips, so virtualization wouldn’t work with the Mac OS.

Thus, I have had a Mac for a while. (I still have a Color Classic kicking around in my office, waiting until it becomes an ‘art collectible’, if anyone reading this is interested: I can dispose of it for a premium! (Not holding my breath – the last eBay check, they were going for something like a $160, and that’s with original manuals, box, and everything.)

The Old: Wallstreet

Anyway, for a number of years, I had a Wallstreet MacBook. The kind in the big black case with the bronze/transparent keyboard.

As it went, it was a reasonable machine – G3 processor, nice big screen, reasonable touch. But, since it wasn’t used very often, the PRU battery kept dying, which meant it wouldn’t boot, or it would throw the power management board, completely. I went through a lot of power management boards on that machine. Finally, the last time it died it failed all attempts to rescuscitate: maybe it was time for an upgrade.

Besides, now that the new Intel-based Macs were out, an interesting thought began to form in the back recesses of my mind: If Mac is going to Intel, I wondered if VMWare might not work on it. The idea of being able to run all of the major operating systems on a single platform was very tantalizing, if not flat-out mouth-drooling…

(To be cont’d…)

rickb

Posted in Mac, MacIntosh, Parallels, VM, VMWare, Virtual Machine Software | No Comments »