Virtualize The Operating System

March 17, 2005
Need to run more than one operating system at a time? Doing so can be very handy for supporting backward compatibility. It's also a useful way to isolate new platforms while running an existing platform on the same hardware. Two approaches are a

Need to run more than one operating system at a time? Doing so can be very handy for supporting backward compatibility. It's also a useful way to isolate new platforms while running an existing platform on the same hardware.

Two approaches are available for running multiple operating systems. The first is the virtual machine manager (VMM). The second is the user-mode operating system. It's possible to mix and match these approaches, though the typical installation is much more limited (see the figure).

VMMs virtualize the host processor. This enables the host operating system, which is optional, and the VMM to run simultaneously with the client operating systems. The VMM traps the client operating systems' access to the hardware.

Designers should take notice of two commercial VMMs, Microsoft's Virtual PC and VMware's namesake, which support standard operating systems such as Windows XP. Using these VMMs, developers can run their host development platform alongside the target platform, assuming the target runs on the same processor as the host.

Virtual PC does a great job hosting Windows operating systems, while VMware tackles workstation and high-end IT infrastructures. VMware's high-end management is designed to tackle large, multiprocessing environments. Then there's Xen, an open-source VMM supported by the University of Cambridge. Xen definitely is not in the same class as Virtual PC or VMware, but it can be a useful tool.

Embedded designers looking for non-x86 alternatives can check out platforms like Green Hills Software's Integrity Padded Cell for its Integrity operating system and Jaluna's OSware. These VMMs run on a variety of processors, but they typically require more customization than embedded designers are familiar with.

The second option for running multiple operating systems, the user mode (UM), requires modification of the client operating systems. The advantage is that the operating system now looks like an application to the host operating system removing the hardware virtualization requirement. VMM overhead is small, allowing a user-mode implementation to be even more efficient.

User-Mode Linux (UML) is an open-source project designed to run Linux as an application. Its initial target was the x86 architecture. LynuxWorks BlueCat Linux UML was just released for the Power PC G5 processor architecture. The PowerPC is very popular in embedded applications. It is the first commercial UML product for non-x86 platforms.

Virtualization is an invaluable tool for development and deployment. Designers definitely should check out the options.

Green Hills Software
www.ghs.com

Jaluna
www.jaluna.com

LynuxWorks
www.lynuxworks.com

Microsoft
www.microsoft.com

User-Mode Linux
user-mode-linux.sourceforge.net

VMware
www.vmware.com

Xen
xen.sourceforge.net

About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!