CN111708553A - Terminal and system for background updating of desktop mirror image - Google Patents

Terminal and system for background updating of desktop mirror image Download PDF

Info

Publication number
CN111708553A
CN111708553A CN202010441517.XA CN202010441517A CN111708553A CN 111708553 A CN111708553 A CN 111708553A CN 202010441517 A CN202010441517 A CN 202010441517A CN 111708553 A CN111708553 A CN 111708553A
Authority
CN
China
Prior art keywords
desktop
image
mirror image
information
management 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
CN202010441517.XA
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.)
Xi'an Leifeng Electronic Technology Co ltd
Original Assignee
Xi'an Leifeng Electronic 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 Xi'an Leifeng Electronic Technology Co ltd filed Critical Xi'an Leifeng Electronic Technology Co ltd
Priority to CN202010441517.XA priority Critical patent/CN111708553A/en
Publication of CN111708553A publication Critical patent/CN111708553A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention belongs to the technical field of IDV (IDV) and VOI (virtual object interface) architecture and virtualization of a cloud desktop, and discloses a terminal and a system for updating a desktop image at a background. The desktop management system is used for communicating with the server and communicating with the mirror image management system. The invention can update the operating system in use under VID and VOI modes, which is convenient for users to use and can reasonably allocate resources.

Description

Terminal and system for background updating of desktop mirror image
Technical Field
The invention belongs to the technical field of IDV (IDV) and VOI (virtual object infrastructure) architecture and virtualization of a cloud desktop, and particularly relates to a terminal and a system for updating a desktop image at a background.
Background
The traditional single terminal operating system is installed on a local hard disk, and is installed through equipment such as USB equipment and optical disks, and patches need to be updated after installation is completed. The operations of installing software, protecting viruses and the like all need operation of operation and maintenance workers one by one. In the case of many terminal devices, the workload is very large and the terminal devices are repeatedly operated.
The traditional multi-operating system installation and operation and maintenance updating process is complicated, the requirement on the skill of installation personnel is high, and errors and neglected installation are easy to occur. The huge workload can lead to low efficiency and reduced timeliness, and can suffer huge loss if problems such as virus invasion are encountered. Traditional operating system maintenance also includes operating system installation and maintenance under VDI, VOI architectures. The VDI technology is that a plurality of or one virtual disk is issued to a terminal, an independent operating system is installed in each virtual disk, then the virtual disk is used as a disk of a virtual machine on the terminal, and the virtual machine is started to enter the operating system. The VOI technology is to issue a plurality of or one virtual disk to a terminal, and an independent operating system is installed in each virtual disk. The operating system to be started can be specified in the terminal starting phase. The operating system in use cannot be updated in VID and VOI modes, and the operating system can be updated only when the operating system is shut down and is not used, so that the use of users is influenced and resources cannot be reasonably utilized. Therefore, combining the above problems and disadvantages, the technology of background updating the operating system in use based on the IDV and VOI architecture technology is very urgent.
Disclosure of Invention
The invention aims to provide a terminal and a system for updating a desktop mirror at a background, which are used for solving the problem that the operating system in use cannot be updated in the prior art.
In order to realize the task, the invention adopts the following technical scheme:
a terminal for updating a desktop mirror at background comprises a desktop management system and a mirror management system, wherein the desktop management system stores a first computer program, and the first computer program realizes the following steps when being executed by a processor:
step a 1: acquiring an update mirror image request sent by a server;
step a 2: carrying out validity check on the update mirror image request, if the request is legal, obtaining update mirror image information, wherein the update mirror image information comprises original mirror image information, differential mirror image information and desktop type, and if the request is illegal, sending error information to the server and ending;
step a 3: sending the updated image information obtained in the step a2 to an image management system;
the mirror image management system stores a second computer program, and the second computer program realizes the following steps when being executed by a processor:
step b 1: acquiring updated mirror image information sent by a desktop management system;
step b 2: carrying out validity check on the updated mirror image information, downloading the differential mirror image information and the desktop type from the server if the information is legal, and sending error information to the desktop management system and finishing if the information is illegal;
step b 3: judging the desktop type downloaded in the step b2, and if the desktop type is IDV, merging the images by using the differential image information and the original image after the desktop is shut down to complete the image updating of the desktop;
and if the desktop type is VOI, carrying out mirror image combination by using the difference mirror image information and the original mirror image when the desktop is started next time, and finishing mirror image updating of the desktop.
Further, the image updating request includes an original image file name, a differential image file name, an original image file hash value, a differential image file hash value, an original image file size, a differential image file size, a desktop type, original image file chain information, and differential image file chain information.
Further, the updated image information includes a name of the differential image file, a hash value of the differential image file, a size of the differential image file, a desktop type, and chained information of the differential image file.
Further, the validity check is hash value check, and by judging the relation between the hash value of the image file and a standard threshold, if the hash value is greater than or equal to the standard threshold, the image file is legal, otherwise, the image file is illegal.
Further, if the desktop type is IDV, the mirroring merging using the differential mirroring information after the desktop is powered off includes the following steps:
the mirror image management system starts a monitoring task to monitor the shutdown state of the virtual machine, performs a mirror image merging function after the virtual machine is shut down, merges the downloaded differential mirror image into the original mirror image, and completes the mirror image updating of the desktop, so that the purpose of updating the mirror image does not affect the use of a user is achieved.
Further, if the desktop type is VOI, then performing mirror merging using the difference mirror information when the desktop is started next time includes the following steps:
(1) configuring a bootloader to enable the bootloader to enter a mirror image management system after starting up the next time, and configuring the alias of the difference mirror image file into bootloader starting information;
(2) when the desktop is started next time, entering a mirror image management system according to the configured bootloader, acquiring a difference mirror image file from bootloader configuration information, and then merging the difference mirror image file and the original mirror image file;
(3) after the mirror image combination is completed, configuring a bootloader starting item to the desktop, then automatically restarting the terminal, reloading the desktop configuration item by the bootloader of the terminal, starting to enter the desktop which is already updated, and completing the background updating of the desktop mirror image in the VOI mode.
A background desktop mirror image updating system comprises a terminal and a server, wherein the terminal comprises a desktop management system and a mirror image management system, and the server is used for providing a mirror image file, sending an update mirror image request and communicating with the terminal.
Compared with the prior art, the invention has the following technical characteristics:
the invention can update the operating system in use under VID and VOI modes, which is convenient for users to use and can reasonably allocate resources. The invention needs to verify the hash value of the file when sending information each time, and enhances the safe application of the desktop.
Drawings
FIG. 1 is a flow diagram of a desktop management system implementation;
FIG. 2 is a flow chart of an implementation of the image management system.
Detailed Description
The technical words in the present solution are explained below:
desktop: the desktop is essentially an operating system packaged in an image, such as a windows system, a linux system, etc.
Mirroring: the virtual disk of the installed independent operating system can be started through a virtual machine or started on bare metal through a bootloader. The bare metal refers to a terminal without any operating system or virtualization software installed.
A terminal: refers to a computer having practical physical significance.
The user: the user can have a plurality of desktops, and the same user can only run one desktop on the same terminal at the same time.
A server: the system is an IDV and VOI architecture universal server side.
The embodiment discloses a terminal for updating a desktop image in a background, which comprises a desktop management system and an image management system, wherein the desktop management system stores a first computer program, and the first computer program realizes the following steps when being executed by a processor:
step a 1: acquiring an update mirror image request sent by a server;
step a 2: carrying out validity check on the update mirror image request, if the request is legal, obtaining update mirror image information, wherein the update mirror image information comprises original mirror image information, differential mirror image information and desktop type, and if the request is illegal, sending error information to the server and ending;
step a 3: sending the updated image information obtained in the step a2 to an image management system;
the mirror image management system stores a second computer program, and the second computer program realizes the following steps when being executed by a processor:
step b 1: acquiring updated mirror image information sent by a desktop management system;
step b 2: carrying out validity check on the updated mirror image information, downloading the differential mirror image information and the desktop type from the server if the information is legal, and sending error information to the desktop management system and finishing if the information is illegal;
step b 3: judging the desktop type downloaded in the step b2, and if the desktop type is IDV, merging the images by using the differential image information and the original image after the desktop is shut down to complete the image updating of the desktop;
and if the desktop type is VOI, carrying out mirror image combination by using the difference mirror image information and the original mirror image when the desktop is started next time, and finishing mirror image updating of the desktop.
Specifically, the update image request includes a name of the original image file, a name of the differential image file, a hash value of the original image file, a hash value of the differential image file, a size of the original image file, a size of the differential image file, a desktop type (VOI, IDV), chain information of the original image file, and chain information of the differential image file.
Specifically, the update image information includes a difference image file name, a hash value of the difference image file, a size of the difference image file, a desktop type (VOI, IDV), and chain information of the difference image file.
Specifically, the validity check is that the relation between the hash value of the image file and a standard threshold is calculated, and if the hash value is greater than or equal to the standard threshold, the image file is legal, otherwise, the image file is illegal.
Specifically, if the desktop type is IDV, the mirroring merging using the differential mirroring information after the desktop is powered off includes the following steps:
the mirror image management system starts a monitoring task to monitor the shutdown state of the virtual machine, performs a mirror image merging function after the virtual machine is shut down, merges the downloaded differential mirror image into the original mirror image, and completes the mirror image updating of the desktop, so that the purpose of updating the mirror image does not affect the use of a user is achieved.
Specifically, if the desktop type is VOI, then the following steps are included in the mirror merging by using the difference mirror information when the desktop is started next time:
(1) configuring a bootloader to enable the bootloader to enter a mirror image management system after starting up the next time, and configuring the alias of the difference mirror image file into bootloader starting information;
(2) when the desktop is started next time, entering a mirror image management system according to the configured bootloader, acquiring a difference mirror image file from bootloader configuration information, and then merging the difference mirror image file and the original mirror image file;
(3) after the mirror image combination is completed, configuring a bootloader starting item to the desktop, then automatically restarting the terminal, reloading the desktop configuration item by the bootloader of the terminal, starting to enter the desktop which is already updated, and completing the background updating of the desktop mirror image in the VOI mode.
The embodiment discloses a system for background updating of desktop images, which comprises a terminal and a server, wherein the terminal comprises the desktop management system and the image management system, and the server is used for providing image files, sending an update image request and communicating with the terminal.
Example 1
A background desktop mirror image updating system comprises a terminal and a server, wherein the terminal comprises the desktop management system and the mirror image management system, and the server is used for providing a mirror image file, sending an update mirror image request and communicating with the terminal;
the working flow of the system is as follows:
(a) the user logs in the terminal, can deploy and download the desktops owned by the user, after finishing caching, select one of the desktops, open the desktop, after the desktop is started, the desktop management system is started;
(b) as shown in the figure, in step S1, after the desktop management system is started, a message monitoring thread is started, and a request for updating the desktop image sent by the server is received;
(c) the desktop management system checks the validity of the received message, executes step S21 in fig. 1 after the check fails, and sends an error message to the server. After the verification is passed, step S3 in fig. 1 is executed, the desktop management system packages the information (image file name, hash value) and desktop type of the original image and the differential image file analyzed in the message and sends the packaged information to the image management system, and then step S4 in fig. 1 is executed, and the execution result of the image management system is waited to be fed back to the server and the user.
(c) As shown in step S2 in fig. 1, as shown in step S1 in fig. 2, the image management system receives an image message that needs to be updated and is sent by the desktop management system;
(d) as shown in step S2 in fig. 2, the mirror management system checks the validity of the received message, and if the message is not valid, the mirror management system executes step S21 in fig. 2 to return an error message to the desktop management system. Step S3 in fig. 2 is executed after the verification is legal, the image management system starts the downloading of the image file, verifies the integrity of the file after the downloading is completed, and sends the message of the completion of the downloading to the desktop management system;
(e) then executing step S4 in fig. 2, determining the desktop type, if the desktop type is the IDV type, executing step S411 in fig. 2, starting a desktop running state monitoring thread by the image management system, merging the downloaded image files into the original image after the desktop is powered off, and powering off after merging is completed, so that background updating of the image is completed under the IDV type; if the type is VOI, step S421 in FIG. 2 is executed, the management mirror module sets the bootloader of the terminal to be booted next time to enter the mirror management system, and configures the name of the mirror file to be merged into the bootloader. And then waiting for the next startup of the terminal machine, executing the step S422 in the figure 2, entering a mirror image management system, executing the step S423 in the figure 2, starting a mirror image merging function by the mirror image management system, acquiring the name of the mirror image to be merged in the bootloader configuration file, and starting to merge the mirror image, as shown in the step S424 in the figure 2, after the mirror image merging is completed, setting the bootloader to start the desktop after the desktop is updated next time, and restarting the terminal, so that the updating of the desktop mirror image by the VOI type background is completed.
The method of the present invention may implement the above described functions in one or more programming languages. The related fields are virtualization technology, virtual disk merging and the like.
The operations of desktop making, deployment, starting, closing and the like mainly relate to virtualization technology. The method comprises the steps that a terminal bottom operating system needs to be specially customized, a virtual machine environment needs to be built, and relevant configuration needs to be customized.

Claims (7)

1. A terminal for background updating of desktop images is characterized by comprising a desktop management system and an image management system, wherein the desktop management system stores a first computer program, and the first computer program realizes the following steps when being executed by a processor:
step a 1: acquiring an update mirror image request sent by a server;
step a 2: carrying out validity check on the update mirror image request, if the request is legal, obtaining update mirror image information, wherein the update mirror image information comprises original mirror image information, differential mirror image information and desktop type, and if the request is illegal, sending error information to the server and ending;
step a 3: sending the updated image information obtained in the step a2 to an image management system;
the mirror image management system stores a second computer program, and the second computer program realizes the following steps when being executed by a processor:
step b 1: acquiring updated mirror image information sent by a desktop management system;
step b 2: carrying out validity check on the updated mirror image information, downloading the differential mirror image information and the desktop type from the server if the information is legal, and sending error information to the desktop management system and finishing if the information is illegal;
step b 3: judging the desktop type downloaded in the step b2, and if the desktop type is IDV, merging the images by using the differential image information and the original image after the desktop is shut down to complete the image updating of the desktop;
and if the desktop type is VOI, carrying out mirror image combination by using the difference mirror image information and the original mirror image when the desktop is started next time, and finishing mirror image updating of the desktop.
2. The terminal for background updating of a desktop image according to claim 1, wherein the update image request comprises a name of an original image file, a name of a differential image file, a hash value of the original image file, a hash value of the differential image file, a size of the original image file, a size of the differential image file, a desktop type, chain information of the original image file, and chain information of the differential image file.
3. The terminal for background updating of a desktop image as claimed in claim 1, wherein the update image information includes a name of a differential image file, a hash value of the differential image file, a size of the differential image file, a desktop type, and chain information of the differential image file.
4. The terminal for background updating of a desktop image according to claim 1, wherein the validity check is a hash value check, and by determining a relationship between a hash value of the image file and a standard threshold, if the hash value is greater than or equal to the standard threshold, the image file is legal, otherwise the image file is illegal.
5. The terminal for background updating of a desktop image according to claim 1, wherein if the desktop type is IDV, performing image merging using the differential image information after the desktop is powered off includes the following steps:
the mirror image management system starts a monitoring task to monitor the shutdown state of the virtual machine, performs a mirror image merging function after the virtual machine is shut down, merges the downloaded differential mirror image into the original mirror image, and completes the mirror image updating of the desktop, so that the purpose of updating the mirror image does not affect the use of a user is achieved.
6. The terminal for background updating of a desktop image according to claim 1, wherein if the desktop type is VOI, then performing image merging using the difference image information when the desktop is booted next time comprises the following steps:
(1) configuring a bootloader to enable the bootloader to enter a mirror image management system after starting up the next time, and configuring the alias of the difference mirror image file into bootloader starting information;
(2) when the desktop is started next time, entering a mirror image management system according to the configured bootloader, acquiring a difference mirror image file from bootloader configuration information, and then merging the difference mirror image file and the original mirror image file;
(3) after the mirror image combination is completed, configuring a bootloader starting item to the desktop, then automatically restarting the terminal, reloading the desktop configuration item by the bootloader of the terminal, starting to enter the desktop which is already updated, and completing the background updating of the desktop mirror image in the VOI mode.
7. A background desktop image updating system comprises a terminal and a server, wherein the terminal comprises a desktop management system and an image management system according to any one of claims 1 to 6, and the server is used for providing an image file, sending an image updating request and communicating with the terminal.
CN202010441517.XA 2020-05-22 2020-05-22 Terminal and system for background updating of desktop mirror image Pending CN111708553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010441517.XA CN111708553A (en) 2020-05-22 2020-05-22 Terminal and system for background updating of desktop mirror image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010441517.XA CN111708553A (en) 2020-05-22 2020-05-22 Terminal and system for background updating of desktop mirror image

Publications (1)

Publication Number Publication Date
CN111708553A true CN111708553A (en) 2020-09-25

Family

ID=72537457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010441517.XA Pending CN111708553A (en) 2020-05-22 2020-05-22 Terminal and system for background updating of desktop mirror image

Country Status (1)

Country Link
CN (1) CN111708553A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018875A (en) * 2019-04-10 2019-07-16 北京云创世联科技股份有限公司 A kind of desktop synchronization realizing method based on IDV
US20200012390A1 (en) * 2018-05-24 2020-01-09 Slack Technologies, Inc. System, method, and apparatus for maintaining and updating a common message user interface in a group based communication system
CN111008053A (en) * 2019-10-25 2020-04-14 西安雷风电子科技有限公司 Automatic synchronization method and device for virtual desktop

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200012390A1 (en) * 2018-05-24 2020-01-09 Slack Technologies, Inc. System, method, and apparatus for maintaining and updating a common message user interface in a group based communication system
CN110018875A (en) * 2019-04-10 2019-07-16 北京云创世联科技股份有限公司 A kind of desktop synchronization realizing method based on IDV
CN111008053A (en) * 2019-10-25 2020-04-14 西安雷风电子科技有限公司 Automatic synchronization method and device for virtual desktop

Similar Documents

Publication Publication Date Title
US20230297364A1 (en) System And Method For Upgrading Kernels In Cloud Computing Environments
US9996374B2 (en) Deployment and installation of updates in a virtual environment
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US9519472B2 (en) Automation of virtual machine installation by splitting an installation into a minimal installation and customization
US20180039507A1 (en) System and method for management of a virtual machine environment
US11301280B2 (en) System and method for managing a monitoring agent in an operating system of a virtual computing instance
US8650556B2 (en) Virtual machine asynchronous patch management
CN105765534B (en) Virtual computing system and method
US20160188323A1 (en) System and method for customizing a deployment plan for a multi-tier application in a cloud infrastructure
US11210132B2 (en) Virtual machine migration in virtualization environment having different virtualization systems
KR20170022028A (en) Method and apparatus for security checking of image for container
CN108616384B (en) Centralized service management deployment tool and method
US10402216B1 (en) Live support integration in a virtual machine based development environment
CN101488173A (en) Method for measuring completeness of credible virtual field start-up files supporting non-delaying machine
CN112286633A (en) Virtual machine creating method, device, equipment and storage medium based on CloudStack platform
US10705895B2 (en) Device based automated tool integration for lifecycle management platform
US11379212B2 (en) Systems and methods for disaggregating system firmware configuration data into a management subsystem for seamless updates
CN113821220A (en) Installation method and device of linux operating system
US10394619B2 (en) Signature-based service manager with dependency checking
CA2997302C (en) Application migration
CN111708553A (en) Terminal and system for background updating of desktop mirror image
US10540175B2 (en) Up-level applications to a new OS
US20200142689A1 (en) System And Methods for Patch Management
CN116339761B (en) Method, system, storage medium and equipment for automatically constructing mirror image template
US20240036896A1 (en) Generating installation images based upon dpu-specific capabilities

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200925

RJ01 Rejection of invention patent application after publication