CN104156270B - A kind of unit runs the method and system of multiple operating system simultaneously - Google Patents

A kind of unit runs the method and system of multiple operating system simultaneously Download PDF

Info

Publication number
CN104156270B
CN104156270B CN201410363942.6A CN201410363942A CN104156270B CN 104156270 B CN104156270 B CN 104156270B CN 201410363942 A CN201410363942 A CN 201410363942A CN 104156270 B CN104156270 B CN 104156270B
Authority
CN
China
Prior art keywords
disk
operating system
shared
operating
boot partition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410363942.6A
Other languages
Chinese (zh)
Other versions
CN104156270A (en
Inventor
安凌靖
刘成平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201410363942.6A priority Critical patent/CN104156270B/en
Publication of CN104156270A publication Critical patent/CN104156270A/en
Application granted granted Critical
Publication of CN104156270B publication Critical patent/CN104156270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

Run the method and system of multiple operating system simultaneously the invention discloses a kind of unit, this method includes:Each system in multiple operating systems is correspondingly generated the disk boot partition of its shared disk and point to the pointer list of the disk boot partition of disk shared by other operating systems on one or more disks of unit, and for each operating system;Disk of the server of unit according to shared by disk boot partition startup is whole or selection starts some operating system, to start whole or select to start some operating system.The present invention makes full use of server resource, multiple operating system is installed under separate unit physical machine, each operating system is independently booted up or is simultaneously directed startup, each self-operating is not interfere with each other, and improves the utilization rate of resource, and stability is high, and after the hardware for being under the jurisdiction of some system goes wrong, an operating system is only influenceed, all operating systems will not be caused to collapse, improve System Fault Tolerance rate and the service behaviour of unit.

Description

A kind of unit runs the method and system of multiple operating system simultaneously
Technical field
The present invention relates to computer realm, and in particular to a kind of unit runs the method and system of multiple operating system simultaneously.
Background technology
With the rapid development of computer technology and integrated circuit technique, high performance server increasingly becomes economical The needs of social development, are also increasingly popularized.And when using high-performance server, problems with often be present:(1) at present, An operating system is only run on one single server, the use for high-performance server tends not to reach good resource Utilization rate, cause the wasting of resources;(2) it is different according to required service function, various different operating systems are generally required, and purchase more Platform server causes huge cost pressure.Currently in order to improve resource utilization, more void are often run on the server Plan machine, equivalent to one operating system of operation on every virtual machine, but virtual machine is often present that performance is low, unstable, hardware Support the defects of bad, if especially if virtual machine as server in use, place physical machine goes wrong or again Open, then all virtual machines will be closed, and cause Servers-all to shut down, and work is put to no little inconvenience.
The content of the invention
The technical problem to be solved in the invention is to provide a kind of unit while runs the method and system of multiple operating system, To improve the resource utilization of server, stability and systematic function.
In order to solve the above-mentioned technical problem, multiple operating system method is run simultaneously the invention provides a kind of unit, including:
By each system in multiple operating systems correspondingly on one or more disks of unit, and be each behaviour The disk boot partition of its shared disk is generated as system and points to the disk boot partition of disk shared by other operating systems Pointer list;
The server of the unit is started all according to the disk boot partition or selection starts some operating system institute The disk accounted for, to start all or select to start some operating system.
Further, magnetic of the server according to shared by the disk boot partition selects some operating system of startup Disk, to start some operating system, including:
The Boot loader of the disk boot partition of disk opens shared by described some described operating system of server operation Disk shared by some dynamic described operating system, to start some described operating system.
Further, disk of the server according to shared by the disk boot partition starts all operationss system, with Start all operationss system, including:
The startup of server whole disk, to start all operationss system;Or
The Boot loader of the disk boot partition of disk opens shared by described some described operating system of server operation Disk shared by some dynamic described operating system, further according to other operations recorded in the pointer list of some operating system The disk boot partition of disk shared by system, starts disk shared by other operating systems, to start other operating systems.
Further, after the startup of server is whole or selection starts some operating system, methods described is also wrapped Include:
Physical source distributing is given to the operating system of each startup, the operating system of each startup takes the thing for its distribution Manage resource each independent operating.
Further, methods described also includes:
The situation that the mainboard firmware of the server takes physical resource to each operating system being currently running is supervised Control, if the physical resource that a certain operating system takes is more than default threshold value, by the partial task of a certain operating system The operating system of other startups is given, after the completion of other operating systems started handle the partial task, by result Return to a certain operating system.
In order to solve the above-mentioned technical problem, present invention also offers a kind of unit simultaneously run multiple operating system system, Including:
Multiple operating system installs module, for each system in multiple operating systems to be correspondingly arranged on into one of unit Or on multiple disks, and generate the disk boot partition of its shared disk for each operating system and point to other operating systems The pointer list of the disk boot partition of shared disk;
Multiple operating system starts guiding module, for being started all according to the disk boot partition or selecting to start some Disk shared by operating system, to start all or select to start some operating system.
Further, the multiple operating system starts guiding module, for selecting to start according to the disk boot partition Disk shared by some operating system, to start some operating system, including:
Run some described in the Boot loader startup of the disk boot partition of disk shared by some described operating system Disk shared by operating system, to start some described operating system.
Further, the multiple operating system starts guiding module, for being started all according to the disk boot partition Disk shared by operating system, to start all operationss system, including:
Start whole disks, to start all operationss system;Or
Run some described in the Boot loader startup of the disk boot partition of disk shared by some described operating system Disk shared by operating system, further according to magnetic shared by other operating systems recorded in the pointer list of some operating system The disk boot partition of disk, starts disk shared by other operating systems, to start other operating systems.
Further, in addition to:
Physical source distributing module, for physical source distributing to be given to the operating system of each startup, the behaviour of each startup Make system and take the respective independent operating of physical resource for its distribution.
Further, in addition to:
Mainboard firmware, the situation for taking physical resource to each operating system being currently running are monitored, if The physical resource that a certain operating system takes is more than default threshold value, then the partial task of a certain operating system is given into other The operating system of startup;
Other operating systems started, described in after the partial task of a certain operating system is received, inciting somebody to action After the completion of partial task processing, result is returned into a certain operating system.
Compared with prior art, unit provided in an embodiment of the present invention runs the method and system of multiple operating system simultaneously, Server resource is made full use of, multiple operating system is installed under separate unit physical machine, each operating system can be opened by independent guiding Dynamic to be simultaneously directed startup, each self-operating is not interfere with each other, and improves the utilization rate of resource, and stability is high, Er Qieli Belong to some system hardware go wrong after, only influence an operating system, all operating systems will not be caused to collapse, so System Fault Tolerance rate is improved, improves the service behaviour of unit;
In another embodiment, the physical resources such as CPU, internal memory, network interface card are divided, distributes to each behaviour Make system, each operating system is taken alone, parallel operation, furthermore achieved that high resource utilization, high stability, height The purpose of performance;
Meanwhile in another embodiment, according to the performance pressures of different operating system, in a certain operating system Partial task point is handled toward other operating system assistances when busy, further increases resource utilization and systematic function.
Brief description of the drawings
Fig. 1 is unit while to run the method flow diagram of multiple operating system in embodiment;
Fig. 2 is unit while to run the system construction drawing of multiple operating system in embodiment;
Fig. 3 is the distribution schematic diagram of the operating system that single server is installed in an application example).
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application Feature can mutually be combined.
Embodiment:
As shown in figure 1, present embodiments providing a kind of unit while running multiple operating system method, comprise the following steps:
S101:By each system in multiple operating systems correspondingly on one or more disks of unit, and be Each operating system generates the disk boot partition (Master Boot Record, abbreviation MBR) of its shared disk and pointed to The pointer list of the disk boot partition of disk shared by other operating systems;
Unit just refers to a physical machine, and the disk boot partition MBR is one piece of region on hard disk, which includes Boot loader bootloader, operation Boot loader can be to be booted up corresponding disk.Pointer list is only The one piece of region stood in outside MBR, it points to the MBR of other operating systems.
S102:The server of the unit starts all according to the disk boot partition or selects to start some operation The shared disk of system, to start all or select to start some operating system.
Wherein, which disk server starts according to setting selection of the user in BIOS, will after the disk is started Start the operating system for taking the disk, server can also start all disks of unit, thus start and be arranged on All operationss system on server.
Wherein, disk of the server according to shared by the disk boot partition selects some operating system of startup, with Start some operating system, including:
The Boot loader of the disk boot partition of disk shared by described server operation some operating system described in Start the disk shared by some described operating system, to start some described operating system.
Wherein, disk of the server according to shared by the disk boot partition starts all operationss system, to start All operationss system, including:
The startup of server whole disk, to start all operationss system;Or
The Boot loader of the disk boot partition of disk opens shared by described some described operating system of server operation Disk shared by some dynamic described operating system, further according to other operations recorded in the pointer list of some operating system The disk boot partition of disk shared by system, starts disk shared by other operating systems, to start other operating systems.
After the startup of server is whole or selection starts some operating system, methods described also includes:
S103:Physical source distributing is given to the operating system of each startup, the operating system of each startup is taken as its point The physical resource matched somebody with somebody is run independently of one another.
Physical resource includes CPU, internal memory, network interface card etc..Physical resource is carried out according to the allocation proportion set in advance Distribution, such as, two operating systems of Windows and Linux are installed, the ratio being pre-configured with is that Windows takes total thing The 1/3 of resource is managed, and Linux takes the 2/3 of total physical resource.
Preferably, methods described also includes:The mainboard firmware of the server accounts for each operating system being currently running It is monitored with the situation of physical resource, should if the physical resource that a certain operating system takes is more than default threshold value The partial task of a certain operating system gives the operating system of other startups, and operating systems that other start are by the partial task After the completion of processing, result is returned into a certain operating system.Mainboard firmware is the program operated on mainboard, by It provides function described here.
The present embodiment is past by partial task point when a certain operating system is busy according to the performance pressures of different operating system The processing of other operating system assistances, further increases resource utilization and systematic function.Exemplified by taking CPU, work as occupancy More than CPU90%, illustrate that the operating system is busy, then the partial task of the operating system can be given to other not busy behaviour Make system, for example, taking in below CPU50% any one or multiple operating systems or other operating systems Most not busy operating system, i.e., take the minimum operating system of physical resource when currently running business.
As shown in Fig. 2 a kind of unit while the system for running multiple operating system are present embodiments provided, including:
Multiple operating system installs module, for each system in multiple operating systems to be correspondingly arranged on into one of unit Or on multiple disks, and generate the disk boot partition of its shared disk for each operating system and point to other operating systems The pointer list of the disk boot partition of shared disk;
Multiple operating system starts guiding module, for being started all according to the disk boot partition or selecting to start some Disk shared by operating system, to start all or select to start some operating system.
Wherein, the multiple operating system starts guiding module, for starting some according to disk boot partition selection Disk shared by operating system, to start some operating system, including:
Run some described in the Boot loader startup of the disk boot partition of disk shared by some described operating system Disk shared by operating system, to start some described operating system.
Wherein, the multiple operating system starts guiding module, for starting all operationss according to the disk boot partition Disk shared by system, to start all operationss system, including:
Start whole disks, to start all operationss system;Or
Run some described in the Boot loader startup of the disk boot partition of disk shared by some described operating system Disk shared by operating system, further according to magnetic shared by other operating systems recorded in the pointer list of some operating system The disk boot partition of disk, starts disk shared by other operating systems, to start other operating systems.
As a preferred mode, the system in the present embodiment also includes:
Physical source distributing module, for physical source distributing to be given to the operating system of each startup, the behaviour of each startup It is that its physical resource distributed is run independently of one another to make system to take.
As a preferred mode, the system in the present embodiment also includes:
Mainboard firmware, the situation for taking physical resource to each operating system being currently running are monitored, if The physical resource that a certain operating system takes is more than default threshold value, then the partial task of a certain operating system is given into other The operating system of startup;
Mainboard firmware is the program operated on mainboard, and function described here is provided by it;
Other operating systems started, for after the partial task of a certain operating system is received, by the part After the completion of task processing, result is returned into a certain operating system.
In an application example, there is 4 disks A, B, C, D, installation Windows, Linux and Mac OS with physical machine Exemplified by this 3 operating systems of Apple Macintosh operating system, in the server of this application example,
Multiple operating system installs module, for the different disk in unit, independently installed aforesaid operations system, and be every Individual operating system generates the disk boot partition of its shared disk and points to the disk guiding point of disk shared by other operating systems The pointer list in area;Include Boot loader in disk boot partition, so as to multiple operating system starts guiding module can be with Start from any disk, so as to start all or select the operating system to be booted up.
For example, installing Windows operating system on disk A, B, (SuSE) Linux OS is installed on disk C, in disk Mac OS Apple Macintosh operating systems are installed on D;Fig. 3 gives the distribution schematic diagram of the operating system of single server installation, is every Disk generation disk boot partition MBR shared by individual operating system, instruction list point to disk shared by other two operating systems Disk boot partition.Pointer list is one piece of independent region, houses the MBR of each operating system address, conveniently opens Move each operating system.
Multiple operating system starts guiding module, and for starting 3 operating systems simultaneously, or selection only starts wherein 1 Or 2 operating systems.
For example, all operationss system can be started by starting whole disks, or, selection only starts disk A, B and come Start Windows systems, the MBR of other two operating systems is then pointed to further according to the disk shared by Windows operating system Pointer, start disk C and disk D, to start other two operating systems.
Physical source distributing module, for physical source distributing to be given to the operating system of each startup, the behaviour of each startup Make system and independently take physical resource operation task thereon for its distribution.
For example, the operating system that physical resource is averagely allocated to startup is pre-set, if, current 3 operating system Running, then each operating system each accounts for the physical resource such as CPU, internal memory, network interface card with 1/3, if only 2 operation systems System is being run, then each accounts for once dividing completion with the half of physical resource, each physical resource, will be only by affiliated operating system Account for, ensure system operation security.
From above-described embodiment as can be seen that relative to prior art, the unit while operation provided in above-described embodiment is more The method and system of operating system, make full use of server resource, and multiple operating system, each operation are installed under separate unit physical machine System can be independently booted up that startup can also be simultaneously directed, and each self-operating is not interfere with each other, and improves the utilization of resource Rate, and after stability is high, and the hardware for being under the jurisdiction of some system goes wrong, only influences an operating system, will not cause All operating system collapses, so improving the serious forgiveness of system, improve the service behaviour of unit;
In another embodiment, the physical resources such as CPU, internal memory, network interface card are divided, distributes to each behaviour Make system, each operating system is taken alone, parallel operation, furthermore achieved that high resource utilization, high stability, height The purpose of performance;
Meanwhile in another embodiment, according to the performance pressures of different operating system, in a certain operating system Partial task point is handled toward other operating system assistances when busy, further increases resource utilization and systematic function.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read-only storage, disk or CD Deng.Alternatively, all or part of step of above-described embodiment can also be realized using one or more integrated circuits.Accordingly Ground, each module/unit in above-described embodiment can be realized in the form of hardware, can also use the shape of software function module Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the present invention.According to The content of the invention of the present invention, can also there is other various embodiments, in the case of without departing substantially from spirit of the invention and its essence, be familiar with Those skilled in the art works as can make various corresponding changes and deformation according to the present invention, all in the spirit and principles in the present invention Within, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (6)

1. a kind of unit runs multiple operating system method simultaneously, including:
It is on one or more disks of unit, and for each operation correspondingly by each system in multiple operating systems System generates the disk boot partition of its shared disk and points to the finger of the disk boot partition of disk shared by other operating systems Pin list;
The server of the unit is according to shared by disk boot partition startup is whole or selection starts some operating system Disk, to start all or select to start some operating system;
Physical source distributing is given to the operating system of each startup, the operating system of each startup takes the physics money for its distribution The respective independent operating in source;
The situation that the mainboard firmware of the server takes physical resource to each operating system being currently running is monitored, such as The physical resource that the operating system of fruit one takes is more than default threshold value, then the partial task of the operating system is given into other startups Operating system, other start operating systems by the partial task processing after the completion of, result is returned into the operation System.
2. the method as described in claim 1, it is characterised in that:
Disk of the server according to shared by the disk boot partition selects some operating system of startup, to start some behaviour Make system, including:
The Boot loader of the disk boot partition of disk starts institute shared by described some described operating system of server operation The disk shared by some operating system is stated, to start some described operating system.
3. the method as described in claim 1, it is characterised in that:
Disk of the server according to shared by the disk boot partition starts all operationss system, to start all operationss system System, including:
The startup of server whole disk, to start all operationss system;Or
The Boot loader of the disk boot partition of disk starts institute shared by described some described operating system of server operation The disk shared by some operating system is stated, further according to other operating systems recorded in the pointer list of some operating system The disk boot partition of shared disk, starts disk shared by other operating systems, to start other operating systems.
4. the system that a kind of unit runs multiple operating system simultaneously, including:
Multiple operating system installs module, for each system in multiple operating systems to be correspondingly arranged on into one or more of unit On individual disk, and generate the disk boot partition of its shared disk for each operating system and point to shared by other operating systems The pointer list of the disk boot partition of disk;
Multiple operating system starts guiding module, starts some operation for starting all according to the disk boot partition or selecting Disk shared by system, to start all or select to start some operating system;
Physical source distributing module, for physical source distributing to be given to the operating system of each startup, the operation system of each startup System takes the respective independent operating of physical resource for its distribution;
Mainboard firmware, the situation for taking physical resource to each operating system being currently running are monitored, if a behaviour The physical resource for making system occupancy is more than default threshold value, then the partial task of the operating system is given to the operation of other startups System;
Other operating systems started, for after the partial task of the operating system is received, by the partial task After the completion of processing, result is returned into the operating system.
5. system as claimed in claim 4, it is characterised in that:
The multiple operating system starts guiding module, for being selected to start some operating system institute according to the disk boot partition The disk accounted for, to start some operating system, including:
The Boot loader of the disk boot partition of disk starts some described operation shared by some described operating system of operation Disk shared by system, to start some described operating system.
6. system as claimed in claim 4, it is characterised in that:
The multiple operating system starts guiding module, shared by starting all operationss system according to the disk boot partition Disk, to start all operationss system, including:
Start whole disks, to start all operationss system;Or
The Boot loader of the disk boot partition of disk starts some described operation shared by some described operating system of operation Disk shared by system, further according to disk shared by other operating systems recorded in the pointer list of some operating system Disk boot partition, start disk shared by other operating systems, to start other operating systems.
CN201410363942.6A 2014-07-28 2014-07-28 A kind of unit runs the method and system of multiple operating system simultaneously Active CN104156270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410363942.6A CN104156270B (en) 2014-07-28 2014-07-28 A kind of unit runs the method and system of multiple operating system simultaneously

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410363942.6A CN104156270B (en) 2014-07-28 2014-07-28 A kind of unit runs the method and system of multiple operating system simultaneously

Publications (2)

Publication Number Publication Date
CN104156270A CN104156270A (en) 2014-11-19
CN104156270B true CN104156270B (en) 2018-02-06

Family

ID=51881775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410363942.6A Active CN104156270B (en) 2014-07-28 2014-07-28 A kind of unit runs the method and system of multiple operating system simultaneously

Country Status (1)

Country Link
CN (1) CN104156270B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516762A (en) * 2015-01-16 2015-04-15 浪潮电子信息产业股份有限公司 Mounting method of a plurality of coexistent server operating systems
CN104657218A (en) * 2015-02-10 2015-05-27 西安酷派软件科技有限公司 Multi-operation system operation method and device and terminal
CN106557690B (en) * 2016-11-29 2019-10-22 北京元心科技有限公司 Method and apparatus for managing multi-container system
CN107168837A (en) * 2017-05-15 2017-09-15 郑州云海信息技术有限公司 A kind of automatic switchover OS method of testing and test system
CN107256171B (en) * 2017-06-19 2021-02-23 苏州浪潮智能科技有限公司 Multi-system installation and switching method and system based on BIOS

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7017039B2 (en) * 2002-12-31 2006-03-21 John Alan Hensley Method of booting a computer operating system to run from a normally unsupported system device
ES2315469T3 (en) * 2003-04-09 2009-04-01 Virtuallogix Sa OPERATING SYSTEMS.
CN101872304A (en) * 2010-06-10 2010-10-27 复旦大学 Clustered operation system technology based method for improving scalability of many-core application program
CN101957769A (en) * 2010-09-27 2011-01-26 浙江大学 MID (Mobile Internet Device) multiple operating system parallelizing method
CN103810109B (en) * 2012-11-15 2017-08-04 华为技术有限公司 Memory allocation method, apparatus and system

Also Published As

Publication number Publication date
CN104156270A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104156270B (en) A kind of unit runs the method and system of multiple operating system simultaneously
CN101206581B (en) System and method for guiding using external memory device
US9811369B2 (en) Method and system for physical computer system virtualization
US10768827B2 (en) Performance throttling of virtual drives
US11366744B2 (en) Partitioning and orchestrating infrastructure software deployments for safety and agility across diverse configurations and hardware types
US9223623B2 (en) Dynamic service resource control
CN103853664B (en) A kind of method and electronic equipment for realizing multiple operating system
US20120216199A1 (en) Providing a virtual machine
KR102313432B1 (en) Management of multi-single-tenant SaaS services
JP6366726B2 (en) Method and apparatus for provisioning a template-based platform and infrastructure
US9541980B2 (en) Operation management device, operation management method, and recording medium
CN110750336B (en) OpenStack virtual machine memory hot-expanding method
CN103744710A (en) Installation method and system of operating systems
JP5966466B2 (en) Backup control method and information processing apparatus
CN104657216B (en) The resource allocation methods and device of a kind of resource pool
CN107766122B (en) Method and device for setting available memory space of host machine
CN106325972B (en) Virtual machine management method and network equipment
US10789082B2 (en) Execution of multiple operating systems without rebooting
JP5519583B2 (en) Virtual machine control system, virtual machine control device, virtual machine control method and program
CN114489517A (en) Offline accelerated migration method, system, equipment and storage medium
US11797729B2 (en) Hyper-converged infrastructure (HCI) operation predictor
CN109271179B (en) Virtual machine application program management method, device, equipment and readable storage medium
US20160139850A1 (en) Managing method of storage device, computer system and storage medium
JP2011248616A (en) Server system and method for selecting migration system for virtual server
CN111506389A (en) Virtual machine starting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant