Windows пен Linux жүйелерін бірге іске қосу бағдарламасы
Cooperative Linux
Windows пен Linux жүйелерін бірге іске қосу мүмкіндігі! Cooperative Linux және CVM технологиясы туралы біліңіз. Ресурстарды бөлісу арқылы тиімді жұмыс.
Ағылшыншамен салыстырыңыз: абзацты басыңыз — түпнұсқа терезеде ашылады. Абзац астындағы EN түймесі оны мәтін ішінде көрсетеді.
Мазмұны
Кіріспе
Windows және Linux жүйелерін іске қосатын бағдарламалық қамтамасыз ету Кооперативтік Linux кооперативтік виртуалды машина (CVM) тұжырымдамасын қолданады. Дәстүрлі виртуалды машиналардан өзгешелігі, CVM хост операциялық жүйедегі қолданыстағы ресурстарды бөліседі. Дәстүрлі VM хосттарында әрбір (қонақ) операциялық жүйе үшін ресурстар виртуалды түрде құрылады. CVM екі операциялық жүйеге де хост машинаны толық бақылауға мүмкіндік береді, ал дәстүрлі VM әрбір қонақ операциялық жүйені нақты машинаға қол жеткізу үшін құқықтары шектеулі күйге қояды.
Software to run both Windows and Linux
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.
Шолу
"Кооператив" термині екі параллель жұмыс істейтін жүйені сипаттау үшін қолданылады. Іс жүзінде, Cooperative Linux екі әртүрлі операциялық жүйе ядроларын екі үлкен корутинаға айналдырады. Әрбір ядроның өзіне тән толық CPU контексі және адрестік кеңістігі болады, және әрбір ядро басқаруды өз серігіне қашан қайтару керектігін шешеді. Дегенмен, екі ядро да теориялық тұрғыдан нақты аппараттық құралдарға толық қол жеткізе алса да, қазіргі заманғы PC аппараттық құралдары екі түрлі операциялық жүйемен бір уақытта басқарылуға арналмаған. Сондықтан, хост ядросы нақты аппараттық құралдарды басқару құқығында қалады, ал қонақ ядросында хостпен байланысатын және қонақ операциялық жүйеге түрлі маңызды құрылғыларды ұсынатын арнайы драйверлер орналасқан. Хост, Cooperative Linux портативті драйверін CPL0 режимінде (сақина 0) іске қосуға және жадты бөлуге мүмкіндік беретін негізгі примитивтерді экспорттайтын кез келген операциялық жүйе ядросы болуы мүмкін.
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.
Тарих
Дэн Алони бастапқыда Cooperative Linux-ты User mode Linux-пен ұқсас жұмыстар негізіндегі зерттеу жобасы ретінде дамыта бастады. Ол 2004 жылдың 25 қаңтарында осы жобаны жариялады. 2004 жылдың шілдесінде ол Linux симпозиумында ғылыми еңбекпен шықты. Код GNU General Public License лицензиясымен жарияланды. Кейіннен басқа да әзірлеушілер бағдарламалық қамтамаға түрлі түзетулер мен қосымшалар енгізді.
Dan Aloni originally started the development of Cooperative Linux as a research project based on similar work with User mode Linux. He announced the development on 25 Jan 2004. In July 2004 he presented a paper at the Linux Symposium. The source was released under the GNU General Public License. Other developers have since contributed various patches and additions to the software.
Салыстырулар
Кооперативтік Linux толық x86 виртуализациясынан едәуір өзгеше, ол әдетте қонақ жүйесін хост ядросынан кем құқықты режимде іске қосу арқылы жұмыс істейді және барлық ресурстар хост ядросымен басқарылады. Ал, Кооперативтік Linux ерекше өзгертілген Linux ядросын іске қосады, ол ресурстарды NT ядросымен бөлісуге жауапкершілік алып, жарыс жағдайларын болдырмайды.
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.
Тарату
Cooperative Linux жаңыртуындағы өзгерістердің көпшілігі i386 ағашында – осы мәтін жазылған кезде Cooperative үшін қолдау көрсетілетін жалғыз архитектура. Басқа өзгерістер көбінесе виртуалды драйверлерді қосу: cobd (блок құрылғысы), conet (желі) және cocon (консоль). i386 ағашындағы өзгерістердің көп бөлігі инициализация және орнату кодына қатысты. Cooperative Linux ядросының мақсаты – дербес i386 ядросына мүмкіндігінше жақын болу, сондықтан барлық өзгерістер локалданып, мүмкіндігінше азайтылады. coLinux пакеті Linux ядросының портын және виртуалды желі құрылғысын орнатады және Windows 2000 немесе Windows XP сияқты Windows операциялық жүйесінің нұсқасында бір уақытта жұмыс істей алады. Ол VMware сияқты виртуалды машинаны пайдаланбайды. Debian, Ubuntu, Fedora және Gentoo coLinux пайдаланушылары арасында ерекше танымал. Виртуалды аппараттың ерекше құрылымына байланысты, Linux дистрибутивтерін coLinux-та орнату әдетте қиын. Сондықтан пайдаланушылар көбінесе нақты бөлімде орнатылған Linux немесе жоба тарапынан таратылатын файл жүйесінің кескінін пайдаланады. Файл жүйесінің кескіндері әртүрлі әдістермен жасалады, соның ішінде қалыпты Linux жүйесінің кескінін алу, инсталляторларды осы ерекше аппараттық құралдармен іске қосудың жолдарын табу, пакет менеджерін пайдаланып қолмен орнату немесе yum және apt сияқты құралдарды қолдана отырып, бар кескіндерді жаңарту. Файл жүйесінің жаңартылған кескінін алудың оңай жолы – Linux орнату үшін QEMU пайдалану және coLinux вики-де сипатталғандай, алғашқы 63 512 байттық блокты алып тастау арқылы кескінді «өзгерту». coLinux графикалық аппараттық құралдарға тікелей қол жеткізе алмайтындықтан, X Window немесе X Server coLinux-та тікелей жұмыс істемейді, бірақ Windows-та, мысалы Cygwin/X немесе Xming сияқты X Server орнатып, KDE немесе GNOME және басқа да Linux қолданбалары мен дистрибутивтерін пайдалануға болады. Бұл мәселелердің барлығы coLinux негізіндегі дистрибутивтерді, мысалы Ubuntu негізіндегі andLinux немесе Slackware негізіндегі TopologiLinux пайдалану арқылы шешіледі.
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 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.
Эмуляцияланған жабдық
TAP, PCAP, NDIS және SLiRP арқылы Ethernet желісі.
Ethernet network via TAP, PCAP, NDIS and SLiRP.
Шектеулер
64 битті Windows немесе Linux әлі қолдамайды (сондай-ақ 4 ГБ-тан артық жадты пайдаланбайды), бірақ қауымдастық осыны қолдау үшін портты жасап жатыр. Көппроцессорлық (SMP) қолдау жоқ. Linux қолданбалары мен ядро тек бір процессорды ғана пайдалана алады.
Does not yet support 64 bit Windows or Linux (nor utilize more than 4GB memory), but a port is under development by the community. No multi processor (SMP) support. Linux applications and the underlying kernel are able to use only one CPU.