Irfan’s Corner on the Web On Mac, Linux, Grid, Virtualization and Software Technology

22Oct/070

Linux becomes playground for Virtualization Technologies

With the recent inclusion of Xen and lguest into the 2.6.23 kernel aswell as a generic interface for other hypervisors, the Linux kernel has become a playground for virtualization technologies. KVM was added to the kernel in 2.6.20. So what does the kernel have? It has hardware assisted virtualization solution like KVM, Xen PVM aswell as software based solutions like Xen PVM and lguest. Additionally various virtualization techniques like Linux V server, Qemu and others have existed for quite some time.

With the inclusion the of these technologies, the linux kernel provides researchers an environment where they can play around with various techniques and advance the state of the art in Virtualization. I look forward to a future where nearly all the innovations to virtualization will come not from proprietary platforms like MS Virtual PC or VMware but from opensource hypervisors. Linux has played a key role in the past in advancing Virtualization. VMware was one of the first full virtualization solutions and start the revival of the virtualization market, however it was an open source virtualization hypervisor Xen, which actually managed to introduce a software which allowed near native performance virtualization. It was again Xen, which provided support to hardware assisted platforms like Intel VT and AMD SVM.

24Feb/070

Comparison of Virtual Machine emulators/Hypervisors

Virtualization has really become important during the last few years. It is used for server consolidation, software testing, operating system research, and increasingly, because of the near native performances of the recent virtual machine hypervisors, to integrating operarting systems in a manner that the one which offers best applications for a specific scenario. I for example, use openSUSE 10.2 Linux on my notebook, however sometimes I require MS Office (No disrespect to OpenOffice, OpenOffice is great, and is very funtional but I really love the interface of Office 2007 and makes me feel more productive), thats why I turn my virtual machine of windows on and do my work on it. The software I use is VMware, which is a very user friendly virtual machine software and it also provides near native performance to guest operating systems.

So what solutions for virtualization exist for Linux? I found this mega list in Wikipedia which provides an unscientific comparison between virtual machines. Unscientific because it uses terms such as "Performance is 'near' native", I would like to see benchmarks.

Get the comparison here

30Jan/074

VMWare, openSUSE and USB Ports!

I finally decided to take the plunge and remove Windows XP completely from my notebook (so far I was dual-booting), however I require certain applications which I need to use as part of my research that's why I have installed VMWare and hosted Windows XP on it, with the software. I'm so far very impressed by the performance, although I only have 512MB RAM, but it doesn't feel as if I'm running an emulated environment. VMWare allows me to stay in Linux and access those application which I require which are not available on Linux yet. Gradually I think virtualization will facilitate Linux in taking over the Desktop J.

However I have come across a problem which has been purely setup by open source "fundamentalists"! As soon as I installed VMWare I tried out various hardware including USB flash drives and USB camera, but they won't work? And upon investigation it was revealed that this was due to a method for accessing the USB port, which was claimed to be insecure, hence support for it was discontinued in openSUSE 10.2, in a heated discussion in the forums, it was very clear who was behind all this, a respected kernel hacker. Greg KH recently jumped the canon and was the one who posted a patch to the LKML, for eliminating binary drivers. I respect him; however he does not seem to have any for users. In a post he said:

"We are not supporting VMWare, because it is closed source and proprietary"

It indeed is, but is there any other open source solution that beats it? Xen requires kernel modification and hence does not work with Windows, the only solution to virtualize windows on Linux computer right now (KVM may change that in future, however it is in the initial stages of development, and runs only on the latest processors) is to use VMWare. In effect VMware is doing us a favour by porting VMWare to Linux at all! I'm 100% certain that the openSuse 10.2 kernel team is doing the right thing by closing a potential exploitable thing, however the approach they have adopted is completely unacceptable! If the concerned methods is indeed exploitable, it is only in the application developers own interest to adopt a more secure method for accessing USB ports, however why can't all Linux distributions follow the same standard then? I can well imagine why VMWare didn't use the openSuse method of 'securely' accessing USB ports, because it would conflict with other popular distributions and if they try to support each method, would result in excessive workload to the company. The best method in this case would be to use something like the OSDL (what's the job of OSDL anyway?) to provide recommendations to the linux distributions in order to standardize kernel level interfaces, so that application developers do not end up supporting dozens of methods for a trivial task as accessing a USB port.

For the time being while Windows runs on more than 90% of the worlds desktops, and is a lucrative market for Independent Software Vendors, we can not ignore users who have applications which are Windows dependant; there are 1,000 times more such applications than Linux dependant apps. And the only way to allows users to run those applications on Linux for the time being is to use virtualization (WINE in my opinion, is progressing nicely, but still has some way to go).

PS. Instead of just ranting here, I will be releasing an openSUSE default kernel with the USB access feature turned on, so that people who need it now can use it

10Sep/060

Xen

In the last half century, microcomputers have become increasingly powerful. Server systems have grown so powerful, that many enterprise servers typically are underutilized. Modern computers are sufficiently powerful to use virtualization to present the illusion of running many virtual systems on a single machine. Each virtual system runs a separate operating system instance simultaneously. So, you can run multiple instances of Linux at the same time on the same machine, or you can run combinations of operating systems, such as Linux, FreeBSD, Windows and so on. This has led to a resurgence of interest in Virtual Machine (VM) technology, which has been around for decades on bigger iron

Read the full article on Linux Journal