CN107992355A - A kind of method, apparatus and virtual machine of application deployment software - Google Patents

A kind of method, apparatus and virtual machine of application deployment software Download PDF

Info

Publication number
CN107992355A
CN107992355A CN201711395237.4A CN201711395237A CN107992355A CN 107992355 A CN107992355 A CN 107992355A CN 201711395237 A CN201711395237 A CN 201711395237A CN 107992355 A CN107992355 A CN 107992355A
Authority
CN
China
Prior art keywords
file
application program
filter driver
target disk
path
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.)
Granted
Application number
CN201711395237.4A
Other languages
Chinese (zh)
Other versions
CN107992355B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201711395237.4A priority Critical patent/CN107992355B/en
Publication of CN107992355A publication Critical patent/CN107992355A/en
Priority to PCT/CN2018/102285 priority patent/WO2019119850A1/en
Application granted granted Critical
Publication of CN107992355B publication Critical patent/CN107992355B/en
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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • 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/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

Disclosed herein is a kind of method, apparatus and virtual machine of application deployment software.The method of the application deployment software includes:With read-write mode carry target disk, file operation and registry operations are intercepted by file system filter driver, the actual installation path of application program is redirected on the subregion of the target disk, and the registry file by being created on the target disk preserves the registry operations record of the application program;The target disk of application program installation file and registry operations record is carried with read-only mode carry, the access intercepted by file system filter driver to application program operates and carries out re-orientation processes.The technical solution of this paper can simplify application deployment flow, improve deployment efficiency.

Description

A kind of method, apparatus and virtual machine of application deployment software
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method, apparatus and void of application deployment software Plan machine.
Background technology
Virtual desktop architecture (Virtual Desktop Infrastructure, abbreviation VDI) has obtained at present It is widely applied.VDI is not the desktop PC that an operation Windows operating system is configured to each user, but is each User creates a windows desktop image, and different users can obtain unification using unified windows desktop image Experience.By network, a general desktop environment can be disposed rapidly.One server can support many virtual desktops, The desktop operating system of end user is supplied to by the transmission of various agreements.
But desktop is not purpose, application program (Application, abbreviation on end user needs or desktop APP).In correlation technique, administrator is when making operating system template, embedded necessity software in the template.Virtual machine is used The installation of necessary software is completed while the installation operation system template of family.But this method is application program and operating system Binding, after operating system template is distributed to each virtual machine, each user oneself maintenance upgrade application program is very inconvenient.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of method, apparatus and virtual machine of application deployment software, energy Application deployment flow is enough simplified, improves deployment efficiency.
The embodiment of the present invention provides a kind of method of application deployment software, including:
With read-write mode carry target disk, file operation and registry operations are intercepted by file system filter driver, The actual installation path of application program is redirected on the subregion of the target disk, and by being created on the target disk The registry file built preserves the registry operations record of the application program;
The target disk of application program installation file and registry operations record is carried with read-only mode carry, passes through file The access that system filtration drive intercepts to application program operates and carries out re-orientation processes.
The embodiment of the present invention also provides a kind of device of application deployment software, including:
Diskware bag template construct module, for read-write mode carry target disk, being driven by file system filter It is dynamic to intercept file operation and registry operations, the actual installation path of application program is redirected to the subregion of the target disk On, and the registry file by being created on the target disk preserves the registry operations record of the application program;
Diskware bag template uses module, for carrying application program installation file and registration table with read-only mode carry The target disk of operation note, the access intercepted by file system filter driver to application program operate and redirect place Reason.
The embodiment of the present invention also provides a kind of virtual machine, including:
Memory, processor and it is stored in the application deployment software that can be run on the memory and on the processor Program, the program of the application deployment software realizes the step of the method for above-mentioned application deployment software when being performed by the processor Suddenly.
The embodiment of the present invention also provides a kind of computer-readable recording medium, it is characterised in that described computer-readable to deposit The program of application deployment software is stored with storage media, the program of the application deployment software is realized above-mentioned when being executed by processor The step of method of application deployment software.
Compared with correlation technique, the present invention provides a kind of method, apparatus and virtual machine of application deployment software, by one Unified all application program generation diskware bag templates of installation (renewal), virtual machine are hung by read-only mode on a independent disk Carry target disk (the independent magnetic where diskware bag template of carrying application program installation file and registry operations record Disk), the access intercepted by file system filter driver to application program operates and carries out re-orientation processes, and application program is actual Do not install on a virtual machine one by one, show and installed simply by redirection, therefore the deployment of second level can be reached Installation, so as to simplify application deployment flow, improves deployment efficiency.
Brief description of the drawings
Fig. 1 is a kind of method flow diagram of application deployment software of the embodiment of the present invention 1;
Fig. 2 is a kind of schematic device of application deployment software of the embodiment of the present invention 2;
Fig. 3 is a kind of schematic diagram of virtual desktop architecture in example 1 of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the case where there is no conflict, in the embodiment and embodiment in the application Feature can mutually be combined.
Embodiment 1
As shown in Figure 1, an embodiment of the present invention provides a kind of method of application deployment software, including:
Step S110, with read-write mode carry target disk, file operation and note are intercepted by file system filter driver Volume table handling, the actual installation path of application program is redirected on the subregion of the target disk, and by the mesh The registry file created on mark disk preserves the registry operations record of the application program;
Step S120, the target magnetic of application program installation file and registry operations record is carried with read-only mode carry Disk, the access intercepted by file system filter driver to application program operate and carry out re-orientation processes.
The method further includes following features:
When in one embodiment, with read-write mode carry target disk, the target disk distributes to virtual machine list Solely use;When carrying the target disk that application program installation file and registry operations record with read-only mode carry, the mesh Mark disk is distributed to one or more virtual machines and is used in conjunction with;
In one embodiment, the target disk is mobile hard disk;
In one embodiment, after with read-write mode carry target disk, the method further includes:
Before installation or more new application, sent a notification message, touched to file system filter driver by auxiliary tool Sending out file system filter driver described is operated under diskware bag template construct pattern;
After all application program installations or renewal, sent and led to file system filter driver by auxiliary tool Know message, trigger the file system filter driver and exit diskware bag template construct pattern, into idle pulley;
In one embodiment, the method further includes:
After all application program installations or renewal, application program mount message is collected by auxiliary tool, will The application program mount message is stored in the configuration file created on the target disk;
In one embodiment, recorded with read-only mode carry carrying application program installation file and registry operations After target disk, the method further includes:
Sent a notification message by auxiliary tool to file system filter driver, trigger the file system filter driver work Make under diskware bag template use pattern;
In one embodiment, the access operation intercepted by file system filter driver to application program is gone forward side by side Row re-orientation processes, including:
The registry operations record preserved on the subregion of the target disk is read, copies the note created in system cache to In volume table backup file;
When intercepting registry operations by file system filter driver, the operation is redirected in system cache and is created Registration table record in the registration table backup file built;
In one embodiment, the access operation intercepted by file system filter driver to application program is gone forward side by side Row re-orientation processes, including:
Intercepted by file system filter driver to the file that the application program generates in installation process into row write During operation, the original document preserved on the target disk is copied in system cache, the write operation is redirected to institute State the respective file in system cache;
In one embodiment, the access operation intercepted by file system filter driver to application program is gone forward side by side Row re-orientation processes, including:
The file for generating the application program in installation process is intercepted by file system filter driver to read During operation, if carrying out read operation to the respective file in the system cache there are respective file in system cache, if The respective file is not present in system cache, then read operation is carried out to the respective file on the target disk;
Embodiment 2
As shown in Fig. 2, an embodiment of the present invention provides a kind of device of application deployment software, including:
Diskware bag template construct module 201, for read-write mode carry target disk, passing through file system filter Driving intercepts file operation and registry operations, and the actual installation path of application program is redirected to point of the target disk Qu Shang, and the registry file by being created on the target disk preserves the registry operations record of the application program;
Diskware bag template uses module 202, for carrying application program installation file and note with read-only mode carry The target disk of volume table handling record, the access intercepted by file system filter driver to application program are operated and reset To processing.
In one embodiment, diskware bag template uses module, for passing through file system in the following ways The access that filtration drive intercepts to application program operates and carries out re-orientation processes:
The registry operations record preserved on the subregion of the target disk is read, copies the note created in system cache to In volume table backup file;
When intercepting registry operations by file system filter driver, the operation is redirected in system cache and is created Registration table record in the registration table backup file built.
In one embodiment, diskware bag template uses module, for passing through file system in the following ways The access that filtration drive intercepts to application program operates and carries out re-orientation processes:
Intercepted by file system filter driver to the file that the application program generates in installation process into row write During operation, the original document preserved on the target disk is copied in system cache, the write operation is redirected to institute State the respective file in system cache.
In one embodiment, diskware bag template uses module, for passing through file system in the following ways The access that filtration drive intercepts to application program operates and carries out re-orientation processes:
The file for generating the application program in installation process is intercepted by file system filter driver to read During operation, if carrying out read operation to the respective file in the system cache there are respective file in system cache, if The respective file is not present in system cache, then read operation is carried out to the respective file on the target disk.
When in one embodiment, with read-write mode carry target disk, the target disk distributes to virtual machine list Solely use;When carrying the target disk that application program installation file and registry operations record with read-only mode carry, the mesh Mark disk is distributed to one or more virtual machines and is used in conjunction with.
Embodiment 3
An embodiment of the present invention provides a kind of virtual machine, including:
Memory, processor and it is stored in the application deployment software that can be run on the memory and on the processor Program, the program of the application deployment software realizes that deployment described in above-described embodiment 1 should when being performed by the processor The step of with the method for software.
Embodiment 4
The embodiment of the present invention provides a kind of computer-readable recording medium, is stored with the computer-readable recording medium The program of application deployment software, the program of the application deployment software are realized described in above-described embodiment 1 when being executed by processor Application deployment software method the step of.
Below by the method for multiple application deployment softwares for illustrating the application.
Example 1
As shown in figure 3, this example provides a kind of virtual desktop architecture VDI systems, including at least resources of virtual machine pond With virtual desktop management platform.
Wherein, the resources of virtual machine pond is the logic entity of more physical machine compositions of data center.In every physics It is that one kind is operated between physical server and operating system that virtualization layer application Hypervisor, Hypervisor are run on machine Intermediate software layer, allow multiple operating systems and a set of underlying physical hardware of Application share, it is virtual by Hypervisor Change hardware, produce multiple CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processor), disk, bus etc..
VME operating system template, be can be directly initiated on virtual hardware, the operating system run is (without peace Dress), such as windowsXP, windows7 etc..An advantage of VDI is to be based on operating system template, and quick distribution creates new Virtual machine.Here operating system template is to be based on the mounted operating system of virtual hardware, and is preserved in physical machine In file.When creating new virtual machine, by assignment of allocation template, new virtual machine has just obtained a pair based on template This, contains the operating system that can be directly initiated in this copy.In this example, the advance installation file system in operating system template System filtration drive.File system filter driver exists always after being installed in operating system (windows operating systems) template Operating system running background, different processing logics is performed by 3 patterns (idle pulley, making pattern, operational mode). Under idle pulley, filter Driver on FSD neither intercepts file system call, does not also change the path received.Under making pattern, The filter Driver on FSD of template machine is used to make diskware bag template.For example intercept the message for being sent to file system layer, note Volume table message.During application program is installed, file of the script path under first path (application program Default installation path), It is automatically redirected to the second path (the application program installation path of subregion where diskware bag template).Script path is the 3rd Record under path (the registration table storing path of acquiescence), is automatically redirected to the 4th path and (divides where diskware bag template The registration table storing path in area).Under operational mode, subscriber computer with read-only mode carry diskware bag template, file read-write or The priority of registration table record read/write path is as follows:The priority in the path of system cache is higher than where diskware bag template points The priority in the path in area, the priority in the path of subregion is higher than the default installation road of application program where diskware bag template The priority in footpath (or registration table storing path of acquiescence).
Diskware bag template, for storing application program installation process (being installed by administrator on making machine) Involved in the newly-increased file that arrives, change file, registration table increases record, registration table record modification information newly.Diskware bag template After making, virtual machine use is distributed in appointment, does not produce any copy unlike operating system template, but with Read-only mode is used to more empty machine carries at the same time.
System cache (optional), for subscriber computer when with read-only mode carry diskware bag template, when needing to change During data in diskware bag template, then a data of file system filter driver copy perform again into system cache Read-write operation.
Wherein, virtual desktop management platform includes virtual desktop administrative center and virtual desktop Background control entity.It is described Virtual desktop administrative center provides human-computer interaction administration page, including checks, creates, and assigns, modification, renewal operation.Making During diskware bag template, virtual desktop administrative center control virtual desktop Background control entity creates an independent disk, so This independent disk is assigned on some virtual machine afterwards, this virtual machine role is changed to making machine, subsequently into operating system Carry out program bag making.
Example 2
This example provides a kind of production method of diskware bag template, it is assumed that installs APP1 in diskware bag template And APP2, the template machine perform following processing:
Step S101, installs VME operating system template and starts on the virtual machine for making diskware bag template;
Wherein, the operating system template includes file system filter driver.
Wherein, auxiliary tool is further included in the operating system template, the auxiliary tool is used for and file system filter Driving communicates, and sets the pattern (idle pulley, making pattern, operational mode) of filter Driver on FSD
Step S102, partition format is done to the disk of carry;
For example NTFS (New Technology File System, New Technology File System) is formatted as, by the disk Drive be arranged to F:.
Step S103, auxiliary tool operation, in disk partition (such as the F of carry:) on create root FILE (F:\ FILE), the root is used for default installation catalogue (such as the C of re-direction applications program:\).Create registry file (ratio Such as, reg), the registry file is used to record the modification key assignments of the registration table record in installation process.Create configuration file (such as vpack.ini).
Wherein, configuration file vpack.ini can include the letter for describing each application program in the diskware bag template Breath, such as version number, GUID (Globally Unique Identifier, globally unique identifier).
Wherein, auxiliary tool sends control message to file system filter driver, triggers the file system filter driver Into making pattern, under the making pattern, file system filter driver intercepts all in application program default installation catalogue (C:) on file system call.
Step S104, installs two application APPs 1 and APP2.
Function, file operation and the registry operations that installation procedure performs can all be intercepted by file system filter driver, be blocked After cutting, carry out inquiry and merge directory operation and modification destination path so as to redirect.
Below by taking the installation procedure (app1_install) of APP1 as an example, the interception of instrument of interpretation operation and redirection:
(1) installation procedure (app1_install) initiates the inquiry of read-only mode, path c to bottom:\program files\app1;
File system filter driver can perform 2 query actions.First path c:Program files app1, second Path F:\FILE\program files\app1.2 paths are all not present at this time, return to failure immediately.
(2) installation procedure (app1_install) initiates the operation that creaties directory of WriteMode, Makes Path as c:\ program files\app1。
File system filter driver still carries out 2 inquiries after receiving.First path c:Program files app1, Second path F:\FILE\program files\app1.At this time due to be WriteMode operation.And father's mesh of first path Record c:Program files exist.File system filter driver first creaties directory F:FILE program files, then will hold It is revised as the second path F in walking along the street footpath:\FILE\program files\app1.File system lower floor is given in actual creation work, Lower floor returns to this handle after the completion of creating, redirect and complete.What app1_install was received after returning is exactly after redirecting The second path handle.
(3) installation procedure app1_install initiates establishment file operation, and the file to be created is c:\program files\app1\file1。
Installation procedure app1_install query paths c:\program files\app1.File system filter driver is received 2 inquiries are performed after arriving.First path c:Program files app1, the second path F:\FILE\program files\ app1.At this time due to be WriteMode operation.And F:FILE program files app1 exist, the second tunnel of prioritizing selection Footpath F:\FILE\program files\app1.File system filter driver and then execution route modification F:\FILE\program Files app1 file1, real work give file system lower floor execution.App1_install connects after lower floor performs return Received is exactly the second path handle after redirecting.Establishment file is this time redirected to complete.
(4), installation procedure app1_install initiates to enumerate specified directory file operation, and the specified directory is c:\ program files。
Installation procedure app1_install opens catalogue c:\program files.File system filter driver is inquired about successively First path c:Program files, the second path F:\FILE\program files.Since the second path has existed, According to priority principle, the second path F is revised as in path:FILE program files, file system lower floor return the second path Handle, redirects and completes.Following app1_install initiates to enumerate catalogue file.File system filter driver receives path For the handle path F opened just now:\FILE\program files.Perform 2 times at this time and enumerate directory operation.
First time c:Program files return
Second of F:FILE program files return
2017/07/11 10:35<DIR>app1
Two times result merges, if identical entry, preferentially using F:Fileinfo under path.
Finally return to:
The listed files that app1_install programs are merged.
Below by taking the installation procedure (app1_install) of APP1 as an example, interception and the redirection of registry information are explained:
When auxiliary tool triggering file system filter driver enters making pattern, where diskware bag template on subregion Registry file (F:Reg) by file system filter driver be mounted to system registry path HLM SYSTEM Setup On VPACK, content is sky at the beginning, this path (HLM SYSTEM Setup VPACK) corresponding registration table acquiescence root path (C:\)
(1) installation procedure (such as app1_install) initiate read-only mode inquiry, path HCU Software.
File system filter driver can perform 2 query actions.First path HCU Software, the second path HLM SYSTEM\Setup\VPACK\HCU\Software.2 paths are all not present at this time, return to failure immediately.
(2) installation procedure (such as app1_install) initiates the establishment operation of WriteMode.Make Path for HCU Software\app1。
File system filter driver still carries out 2 inquiries after receiving.
First path HCU Software app1;
Second path HLM SYSTEM Setup VPACK HCU Software app1;
At this time due to be WriteMode operation.And the father path HCU of first path Software exist.File system Filtration drive Make Path at this time a HLM SYSTEM Setup VPACK HCU Software.Execution route is revised as again Second path HLM SYSTEM Setup VPACK HCU Software app1, system lower floor perform create after return to the second tunnel Footpath handle, what app1_install was received is exactly the second path handle after redirecting after returning.Redirect and complete.
(3) installation procedure app1_install initiate create key assignments, to HCU Software app1 key1 grasp Make.
Be first turned on path HCU Software app1.At this time due to be WriteMode operation.And HLM SYSTEM Setup VPACK HCU Software app1 exist, prioritizing selection path HLM SYSTEM Setup VPACK HCU Software app1, path modification after, actual creation work gives system lower floor execution.Lower floor, which performs, returns to app1_ later What install was received is exactly the path handle after redirecting.This time redirect to create and complete.
(4), installation procedure app1_install initiates to enumerate the operation of specified path subrecord.
App1_install first open registry entry HCU Software.File system filter driver is inquired about successively
First path HCU Software;
Second path HLM SYSTEM Setup VPACK HCU Software;
Since the second path has existed, according to priority principle, path be revised as the second path HLM SYSTEM Setup VPACK HCU Software, file system lower floor return the second path handle, redirect complete.Following app1_install Subrecord is enumerated in initiation.It is the handle path opened just now that file system filter driver, which receives path,
HLM\SYSTEM\Setup\VPACK\HCU\Software\
2 enumeration operations are performed at this time.
First time HCU Software return
7zip
adobe
Second HLM SYSTEM Setup VPACK HCU Software return
app1
Two times result merges, and if identical entry, preferentially uses the second path
HLM SYSTEM Setup VPACK HCU Software under information.
Finally return to:
7zip
adobe
app1
The list that installation procedure app1_install is merged.
Step S105, after all application programs install, auxiliary tool operation, performs the auxiliary behaviour after installation is complete Make.
Wherein, auxiliary tool sends messages to file system filter driver notice application program and installs, file system Filtration drive departs from the node being previously mounted in registry branches, and Registry Modifications content is written to diskware bag template Registry file (the F of place disk partition:Reg) in, then file system filter driver enters idle condition.
Auxiliary tool can be with discarded record (such as the interim text in disk partition where defrag software kit template Part), scanning registry file (F:Reg) path of application program installed, extract the icon of application program, version number, Manufacturer's information etc., is reported to the storage of virtual desktop management platform.So far diskware bag template construct is completed.Template machine can unload Carry the disk where diskware bag template.
Example 3
This example provides a kind of application method of diskware bag template, it is assumed that is provided with application in diskware bag template Program APP1 and APP2, subscriber computer by the disk where diskware bag template described in carry using application program (such as APP1), the subscriber computer performs following processing:
Step S101, the identification of diskware bag template;
When an operating system starts, diskware bag template carry message is intercepted by file system filter driver, scans this Subregion is rolled up, and searches configuration file (such as vpack.ini), FILE files, registry file (such as reg).Pass through analysis Configuration file content, registry file content judge whether it is diskware bag template.It is if diskware bag template, then literary The triggering of part system filtration drive enters operational mode.
Step S102, with read-only mode by registry file (F:Reg) file content be merged into system cache registration table File (such as G:REG) in, if in system cache without this file if create an empty file.If system cache is registered List file is crossed according to some version number and GUID Match mergings, ignores step operation.Merge record and be also recorded in system Cache registry file (G:REG) in.Then by system cache registry file (G:REG) be mounted to system registry HLM SYSTEM Setup VPACK on path.Then start to intercept file system message and registration table message.
The supporting paper system filtration drive relevant operation to file, catalogue in the operating mode below.
(1) user's mouse clicks on start menu.
For example windows desktop programs explorer.exe initiates to enumerate directory.Directory path C:\ ProgramData\Microsoft\Windows\Start Menu\Programs.File system filter driver can perform 3 times and look into Inquiry acts.
First path C:ProgramData Microsoft Windows Start Menu Programs return:
Second path F:FILE ProgramData Microsoft Windows Start Menu Programs return Return:
2017/07/03 16:30<DIR>app1
2017/07/03 15:52<DIR>app2
3rd path G:FILE ProgramData Microsoft Windows Start Menu Programs return It is empty;Wherein, G:FILE be system cache path;
2 paths exist at this time, as a result merge into:
The listed files that explorer.exe programs are merged.User can be found that app1 the and app2 programs having more Menu.
(2) user's mouse clicks on app1/app1.exe startup programs.
Windows desktop programs explorer.exe initiates read-only mode and opens app1.exe document flows.File system Filtration drive can perform 3 query actions.First path C:\Program files\app1.Second path F:\FILE\ Program files\app1.3rd path G:\FILE\Program files\app1;
Wherein, the second path has existed, preferentially using this path.File system filter driver changes path road for this Footpath.Real work is performed by file system lower floor, and lower floor returns to this path handle after being finished.Explorer.exe is obtained Handle after redirection, starts subsequent operation.
(3) app1.exe modifications of program C:\Program files\app1\file1
File system filter driver can perform 3 query actions.
First path C:\Program files\app1\file1.Return is unsuccessfully not present.
Second path F:\FILE\Program files\app1\file1.Return and successfully exist.
3rd path G:\FILE\Program files\app1\file1.Return is unsuccessfully not present.
Second path has existed, but due to being modification action, it is impossible to directly change.Copy (Copy) file f ile1 To system cache catalogue.Establish catalogue G successively first:FILE Program files, G:\FILE\Program files\ App1, then perform copy files to G:\FILE\Program files\app1\file1.Path path for this is changed, it is real Border work is performed by file system lower floor, and lower floor returns to this path handle after being finished.After app1.exe is redirected Handle, start subsequent write operation.
(4) app1.exe programs delete C:\Program files\app1\file1
File system filter driver can perform 3 query actions.
First path C:\Program files\app1\file1.Return is unsuccessfully not present.
Second path F:\FILE\Program files\app1\file1.Return and successfully exist.
3rd path G:\FILE\Program files\app1\file1.Return and successfully exist.
Delete the one kind for belonging to modification operation.Since the 3rd path exists, modification path is the 3rd path, but due to being Delete operation.And second path diskware bag path exist.Need specially treated.Deletion mark is stamped to this file.Than Such as:The creation time for changing the 3rd path file is a certain second on specific date.Return immediately successfully without allowing underlying file System is actual to be deleted.After running into file afterwards and being this technical dates, the operation of adapter underlying system, is judged as having deleted The file that removes and return to failure.
The supporting paper system filtration drive relevant operation to registration table in the operating mode below.
(1) application program (such as app1) initiate read-only mode inquiry, path HCU Software.
File system filter driver can perform 2 query actions.
First path HCU Software
Second path HLM SYSTEM Setup VPACK HCU Software
Second path exists, and is read-only mode, and modification path is the second path, and real work is complete by underlying system Into obtaining the second path handle after return, redirect and complete.App1 has obtained the second path handle.
(2) app1 initiate modification key assignments, path HCU Software app1 key1.
File system filter driver can perform 2 query actions.
First path HCU Software app1 key1 return unsuccessfully be not present;
Second path HLM SYSTEM Setup VPACK HCU Software app1 key1 return successfully;
Second path exists, although write operation, due to the use of system cache registry file, it is possible to it is straight Connect modification.Modification path is the second path, and real work is completed by underlying system, and the second path handle is obtained after return, is reset To completion.App1 has obtained the second path handle.
(3) app1 initiate create key assignments, to HCU Software app1 key1 operate.
Query path HCU first Software app1.
File system filter driver can perform 2 query actions
First path HCU Software app1
Second path HLM SYSTEM Setup VPACK HCU Software app1
At this time due to be WriteMode operation.And the second path exists, the second path of prioritizing selection, path is revised as the Under two paths HLM SYSTEM Setup VPACK HCU Software app1 key1, actual creation work give under system Layer performs.What app1 was received is exactly the path handle after redirecting after lower floor's execution returns.This time redirect to create and complete.
(4) app1 initiates to enumerate the operation of specified path subrecord.
App1 open registry entry HCU Software.
File system filter driver is inquired about successively
First path HCU Software
Second path HLM SYSTEM Setup VPACK HCU Software
Since the second path has existed, according to priority principle, the second path is revised as in path.System lower floor returns to second Path handle, redirects and completes.Next subrecord is enumerated.It is the opened just now that file system filter driver, which receives path, Two paths.2 enumeration operations are performed at this time.
First time HCU Software return
7zip
adobe
Second HLM SYSTEM Setup VPACK HCU Software return
app1
app2
2 times result merges, and if identical entry, preferentially uses system cache, followed by diskware bag template successively, most It is the original path of system default afterwards;
Finally return to:
7zip
adobe
app1
app2
Therefore, the list that app1 programs are merged.
(5) app1 deletes the operation of specified path subrecord.
App1 open registry entry HCU Software.
File system filter driver is inquired about successively
First path HCU Software app1 key1
Second path HLM SYSTEM Setup VPACK HCU Software app1 key1
Since the second path has existed, according to priority principle, the second path is revised as in path.System lower floor returns to second Path handle, redirects and completes.Then system performs follow-up delete operation.It has been system cache registry file herein, can Directly to delete.
Example 4
This example provides a kind of update method of diskware bag template.Assuming that administrator will on template machine to comprising The diskware bag template of APP1 and APP2 is updated, and the renewal is related to:APP1 is upgraded, deletes APP2, and Newly-increased APP3, performs following processing on template machine:
Step S101, certain virtual machine is distributed to by diskware bag template.Virtual machine is automatic by operating system after starting This disk of carry.Assuming that this drive is F:.
Step S102, file system filter driver is installed on the virtual machine for making diskware bag template.Install Auxiliary tool.File system filter driver is operated in idle pulley at this time, neither intercepts file system call, does not also change reception The path arrived.If this machine had installed file system filter driver, meeting automatic trigger enters use pattern.
Step S103, auxiliary tool are run, at this time catalogue FILE, and registry file reg, configuration file vpack.ini is Exist.Auxiliary tool no longer creates.Auxiliary tool sends control message and enters to file system filter driver, triggering Making pattern.Intercept at this time all in C:On file system call.
Step S104, installation procedure start to update app1, delete app2, install app3.The installation procedure in installation process The function of execution, file operation, registry operations can all be intercepted by file system filter driver, inquiry merge directory operation and Modification destination path reaches redirection.
(1) app1 is updated:
The installation procedure app1_install of App1 initiates modification file (c:Program files app1 file1) behaviour Make.
App1_install query paths c:\program files\app1\file1.File system filter driver receives 2 inquiries are performed afterwards.First path c:Program files app1, the second path F:\FILE\program files\ app1.At this time due to be WriteMode operation.And F:FILE program files app1 exist, the second tunnel of prioritizing selection Footpath F:\FILE\program files\app1.File system filter driver and then execution route modification F:\FILE\program Files app1 file1, real work give file system lower floor execution.App1_install connects after lower floor performs return Received is exactly the second path handle after redirecting.This time redirection file is completed.Subsequent modification write operation Ye Jiuci roads Completed on the file of footpath.
(2) app2 is deleted:
The installation procedure app2_install of App2 initiates to delete file (c:Program files app2 file1) behaviour Make.
App2_install query paths c:\program files\app2\file1.File system filter driver receives 2 inquiries are performed afterwards.First path c:Program files app2, the second path F:\FILE\program files\ app2.At this time due to be WriteMode operation.And the second path exists, the second path of prioritizing selection.File system filter is driven Dynamic and then execution route is revised as F:FILE program files app2 file1, real work gives file system lower floor Perform.What app2_install was received is exactly the second path handle after redirecting after lower floor's execution returns.This resets Completed to file.Follow-up delete operation is also just completed on this path file.
(3) app3 is installed:
The installation procedure app3_install of App3 initiates establishment file (c:Program files app3 file1) behaviour Make.
App3_install query paths c:\program files\app3.File system filter driver performs 2 after receiving Secondary inquiry.First path c:Program files app3, the second path F:\FILE\program files\app3.At this time Due to being the operation of WriteMode.And the second path exists, the second path of prioritizing selection.File system filter driver and then execution It is revised as F in path:FILE program files app3 file1, real work give file system lower floor execution.Lower floor What app3_install was received is exactly the second path handle after redirecting after execution returns.This time redirection file is complete Into.
Step S104, after all application program installation renewals, auxiliary tool operation, performs the auxiliary after the completion of renewal Operation.Auxiliary tool sends messages to file system filter driver.File system filter driver will previously be mounted to registration table point Node in branch departs from.Registry Modifications content is written to F:In reg files, then file system filter driver enters sky Not busy state.Follow-up operation is completed by auxiliary tool and all in disk partition F:Middle processing:Clear up useless file, scanning note The path for the application program that volume list file reg is installed, extracts the icon of application program, version number, manufacturer's information.It is reported to Virtual desktop management platform stores.So far diskware bag template renewal is completed.Template machine can unload this disk.
Example 5
This example provides the making and use of diskware bag in a kind of entity mobile dish of disengaging VDI systems.
First, diskware bag is made.
1st, file system filter driver and auxiliary tool are installed in the physical machine for making diskware bag.File at this time System filtration drive is operated in idle pulley, neither intercepts file system call, does not also change the path received.
2nd, mobile hard disk, this hard disk of the automatic carry of operating system are inserted into, user makees the disk of carry partition format (ratio Such as NTFS, it is assumed that this drive is F:).
3rd, auxiliary tool is run, and empty list FILE is created on this subregion, this catalogue corresponds to C:Root.Create Empty registry file reg is used to record the modification key assignments of the registration table record in installation process.Create configuration file Vpack.ini, the configuration file include the information for describing this software kit, such as version number, guid unique mark values.Backman Tool sends control message and enters making pattern to file system filter driver, triggering, and file system filter driver is in making pattern Lower interception is all in C:On file system call.
4th, start that app1, app2 are installed.Installation procedure (such as the app1_install and app2_ in installation process Install) function of execution, file operation, registry operations can all be intercepted by file system filter driver.File system filter Driving inquiry merges directory operation and modification destination path reaches redirection.
5th, installation app1, app2 are terminated.Auxiliary tool sends message informing file system filter driver and enters idle pulley. Auxiliary tool scans F:Discarded record in disk.Diskware bag completes.
2nd, using diskware bag.
1st, file system filter driver is installed on certain physical machine.File system filter program operates in sky at this time Not busy state.
2nd, after being inserted into mobile hard disk, file system filter driver, which is intercepted, is wrapping with load message, scans this subregion volume, and lookup is matched somebody with somebody Put file (vpack.ini), FILE files, registry file (reg).Pass through analysis configuration file content and registry file Content judges whether it is diskware bag.If diskware bag, file system filter driver triggering enters operational mode.
3rd, file system filter driver with read-only mode by the registry file (F on mobile hard disk:Reg) content close And arrive system cache registry file (C:VPACK REG) in, if in system cache without this file if create an empty text Part.Ignore if system cache registry file is crossed according to some version number and guid Match mergings, merge record Also it is recorded in system cache registry file.Then system cache registry file is mounted to system registry path (HLM SYSTEM Setup VPACK) on.Then start to intercept file system message and registration table message.
3rd, diskware bag is updated.
1st, file system filter driver and auxiliary tool are installed on certain physical machine.If installed then Without installing again.File system filter driver is operated in idle pulley at this time.File system call is neither intercepted, is not also changed The path received.
2nd, it is inserted into mobile hard disk.By this disk of the automatic carry of operating system.Assuming that this drive is F:.File system filter is driven Dynamic meeting automatic trigger enters use pattern.
3rd, auxiliary tool is run, and catalogue FILE, registry file reg, configuration file vpack.ini have been deposited at this time .Auxiliary tool no longer creates.Execution sets pattern as making pattern, sends control message to file system filter driver, touches Hair enters making pattern, is intercepted under making pattern all in C:On file system call.
4th, start to update app1, delete app2, app3 is installed.Function, the file of installation procedure execution in installation process Operation and registry operations can all be intercepted by file system filter driver, file system filter driver inquiry merge directory operation with And modification destination path reaches redirection.
5th, installation app1, app2 are terminated.Auxiliary tool sends message informing file system filter driver and enters idle pulley. Auxiliary tool scans F:Discarded record in disk.The renewal of diskware bag is completed.
It should be noted that the present invention can also have other various embodiments, without departing substantially from of the invention spiritual and its essence In the case of, those skilled in the art can make various corresponding changes and deformation according to the present invention, but these are corresponding Change and deform the protection domain that should all belong to appended claims of the invention.

Claims (12)

1. a kind of method of application deployment software, including:
With read-write mode carry target disk, file operation and registry operations are intercepted by file system filter driver, should It is redirected on the subregion of the target disk with the actual installation path of program, and by being created on the target disk Registry file preserves the registry operations record of the application program;
The target disk of application program installation file and registry operations record is carried with read-only mode carry, passes through file system The access that filtration drive intercepts to application program operates and carries out re-orientation processes.
2. the method as described in claim 1, it is characterised in that:
The access intercepted by file system filter driver to application program operates and carries out re-orientation processes, including:
The registry operations record preserved on the subregion of the target disk is read, copies the registration table created in system cache to In backup file;
When intercepting registry operations by file system filter driver, the operation is redirected to what is created in system cache Registration table record in registration table backup file.
3. the method as described in claim 1, it is characterised in that:
The access intercepted by file system filter driver to application program operates and carries out re-orientation processes, including:
The file generated to the application program in installation process is intercepted by file system filter driver and carries out write operation When, the original document preserved on the target disk is copied in system cache, the write operation is redirected to the system Respective file in system caching.
4. method as claimed in claim 3, it is characterised in that:
The access intercepted by file system filter driver to application program operates and carries out re-orientation processes, including:
The file generated to the application program in installation process is intercepted by file system filter driver and carries out read operation When, if read operation is carried out to the respective file in the system cache, if system there are respective file in system cache The respective file is not present in caching, then read operation is carried out to the respective file on the target disk.
5. such as the method any one of claim 1-4, it is characterised in that:
During with read-write mode carry target disk, the target disk distributes to virtual machine exclusive use;
When carrying the target disk that application program installation file and registry operations record with read-only mode carry, the target magnetic Disk is distributed to one or more virtual machines and is used in conjunction with.
6. a kind of device of application deployment software, including:
Diskware bag template construct module, for read-write mode carry target disk, being blocked by file system filter driver File operation and registry operations are cut, the actual installation path of application program is redirected on the subregion of the target disk, And the registry file by being created on the target disk preserves the registry operations record of the application program;
Diskware bag template uses module, for carrying application program installation file and registry operations with read-only mode carry The target disk of record, the access intercepted by file system filter driver to application program operate and carry out re-orientation processes.
7. device as claimed in claim 6, it is characterised in that:
Diskware bag template uses module, for being intercepted in the following ways by file system filter driver to application program Access operate and carry out re-orientation processes:
The registry operations record preserved on the subregion of the target disk is read, copies the registration table created in system cache to In backup file;
When intercepting registry operations by file system filter driver, the operation is redirected to what is created in system cache Registration table record in registration table backup file.
8. device as claimed in claim 6, it is characterised in that:
Diskware bag template uses module, for being intercepted in the following ways by file system filter driver to application program Access operate and carry out re-orientation processes:
The file generated to the application program in installation process is intercepted by file system filter driver and carries out write operation When, the original document preserved on the target disk is copied in system cache, the write operation is redirected to the system Respective file in system caching.
9. device as claimed in claim 8, it is characterised in that:
Diskware bag template uses module, for being intercepted in the following ways by file system filter driver to application program Access operate and carry out re-orientation processes:
The file generated to the application program in installation process is intercepted by file system filter driver and carries out read operation When, if read operation is carried out to the respective file in the system cache, if system there are respective file in system cache The respective file is not present in caching, then read operation is carried out to the respective file on the target disk.
10. such as the device any one of claim 6-9, it is characterised in that:
During with read-write mode carry target disk, the target disk distributes to virtual machine exclusive use;
When carrying the target disk that application program installation file and registry operations record with read-only mode carry, the target magnetic Disk is distributed to one or more virtual machines and is used in conjunction with.
11. a kind of virtual machine, including:
Memory, processor and the journey for being stored in the application deployment software that can be run on the memory and on the processor Sequence, realizes the portion as any one of claim 1-5 when the program of the application deployment software is performed by the processor The step of affixing one's name to the method for application software.
12. a kind of computer-readable recording medium, it is characterised in that deployment is stored with the computer-readable recording medium should With the program of software, realized when the program of the application deployment software is executed by processor such as any one of claim 1-5 institutes The step of method for the application deployment software stated.
CN201711395237.4A 2017-12-21 2017-12-21 Method and device for deploying application software and virtual machine Active CN107992355B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711395237.4A CN107992355B (en) 2017-12-21 2017-12-21 Method and device for deploying application software and virtual machine
PCT/CN2018/102285 WO2019119850A1 (en) 2017-12-21 2018-08-24 Application software deployment method and device, and virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711395237.4A CN107992355B (en) 2017-12-21 2017-12-21 Method and device for deploying application software and virtual machine

Publications (2)

Publication Number Publication Date
CN107992355A true CN107992355A (en) 2018-05-04
CN107992355B CN107992355B (en) 2021-07-13

Family

ID=62038154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711395237.4A Active CN107992355B (en) 2017-12-21 2017-12-21 Method and device for deploying application software and virtual machine

Country Status (2)

Country Link
CN (1) CN107992355B (en)
WO (1) WO2019119850A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284161A (en) * 2018-09-13 2019-01-29 深圳市青葡萄科技有限公司 Software distribution method under desktop virtual environment
WO2019119850A1 (en) * 2017-12-21 2019-06-27 中兴通讯股份有限公司 Application software deployment method and device, and virtual machine
CN109992207A (en) * 2019-03-29 2019-07-09 深圳市天威视讯股份有限公司 A kind of optimization method and system of the memory space suitable for Intelligent set top box
CN110442389A (en) * 2019-08-07 2019-11-12 北京技德系统技术有限公司 A kind of shared method using GPU of more desktop environments
CN112506451A (en) * 2020-12-08 2021-03-16 西安雷风电子科技有限公司 Printer information management toolkit and management method
CN112506532A (en) * 2020-12-10 2021-03-16 西安雷风电子科技有限公司 Software installation package generation method, installation method and system
WO2021254280A1 (en) * 2020-06-15 2021-12-23 中兴通讯股份有限公司 Disk mounting method and device, storage medium, and electronic device
CN113946276A (en) * 2020-07-16 2022-01-18 北京达佳互联信息技术有限公司 Disk management method and device in cluster and server
CN114706659A (en) * 2022-04-01 2022-07-05 燕东科技(广东)有限公司 Virtual machine software deployment method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457871A (en) * 2019-08-13 2019-11-15 杭州安恒信息技术股份有限公司 A kind of finger daemon method and apparatus based on filter Driver on FSD frame

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231116A (en) * 2011-07-04 2011-11-02 成都市华为赛门铁克科技有限公司 Application program virtualization installing and loading method and device
CN102279748A (en) * 2011-08-29 2011-12-14 焦秀琴 Method, system, server and client side for remotely storing locally executed software
CN102662741A (en) * 2012-04-05 2012-09-12 华为技术有限公司 Method, device and system for realizing virtual desktop
CN104766007A (en) * 2015-03-27 2015-07-08 杭州安恒信息技术有限公司 Method for quickly recovering sandbox based on file system filter driver
US20160080415A1 (en) * 2014-09-17 2016-03-17 Shadow Networks, Inc. Network intrusion diversion using a software defined network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701409B (en) * 2015-12-29 2019-05-17 珠海豹趣科技有限公司 A kind of method and device for realizing file virtualization
CN106022100A (en) * 2016-05-17 2016-10-12 北京金山安全软件有限公司 Method and device for intercepting installation of malicious program and electronic equipment
CN107992355B (en) * 2017-12-21 2021-07-13 中兴通讯股份有限公司 Method and device for deploying application software and virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231116A (en) * 2011-07-04 2011-11-02 成都市华为赛门铁克科技有限公司 Application program virtualization installing and loading method and device
CN102279748A (en) * 2011-08-29 2011-12-14 焦秀琴 Method, system, server and client side for remotely storing locally executed software
CN102662741A (en) * 2012-04-05 2012-09-12 华为技术有限公司 Method, device and system for realizing virtual desktop
US20160080415A1 (en) * 2014-09-17 2016-03-17 Shadow Networks, Inc. Network intrusion diversion using a software defined network
CN104766007A (en) * 2015-03-27 2015-07-08 杭州安恒信息技术有限公司 Method for quickly recovering sandbox based on file system filter driver

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019119850A1 (en) * 2017-12-21 2019-06-27 中兴通讯股份有限公司 Application software deployment method and device, and virtual machine
CN109284161A (en) * 2018-09-13 2019-01-29 深圳市青葡萄科技有限公司 Software distribution method under desktop virtual environment
CN109992207A (en) * 2019-03-29 2019-07-09 深圳市天威视讯股份有限公司 A kind of optimization method and system of the memory space suitable for Intelligent set top box
CN110442389A (en) * 2019-08-07 2019-11-12 北京技德系统技术有限公司 A kind of shared method using GPU of more desktop environments
CN110442389B (en) * 2019-08-07 2024-01-09 北京技德系统技术有限公司 Method for sharing GPU (graphics processing Unit) in multi-desktop environment
WO2021254280A1 (en) * 2020-06-15 2021-12-23 中兴通讯股份有限公司 Disk mounting method and device, storage medium, and electronic device
CN113946276A (en) * 2020-07-16 2022-01-18 北京达佳互联信息技术有限公司 Disk management method and device in cluster and server
CN112506451A (en) * 2020-12-08 2021-03-16 西安雷风电子科技有限公司 Printer information management toolkit and management method
CN112506451B (en) * 2020-12-08 2023-04-07 西安雷风电子科技有限公司 Printer information management toolkit and management method
CN112506532A (en) * 2020-12-10 2021-03-16 西安雷风电子科技有限公司 Software installation package generation method, installation method and system
CN114706659A (en) * 2022-04-01 2022-07-05 燕东科技(广东)有限公司 Virtual machine software deployment method and system
CN114706659B (en) * 2022-04-01 2022-12-09 燕东科技(广东)有限公司 Virtual machine software deployment method and system

Also Published As

Publication number Publication date
CN107992355B (en) 2021-07-13
WO2019119850A1 (en) 2019-06-27

Similar Documents

Publication Publication Date Title
CN107992355A (en) A kind of method, apparatus and virtual machine of application deployment software
KR101574366B1 (en) Synchronizing virtual machine and application life cycles
CN107580083B (en) Method and system for allocating IP addresses of containers
US9600276B2 (en) Creating templates of offline resources
US8949364B2 (en) Apparatus, method and system for rapid delivery of distributed applications
KR100855853B1 (en) Image-based software installation
US7703091B1 (en) Methods and apparatus for installing agents in a managed network
US7000235B2 (en) Method and apparatus for managing data services in a distributed computer system
CN106020930A (en) Application container based application management method and system
CN105094964B (en) Virtual machine migration method and system
CN102710814A (en) Method and device for controlling Internet protocol (IP) address of virtual machine
WO2002073448A2 (en) Coordinating user profile migration with disk imaging in a computer system
US9170806B2 (en) Software discovery by an installer controller
EP2201473A2 (en) Remote auto provisioning and publication of applications
US20210064351A1 (en) Packaging support system and packaging support method
CN113590146A (en) Server and container upgrading method
CN109684028A (en) A kind of method, device and equipment that operating system is separated with user data
JPH08137768A (en) Remote distribution management network system
US20120284500A1 (en) Abstraction of computer disk image cloning capabilities from bootable media
CN111459643A (en) Host migration method
CN111459644A (en) Host migration system

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
GR01 Patent grant
GR01 Patent grant