World Library  
Flag as Inappropriate
Email this Article

Cooperative Linux

Cooperative Linux
Developer(s) community
Initial release January 25, 2004 (2004-01-25)
Stable release 0.7.9 [1] / April 9, 2011 (2011-04-09) [2]
Operating system Windows NT family
Type Platform virtualization
License GNU General Public License
Website .orgcolinux

Cooperative Linux, abbreviated as coLinux, is software which allows Microsoft Windows and the Linux kernel to run simultaneously in parallel on the same machine.[3]

Cooperative Linux utilizes the concept of a Cooperative Virtual Machine (CVM). In contrast to traditional virtual machines, the CVM shares resources that already exist in the host OS. In traditional VM hosts, resources are virtualized for every (guest) OS. The CVM gives both OSs complete control of the host machine while the traditional VM sets every guest OS in an unprivileged state to access the real machine.


  • Overview 1
  • History 2
  • Comparisons 3
  • Distribution 4
  • Emulated hardware 5
  • Limitations 6
  • See also 7
  • References 8
  • External links 9


Synaptic and nautilus running on Windows

The term "cooperative" is used to describe two entities working in parallel. In effect Cooperative Linux turns the two different operating system kernels into two big coroutines. Each kernel has its own complete CPU context and address space, and each kernel decides when to give control back to its partner.

However, while both kernels theoretically have full access to the real hardware, modern PC hardware is not designed to be controlled by two different operating systems at the same time. Therefore the host kernel is left in control of the real hardware and the guest kernel contains special drivers that communicate with the host and provide various important devices to the guest OS. The host can be any OS kernel that exports basic primitives that allow the Cooperative Linux portable driver to run in CPL0 mode (ring 0) and allocate memory.[4]


Dan Aloni originally started the development of Cooperative Linux based on similar work with User-mode Linux. He announced the development on 25 Jan 2004.[5] In July 2004 he presented a paper at the Linux Symposium.[6] The source was released under the GNU General Public License. Other developers have since contributed various patches and additions to the software.


Cooperative Linux is significantly different from full x86 virtualization, which generally works by running the guest OS in a less privileged mode than that of the host kernel, and having all resources delegated by the host kernel. In contrast, Cooperative Linux runs a specially modified Linux kernel that is Cooperative in that it takes responsibility for sharing resources with the NT kernel and not instigating race conditions.


Most of the changes in the Cooperative Linux patch are on the i386 tree—the only supported architecture for Cooperative at the time of this writing. The other changes are mostly additions of virtual drivers: cobd (block device), conet (network), and cocon (console). Most of the changes in the i386 tree involve the initialization and setup code. It is a goal of the Cooperative Linux kernel design to remain as close as possible to the standalone i386 kernel, so all changes are localized and minimized as much as possible.

The coLinux package installs a port of the Linux kernel and a virtual network device and can run simultaneously under a version of the Windows operating system such as Windows 2000 or Windows XP. It does not use a virtual machine such as VMware.

Debian, Ubuntu, Fedora and Gentoo are especially popular with the coLinux users.

Due to the rather unusual structure of the virtual hardware, installing Linux distributions under coLinux is generally difficult. Therefore users in most cases use either an existing Linux installation on a real partition or a ready made filesystem image distributed by the project. The filesystem images are made by a variety of methods, including taking images of a normal Linux system, finding ways to make installers run with the strange hardware, building up installs by hand using the package manager or simply upgrading existing images using tools like yum and apt. An easier way to get an up-to-date filesystem image is to use QEMU to install Linux and "convert" the image by stripping off the first 63 512-byte blocks as described in the coLinux wiki.

Since coLinux does not have access to native graphics hardware, X Window or X Servers will not run under coLinux directly, but one can install[7] an X Server under Windows, such as Cygwin/X or Xming and use KDE or GNOME and almost any other Linux application and distribution. All of these issues are fixed by using coLinux based distributions such as andLinux, based on Ubuntu, or TopologiLinux, based on Slackware.

Emulated hardware

  • Ethernet network via TAP, PCAP, NDIS and SLiRP.


  • Does not yet support 64-bit Windows or Linux (nor utilize more than 4GB memory), but a port is under development[8] by the community.
  • No multi-processor (SMP) support. Linux applications and the underlying kernel are able to use only one CPU.[9]

See also


  1. ^
  2. ^
  3. ^ coLinux main website
  4. ^ coLinux main page
  5. ^ Dan Aloni announces Cooperative Linux
  6. ^ Dan Aloni paper presented July 2004 at Linux Symposium
  7. ^ See "XCoLinux" on the coLinux Wikia
  8. ^ 64 bit development information and resources
  9. ^ [2]

External links

  • Official website
  • Cooperative Linux on
  • Virtualization with coLinux a developerWorks by M. Tim Jones
  • speedLinux
  • Portable Ubuntu Remix, another Ubuntu-based coLinux distribution
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.