CN113886005A - Method for carrying out computer simulation on partitioned mirror image - Google Patents

Method for carrying out computer simulation on partitioned mirror image Download PDF

Info

Publication number
CN113886005A
CN113886005A CN202111068368.8A CN202111068368A CN113886005A CN 113886005 A CN113886005 A CN 113886005A CN 202111068368 A CN202111068368 A CN 202111068368A CN 113886005 A CN113886005 A CN 113886005A
Authority
CN
China
Prior art keywords
partition
file
mirror image
starting
operating system
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.)
Pending
Application number
CN202111068368.8A
Other languages
Chinese (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.)
Shanghai Zhenxiang Software Technology Co ltd
Original Assignee
Shanghai Zhenxiang Software 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 Shanghai Zhenxiang Software Technology Co ltd filed Critical Shanghai Zhenxiang Software Technology Co ltd
Priority to CN202111068368.8A priority Critical patent/CN113886005A/en
Publication of CN113886005A publication Critical patent/CN113886005A/en
Pending legal-status Critical Current

Links

Images

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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0667Virtualisation aspects at data level, e.g. file, record or object virtualisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of virtual mirror images, in particular to a method for carrying out computer simulation on a partition mirror image, which maps the partition mirror image stored with an operating system into a local virtual hard disk in a read-only mode and is used for reading data of the virtual hard disk; generating a virtual machine file and a snapshot related to the virtual hard disk according to the attribute of an operating system in the partition mirror image; preparing a boot partition file containing a starting sector, and modifying and storing partition information of the boot partition file according to the selected partition mirror image; loading a corresponding vmdk file in the snapshot, and adding and storing the boot partition file into the vmdk file; and starting the virtual machine file through the simulation tool, and operating the successfully simulated operating system after starting. The method and the device can normally start the operating system after the corresponding boot partition file is added, and can analyze and operate the operating system contained in the partition mirror image through the virtual machine, so that the method and the device are simple and convenient.

Description

Method for carrying out computer simulation on partitioned mirror image
Technical Field
The invention relates to the technical field of virtual mirror images, in particular to a method for carrying out computer simulation on a partition mirror image.
Background
A virtual machine refers to a particular piece of software in the architecture of computer science that creates an environment between a computer platform and an end user who operates other software based on the environment created by the virtual machine's software. A Virtual Machine (VM) is an emulator of a computer system that provides the functionality of a physical computer by software emulating a complete computer system with the functionality of a complete hardware system, operating in a completely isolated environment. The virtual machine provides an environment for the simulation of the mirror image, provides a hardware simulation environment required by an original system, and also provides conditions for the simulation and the operation.
At present, when the simulation is performed by the simulation tool, the mirror image integrity needs to be met, namely, the conditions necessary for starting a computer, such as MBR (membrane biological reactor), system partition and the like, are included, so that the simulation tool can correctly simulate the mirror image and display the mirror image to a user in a what you see is what you get way. However, if there is only one partition image, a single partition image without the MBR cannot be emulated normally. In view of this, we propose a method for computer simulation of a partitioned image.
Disclosure of Invention
The present invention is directed to a method for performing computer simulation on a partitioned mirror image, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of computer simulating a partitioned image, the method comprising the steps of:
step 1: creating virtual hard disks
Mapping a partition mirror image stored with an operating system into a local virtual hard disk in a read-only mode, wherein the partition mirror image is used for reading data of the virtual hard disk;
step 2: creating virtual machine files and snapshots
Generating a virtual machine file and a snapshot related to the virtual hard disk according to the attribute of the operating system in the partition mirror image;
and step 3: modifying partition information
Preparing a boot partition file containing a starting sector, and modifying and storing partition information of the boot partition file according to the selected partition mirror image;
and 4, step 4: adding boot partition files
Loading a corresponding vmdk file in the snapshot, and adding the boot partition to the vmdk file and storing;
and 5: initiating simulation tools
And starting the virtual machine file through the simulation tool, and operating the successfully simulated operating system after starting.
Preferably, in step 3, the partition information includes: the method comprises the following steps of guiding marks, partition starting channels, partition starting sectors, partition starting cylindrical surfaces, partition types, partition ending magnetic heads, partition ending sectors, partition ending cylindrical surfaces, sectors used before the partition and the number of the sectors of the partition.
Compared with the prior art, the invention has the beneficial effects that: the method for carrying out computer simulation on the partition mirror image comprises the steps of firstly mapping the partition mirror image into a local virtual hard disk, then creating a snapshot of the virtual hard disk through a virtual machine file, adding a corresponding boot partition file aiming at the snapshot, filling conditions depending on starting of an operating system in the partition mirror image, finally starting the virtual machine file of the partition mirror image through a simulation tool, displaying the operating system contained in the original partition mirror image to a user, and operating the system by the user to achieve the purpose of what you see is what you get. The method and the device can normally start the operating system after the corresponding boot partition file is added, and can analyze and operate the operating system contained in the partition mirror image through the virtual machine, so that the method and the device are simple and convenient.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A method of computer simulation of a partitioned image, as shown in fig. 1, comprising the steps of:
step 1: creating virtual hard disks
Mapping a partition image stored with an operating system into a local virtual hard disk in a read-only manner, and keeping image files and data in the original partition image from being tampered, wherein during the process of creating the virtual hard disk, one or more partition images are available, but the first partition image to be created needs to be stored with the operating system;
step 2: creating virtual machine files and snapshots
Generating a virtual machine file and a snapshot related to the virtual hard disk according to the attribute of an operating system in the partition mirror image;
and step 3: modifying partition information
Preparing a boot partition file containing a boot sector, modifying and storing partition information of the boot partition file according to the selected partition image, wherein the partition information comprises: the method comprises the following steps of (1) guiding a mark, a partition starting sector, a partition starting cylindrical surface, a partition type, a partition ending magnetic head, a partition ending sector, a partition ending cylindrical surface, a sector used before the partition and the number of the sectors of the partition;
and 4, step 4: adding boot partition files
Loading a corresponding vmdk file in the snapshot, and adding and storing the boot partition to the vmdk file;
and 5: initiating simulation tools
And (3) starting the virtual machine file through the simulation tool, operating the operating system which is successfully simulated after the virtual machine file is started, recording all write operations in the snapshot according to the characteristics of the snapshot, and not influencing the original partition mirror image in the step (1).
The method is executed through the content, the partition mirror image is firstly mapped into a local virtual hard disk, then a snapshot of the virtual hard disk is created through a virtual machine file, a corresponding boot partition file is added according to the snapshot, conditions depending on starting of an operating system in the partition mirror image are supplemented, finally the virtual machine file of the partition mirror image can be started through a simulation tool, the operating system contained in the original partition mirror image is displayed to a user, and the user can operate the system, so that the purpose of what you see is what you get is achieved. The method and the device can normally start the operating system after the corresponding boot partition file is added, and can analyze and operate the operating system contained in the partition mirror image through the virtual machine, so that the method and the device are simple and convenient.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and the preferred embodiments of the present invention are described in the above embodiments and the description, and are not intended to limit the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (2)

1. A method for computer simulation of a partitioned image, the method comprising the steps of:
step 1: creating virtual hard disks
Mapping a partition mirror image stored with an operating system into a local virtual hard disk in a read-only mode, wherein the partition mirror image is used for reading data of the virtual hard disk;
step 2: creating virtual machine files and snapshots
Generating a virtual machine file and a snapshot related to the virtual hard disk according to the attribute of the operating system in the partition mirror image;
and step 3: modifying partition information
Preparing a boot partition file containing a starting sector, and modifying and storing partition information of the boot partition file according to the selected partition mirror image;
and 4, step 4: adding boot partition files
Loading a corresponding vmdk file in the snapshot, and adding the boot partition to the vmdk file and storing;
and 5: initiating simulation tools
And starting the virtual machine file through the simulation tool, and operating the successfully simulated operating system after starting.
2. The method for computer simulation of a partitioned image as claimed in claim 1, wherein in step 3, the partition information comprises: the method comprises the following steps of guiding marks, partition starting channels, partition starting sectors, partition starting cylindrical surfaces, partition types, partition ending magnetic heads, partition ending sectors, partition ending cylindrical surfaces, sectors used before the partition and the number of the sectors of the partition.
CN202111068368.8A 2021-09-13 2021-09-13 Method for carrying out computer simulation on partitioned mirror image Pending CN113886005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111068368.8A CN113886005A (en) 2021-09-13 2021-09-13 Method for carrying out computer simulation on partitioned mirror image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111068368.8A CN113886005A (en) 2021-09-13 2021-09-13 Method for carrying out computer simulation on partitioned mirror image

Publications (1)

Publication Number Publication Date
CN113886005A true CN113886005A (en) 2022-01-04

Family

ID=79009235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111068368.8A Pending CN113886005A (en) 2021-09-13 2021-09-13 Method for carrying out computer simulation on partitioned mirror image

Country Status (1)

Country Link
CN (1) CN113886005A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117289956A (en) * 2023-10-12 2023-12-26 北京首都在线科技股份有限公司 Mirror image manufacturing method, apparatus, electronic device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117289956A (en) * 2023-10-12 2023-12-26 北京首都在线科技股份有限公司 Mirror image manufacturing method, apparatus, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US8789069B2 (en) On-the-fly replacement of physical hardware with emulation
US5745738A (en) Method and engine for automating the creation of simulations for demonstrating use of software
CN110941515B (en) Host backup reconstruction method, device, server and storage medium
US10275157B2 (en) Metadata storage in unused portions of a virtual disk file
US5794013A (en) System and method for testing computer components in development environments
CN113886005A (en) Method for carrying out computer simulation on partitioned mirror image
US9195411B2 (en) SD card memory tool
CN112596950A (en) Virtual machine data backup method, device, equipment and storage medium
US7500082B2 (en) Automating the testing of software or hardware components by dynamically creating virtual storage devices on a simulated system bus in a physical computer system
US20070294332A1 (en) Processing device for end customer operation
CN107861795B (en) Method, system and device for simulating physical TCM chip and readable storage medium
CN116540929A (en) Virtualized reading method and device of disk array, electronic equipment and storage medium
CN114138424B (en) Virtual machine memory snapshot generation method and device and electronic equipment
US7024493B1 (en) Bootable CD for transferring files independently of computer operating systems
US6675317B2 (en) Method and system for determining erase procedures run on a hard drive
CN101620540A (en) Method for installing computer system
JP3268602B2 (en) Game console system using memory cartridge and optical disk memory
CN111063012A (en) Animation character display method and device, electronic equipment and storage medium
US20060206631A1 (en) Data duplication method and system used between USB devices
CN111399774A (en) Data processing method and device based on snapshot under distributed storage system
WO2005101202A3 (en) Method for the software emulation of the hard disks of a computer platform at the operating system thereof, with on-the-fly parameter-adaptive management of read and write requests
CN111459849B (en) Memory setting method and device, electronic equipment and storage medium
JP3290170B2 (en) Game console system using memory cartridge and optical disk memory
CN117215963B (en) Simulator program checkpoint saving and restoring method, system and related equipment
US20080028173A1 (en) Soft media changer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination