CN105786489B - 一种安全无状态的虚拟化计算节点的构建方法 - Google Patents

一种安全无状态的虚拟化计算节点的构建方法 Download PDF

Info

Publication number
CN105786489B
CN105786489B CN201610091134.8A CN201610091134A CN105786489B CN 105786489 B CN105786489 B CN 105786489B CN 201610091134 A CN201610091134 A CN 201610091134A CN 105786489 B CN105786489 B CN 105786489B
Authority
CN
China
Prior art keywords
configuration file
configuration
operating system
subregion
safety
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
CN201610091134.8A
Other languages
English (en)
Other versions
CN105786489A (zh
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.)
Shandong Qianyun Qichuang Information Technology Co Ltd
Original Assignee
Shandong Qianyun Qichuang Information Technology 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 Shandong Qianyun Qichuang Information Technology Co Ltd filed Critical Shandong Qianyun Qichuang Information Technology Co Ltd
Priority to CN201610091134.8A priority Critical patent/CN105786489B/zh
Publication of CN105786489A publication Critical patent/CN105786489A/zh
Application granted granted Critical
Publication of CN105786489B publication Critical patent/CN105786489B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/74Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information operating in dual or compartmented mode, i.e. at least one secure mode

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种安全无状态的虚拟化计算节点的构建方法,包括以下步骤:将操作系统安装在磁盘的系统分区上,设置单独的配置分区以存放需要修改的配置文件;按照定制好的配置文件列表和目录列表把默认的配置文件和目录复制到配置分区;把系统分区上的操作系统加载到内存中运行,把配置分区中的配置文件按照指定规则挂载到操作系统中真正使用此配置文件的位置;操作系统自动将修改后的配置文件写到配置分区的对应文件上,把系统分区中的系统进行升级,配置文件分区保持不变。本发明能使得用户能够修改系统的部分配置文件,又能够实现系统重启之后关键的系统文件能够被还原到安装时的状态,保证系统的安全。

Description

一种安全无状态的虚拟化计算节点的构建方法
技术领域
本发明涉及一种安全无状态的虚拟化计算节点的构建方法。
背景技术
在虚拟化系统的构建过程中会涉及到计算节点的构建,计算节点处在这个虚拟化架构的核心位置上,主要运行虚拟化的核心程序,计算节点是否能有稳定高效的运行涉及到这个系统的运行效率的稳定性。
现有的计算节点的构建方式一般有两种,一种是把操作系统和相应的虚拟化程序安装到硬盘上,系统启动后用户的修改立刻保存到硬盘上,下次重新启动系统后用户的修改仍然有效。另外一种是把操作系统和相应的虚拟化程序安装到硬盘上,系统启动后把硬盘的系统和应用程序全部加载到内存,用户在系统中的任何修改都保存到了内存中,下次重新启动系统后用户的修改被还原了,即不保存用户的修改。
以上两种构建方式各有优缺点,前一种构建方式的优点是用户可以根据自己的需求修改系统,缺点是用户如果误修改了系统的某些配置导致系统重启后系统的某些功能不可用甚至整个系统无法运行;后一种构建方式的优点是安全,无论用户如何修改系统文件,系统重启后都能还原到最初的安装状态,缺点是用户不能根据自己的需求进行定制修改系统。
发明内容
本发明为了解决上述问题,提出了一种安全无状态的虚拟化计算节点的构建方法,该方法既能使得用户能够修改系统的部分配置文件,又能够实现系统重启之后关键的系统文件能够被还原到安装时的状态,保证系统的安全。
为了实现上述目的,本发明采用如下技术方案:
一种安全无状态的虚拟化计算节点的构建方法,包括以下步骤:
(1)将操作系统安装在磁盘的系统分区上,设置单独的配置分区以存放需要修改的配置文件;
(2)按照定制好的配置文件列表和目录列表把默认的配置文件和目录复制到配置分区;
(3)把系统分区上的操作系统加载到内存中运行,把配置分区中的配置文件按照指定规则挂载到操作系统中真正使用此配置文件的位置;
(4)操作系统自动将修改后的配置文件写到配置分区的对应文件上,重启操作系统,保存修改的配置文件,初始化其他文件;
(5)把系统分区中的系统进行升级,配置文件分区保持不变。
所述步骤(1)中,操作系统中定制好用户修改的配置文件列表和目录列表。
所述步骤(3)中,系统分区上的操作系统加载到内存中运行,并且这个操作系统被加载为只读的操作系统,用户无法修改系统中的系统文件。
所述步骤(3)中,在使用用户的配置文件之前,把配置分区中的配置文件按照指定规则挂载到操作系统中用户真正使用此配置文件的位置。
所述步骤(3)中,配置分区中的配置文件按照指定规则挂载到操作系统时,配置文件用户能修改。
所述步骤(4)中,重启操作系统,用户修改的配置文件被保存,整个操作系统中的其余文件被还原为初始状态。
本发明的有益效果为:
(1)用户安装的操作系统中可读写的配置文件是可以定制的,用户定制的配置文件是可以被修改的;
(2)用户安装的操作系统中除了定制的配置文件,其余的全部是只读的;
(3)既能使得用户能够修改系统的部分配置文件,又能够实现系统重启之后关键的系统文件能够被还原到安装时的状态,保证系统的安全;
(4)既保证了系统的安装稳定又给用户足够的灵活性来定制自己的系统。
附图说明
图1是本发明的方法流程图。
具体实施方式:
下面结合附图与实施例对本发明作进一步说明。
如图1所示,一种安全无状态的虚拟化计算节点的构建方法,包括以下步骤:
系统的定制和安装过程、系统的使用过程、系统的升级过程。更详细的操作步骤如下:
其中系统的定制和安装过程为:
(1)定制用户要安装的操作系统,在定制过程中定制好用户可以修改的配置文件列表和目录列表。
(2)安装操作系统到磁盘的系统分区上,另外创建单独的配置分区用来存放用户需要修改的配置文件。
(3)安装操作系统的过程中按照定制好的配置文件列表和目录列表把默认的用户配置文件和目录复制到配置分区。
(4)关闭操作系统
系统的使用过程包括:
(1)启动操作系统。
(2)启动操作系统的过程是,把系统分区上的操作系统加载到内存中运行,并且这个操作系统被加载为只读的操作系统,用户无法修改系统中的系统文件。
(3)系统启动过程中,在使用用户的配置文件之前,把配置分区中的配置文件按照指定规则挂载到操作系统中用户真正使用此配置文件的位置。这部分配置文件用户是可以修改的。
(4)用户修改配置文件,操作系统自动把用户的修改写到配置分区的对应文件上。
(5)重启操作系统,用户修改的配置文件被保存,整个操作系统中的其余文件被还原为初始状态。
系统的升级过程包括:
(1)把系统分区中的系统进行升级,配置文件分区保持不变。
上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。

Claims (6)

1.一种安全无状态的虚拟化计算节点的构建方法,其特征是:包括以下步骤:
(1)将操作系统安装在磁盘的系统分区上,设置单独的配置分区以存放需要修改的配置文件;
(2)按照定制好的配置文件列表和目录列表把默认的配置文件和目录复制到配置分区;
(3)把系统分区上的操作系统加载到内存中运行,把配置分区中的配置文件按照指定规则挂载到操作系统中真正使用此配置文件的位置;
(4)操作系统自动将修改后的配置文件写到配置分区的对应文件上,重启操作系统,保存修改的配置文件,初始化其他文件;
(5)把系统分区中的系统进行升级,配置文件分区保持不变。
2.如权利要求1所述的一种安全无状态的虚拟化计算节点的构建方法,其特征是:所述步骤(1)中,操作系统中定制好用户修改的配置文件列表和目录列表。
3.如权利要求1所述的一种安全无状态的虚拟化计算节点的构建方法,其特征是:所述步骤(3)中,系统分区上的操作系统加载到内存中运行,并且这个操作系统被加载为只读的操作系统,用户无法修改系统中的系统文件。
4.如权利要求1所述的一种安全无状态的虚拟化计算节点的构建方法,其特征是:所述步骤(3)中,在使用用户的配置文件之前,把配置分区中的配置文件按照指定规则挂载到操作系统中用户真正使用此配置文件的位置。
5.如权利要求1所述的一种安全无状态的虚拟化计算节点的构建方法,其特征是:所述步骤(3)中,配置分区中的配置文件按照指定规则挂载到操作系统时,用户能修改配置文件。
6.如权利要求1所述的一种安全无状态的虚拟化计算节点的构建方法,其特征是:所述步骤(4)中,重启操作系统,用户修改的配置文件被保存,整个操作系统中的其余文件被还原为初始状态。
CN201610091134.8A 2016-02-18 2016-02-18 一种安全无状态的虚拟化计算节点的构建方法 Active CN105786489B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610091134.8A CN105786489B (zh) 2016-02-18 2016-02-18 一种安全无状态的虚拟化计算节点的构建方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610091134.8A CN105786489B (zh) 2016-02-18 2016-02-18 一种安全无状态的虚拟化计算节点的构建方法

Publications (2)

Publication Number Publication Date
CN105786489A CN105786489A (zh) 2016-07-20
CN105786489B true CN105786489B (zh) 2019-05-17

Family

ID=56402772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610091134.8A Active CN105786489B (zh) 2016-02-18 2016-02-18 一种安全无状态的虚拟化计算节点的构建方法

Country Status (1)

Country Link
CN (1) CN105786489B (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463467B (zh) * 2017-08-24 2020-10-02 浪潮(北京)电子信息产业有限公司 一种可快速还原虚拟化平台的方法及系统
CN113448642B (zh) * 2020-03-11 2022-11-15 成都鼎桥通信技术有限公司 系统文件访问方法、装置和电子设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461687A (zh) * 2014-11-20 2015-03-25 华为技术有限公司 一种虚拟机配置信息的存储方法及装置
CN105138362A (zh) * 2015-08-20 2015-12-09 浪潮(北京)电子信息产业有限公司 一种linux系统下保存用户配置的方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501296B2 (en) * 2012-05-18 2016-11-22 Ca, Inc. Hypervisor automation manager for starting an operation system with customization data from a disk image

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461687A (zh) * 2014-11-20 2015-03-25 华为技术有限公司 一种虚拟机配置信息的存储方法及装置
CN105138362A (zh) * 2015-08-20 2015-12-09 浪潮(北京)电子信息产业有限公司 一种linux系统下保存用户配置的方法及装置

Also Published As

Publication number Publication date
CN105786489A (zh) 2016-07-20

Similar Documents

Publication Publication Date Title
US7721284B2 (en) Deployment of multiple embedded operating system components
US9021457B2 (en) Method and system for dynamically resizing enclosed storage device partitions
CN102521289B (zh) 一种文件同步方法、装置及系统
CN107632937B (zh) 一种对虚拟机集群进行测试的方法、装置、可读存储介质
CN102053831A (zh) 一种Linux操作系统的定制方法及系统
CN107463467B (zh) 一种可快速还原虚拟化平台的方法及系统
JP6198229B2 (ja) 並列化可能で信頼できるインストールのためのインストールエンジン及びパッケージフォーマット
CN105786489B (zh) 一种安全无状态的虚拟化计算节点的构建方法
US9086938B2 (en) Information processing apparatus, control method thereof, and storage medium
CN108037932B (zh) Spi-nand的配置文件获取方法和装置
JP5921292B2 (ja) 情報処理装置、制御方法、およびプログラム
US9513928B2 (en) Method of operating multiple operating systems and the electronic device thereof
EP2074508A2 (en) Environment state changes to alter functionality
CN104268097A (zh) 一种元数据处理方法及系统
CN104461612B (zh) 一种数据处理方法及装置
KR101576370B1 (ko) 컴퓨터 시스템의 원격 복원 시스템 및 그 방법, 그리고 기록한 컴퓨터로 읽어 들일 수 있는 기록매체
CN102323943A (zh) 基于虚拟机的数据存储方法及系统
CN102164314A (zh) 一种基于数字电视终端中间件的数据管理方法及装置
CN106843921B (zh) 资源加载方法及装置
JP2015041179A (ja) デバイス装置、制御方法およびコンピュータプログラム
JP6102441B2 (ja) 仮想マシン管理方法及び装置
JP5317182B2 (ja) Pos端末、モジュールアップデート方法およびモジュールアップデートプログラム
CN104461382A (zh) 运行多个文件系统的文件服务器的内部写方法和服务器
CN105594184A (zh) 软件版本升级方法、装置及设备
CN107423166A (zh) 一种基于overlay文件系统的数据处理方法及系统

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A secure stateless construction method of virtual computing node

Effective date of registration: 20210129

Granted publication date: 20190517

Pledgee: Jinan Rural Commercial Bank Co.,Ltd. Runfeng sub branch

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021980000858

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220517

Granted publication date: 20190517

Pledgee: Jinan Rural Commercial Bank Co.,Ltd. Runfeng sub branch

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021980000858

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A secure stateless virtual computing node construction method

Effective date of registration: 20230131

Granted publication date: 20190517

Pledgee: Jinan Rural Commercial Bank Co.,Ltd. Runfeng sub branch

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2023980031824

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231222

Granted publication date: 20190517

Pledgee: Jinan Rural Commercial Bank Co.,Ltd. Runfeng sub branch

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2023980031824

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method for constructing secure and stateless virtualized computing nodes

Effective date of registration: 20231225

Granted publication date: 20190517

Pledgee: Jinan Rural Commercial Bank Co.,Ltd. Runfeng sub branch

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2023980074231

PE01 Entry into force of the registration of the contract for pledge of patent right