[go: up one dir, main page]

CN102289513A - Method and system for obtaining internal files of virtual machine - Google Patents

Method and system for obtaining internal files of virtual machine Download PDF

Info

Publication number
CN102289513A
CN102289513A CN2011102598938A CN201110259893A CN102289513A CN 102289513 A CN102289513 A CN 102289513A CN 2011102598938 A CN2011102598938 A CN 2011102598938A CN 201110259893 A CN201110259893 A CN 201110259893A CN 102289513 A CN102289513 A CN 102289513A
Authority
CN
China
Prior art keywords
file
virtual machine
virtual
virtual disk
disk
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
CN2011102598938A
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.)
Shengqu Information Technology (Shanghai) Co., Ltd.
Original Assignee
Shengle Information Technolpogy Shanghai 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 Shengle Information Technolpogy Shanghai Co Ltd filed Critical Shengle Information Technolpogy Shanghai Co Ltd
Priority to CN2011102598938A priority Critical patent/CN102289513A/en
Publication of CN102289513A publication Critical patent/CN102289513A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a system for obtaining internal files of a virtual machine, wherein resource files of the virtual machine are directly virtualized to be virtual disks of a physical machine through a virtual technology; each virtual disk is accessed directly and the files in the virtual disks are read, modified, copied and deleted; the desired file can be found conveniently without starting the virtual machine and logging in an internal operation system of the virtual machine so that the work efficiency is greatly improved.

Description

Obtain the method and system of virtual machine internal file
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method and system of obtaining the virtual machine internal file.
Background technology
Virtual machine (Virtual Machine) be meant by software simulation have the complete hardware system function, operate in a complete computer in the complete isolation environment.
Now, the virtual machine technique develop rapidly, various software virtual machines are accepted extensively by the user.The user installs and moves one or more virtual system on the computing machine of the physics of being everlasting, all can deposit some files or file data in each virtual system.
When the user has deposited file in virtual system the inside, when needing to open virtual machine and enter virtual system, could pass through operations such as shared, transmission, xcopy, file conversion to physical machine.If under the situation of not opening virtual machine, seek out the file of virtual system the inside, can not finish.Will cause the user in order to obtain slight file in the virtual system like this, perhaps look over chat record, perhaps check an envelope mail and the necessary virtual machine that starts.And the operation virtual machine is to need to consume CPU and internal memory greatly, and toggle speed is very slow, greatly reduces work efficiency.
Moreover, the software virtual machine that different vendor provides is different, also difference is very big for the form of the virtual machine file that generates and type, in the different operating system of virtual machine the inside operation, form to the resources of virtual machine file also has different requirements with type, and the different virtual machine of visit on a physical machine is the same with other physical machines of visit just, therefore, use virtual machine to increase a lot of troubles to the user.
Summary of the invention
The object of the present invention is to provide a kind of method and system of obtaining the virtual machine internal file, can improve the efficient of user capture virtual machine internal file, reduce Operating Complexity.
For addressing the above problem, the invention provides a kind of method of obtaining the virtual machine internal file, may further comprise the steps:
The resource file of identification virtual machine;
According to the information of described resource file described resource file is mounted to and is virtual disk on the physical machine;
On described physical machine, show the virtual disk tabulation;
File to the physical disk of operating described physical machine is equally operated the file in each virtual disk.
Further, described resource file comprises configuration file, content file, journal file.
Further, according to the information of described resource file described resource file is mounted on the physical machine and comprises for the step of virtual disk:
By analysis, obtain the catalogue format and the file layout information of described resources of virtual machine to described configuration file;
By analysis, obtain the total data of each file in the described virtual machine to described content file.
By analysis, obtain the fileinfo of setting up and revising recently in the described virtual machine to described journal file.
Further, according to analysis, in described virtual disk tabulation, show the recent renewal file to described journal file.
Further, in the described virtual disk tabulation of the main interface display of described virtual machine.
Further, the operation that the file in each virtual disk is carried out comprises: read, revise, delete, copy, preserve, inquire about.
Further, the file in each virtual disk is made amendment after the operation, the data of preserve revising are in virtual machine.
Further, when the file in each virtual disk is carried out query manipulation,, each virtual disk is searched for, carried out fuzzy query, obtain the listed files of coupling according to filename by the input key word.
Accordingly, the present invention also provides a kind of system that obtains the virtual machine internal file, comprising:
Recognition unit is used to discern the resource file of virtual machine;
The carry unit is used for according to the information of described resource file described resource file being mounted to and is virtual disk on the physical machine;
Display unit is used for showing the virtual disk tabulation on described physical machine;
Operating unit is used for equally the file in each virtual disk being operated to the file of the physical disk of operating described physical machine.
Compared with prior art, the method and system of obtaining the virtual machine internal file provided by the invention, by virtual technology directly the resource file of virtual machine virtual be virtual disk under the physical machine, directly visit each virtual disk, and to the file in the virtual disk read, revise, duplicate, operation such as deletion, can not start virtual machine, do not need to log under the situation of virtual machine domestic os, conveniently find the file of wanting, improved work efficiency greatly.
Description of drawings
Fig. 1 is the process flow diagram that one embodiment of the invention is obtained the method for virtual machine internal file;
Fig. 2 is the structural representation that one embodiment of the invention is obtained the system of virtual machine internal file.
Embodiment
Below in conjunction with the drawings and specific embodiments the method and system of obtaining the virtual machine internal file that the present invention proposes are described in further detail.
The present invention analyzes and studies existing virtual machine commonly used, comprise Hyper-v, VMWare, virtual PC, virtualBox etc., the resource file of these virtual machines (VHD, VMDK, VDI) all is stored under the specific directory, is made up of one or more configuration files, content file, journal file etc.
As shown in Figure 1, the invention provides a kind of method of obtaining the virtual machine internal file, may further comprise the steps:
S1, the resource file of identification virtual machine;
S2 is mounted to described resource file according to the information of described resource file and is virtual disk on the physical machine;
S3 shows the virtual disk tabulation on described physical machine;
S4 operates the file in each virtual disk.
Wherein, in step S2, promptly described resource file is mounted on the physical machine and specifically may further comprise the steps for virtual disk according to the information of described resource file:
At first, by analysis, obtain the catalogue format and the file layout information of described resources of virtual machine to the configuration file of described resource file;
Then, by analysis, obtain the total data of each file in the described virtual machine to the content file of described resource file;
Then, by analysis, obtain the fileinfo of setting up and revising recently in the described virtual machine to the journal file of described resource file.
The present invention also provides a kind of system that obtains the virtual machine internal file, as shown in Figure 2, comprising:
Recognition unit 11 is used to discern the resource file of virtual machine;
Carry unit 12 is used for according to the information of described resource file described virtual machine being mounted to physical machine;
Display unit 13 is used for showing the virtual disk tabulation on described physical machine;
Operating unit 14 is used for the file in each virtual disk is operated.
Need to prove, when the user on physical machine resources of virtual machine file of right click (VHD, VMDK, VDI) time, whether recognition unit 11 can identify this resources of virtual machine file is virtual machine file.If, then increase " carry virtual machine file " menu automatically in right-click menu, click " carry virtual machine file " menu, carry unit 12 is virtual disk with this resources of virtual machine file mount on physical machine, after the carry success, can find these points characteristic:
1, opens virtual machine master interface automatically, on virtual machine master interface, show the virtual disk tabulation, for example when the physical disk of physical machine comprises local disk C and local disk D, on virtual machine master interface, show in the virtual disk tabulation to comprise: virtual disk E, virtual disk F, virtual disk G;
2, also meeting is many in PC explorer disk tabulation several virtual disks, for example, this moment, the tabulation of PC explorer disk comprised: local disk C, local disk D, virtual disk E, virtual disk F, virtual disk G, opening virtual disk E, virtual disk F, virtual disk G can be as opening local disk C, local disk D, can be as to the file operation in local disk C, the local disk D to the file operation in virtual disk E, virtual disk F, the virtual disk G;
3, can read file in the virtual disk, revise, delete, operation such as copy, and can preserve and be modified in the virtual machine;
4, according to the analysis of the 12 pairs of journal files in carry unit, display unit 13 is in virtual disk is tabulated main interface, can show one " recent renewal file ", be presented at recently newly-established in (for example being 1 day, 1 week or January), the new file of revising, like this, the user can obtain up-to-date file easily;
5, on virtual disk is tabulated the toolbar at main interface, can import key word, each virtual disk is searched for, carry out fuzzy query, obtain the listed files of coupling according to filename.
In sum, the method and system of obtaining the virtual machine internal file provided by the invention, by virtual technology directly the resource file of virtual machine virtual be virtual disk under the physical machine, directly visit each virtual disk, and to the file in the virtual disk read, revise, duplicate, operation such as deletion, can not start virtual machine, not need to log under the situation of virtual machine domestic os, conveniently find the file of wanting.Improved work efficiency greatly.
Obviously, those skilled in the art can carry out various changes and modification to invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (16)

1. a method of obtaining the virtual machine internal file is characterized in that, comprising:
The resource file of identification virtual machine;
According to the information of described resource file described resource file is mounted to and is virtual disk on the physical machine;
On described physical machine, show the virtual disk tabulation;
File in each virtual disk is operated.
2. the method for obtaining the virtual machine internal file as claimed in claim 1 is characterized in that described resource file comprises configuration file, content file and journal file.
3. the method for obtaining the virtual machine internal file as claimed in claim 2 is characterized in that, according to the information of described resource file described resource file is mounted on the physical machine to comprise for the step of virtual disk:
By analysis, obtain the catalogue format and the file layout information of described resources of virtual machine to described configuration file;
By analysis, obtain the total data of each file in the described virtual machine to described content file;
By analysis, obtain the fileinfo of setting up and revising recently in the described virtual machine to described journal file.
4. the method for obtaining the virtual machine internal file as claimed in claim 3 is characterized in that, according to the analysis to described journal file, shows the recent renewal file in described virtual disk tabulation.
5. the method for obtaining the virtual machine internal file as claimed in claim 1 is characterized in that, in the described virtual disk tabulation of the main interface display of described virtual machine.
6. the method for obtaining the virtual machine internal file as claimed in claim 1 is characterized in that, the operation that the file in each virtual disk is carried out comprises: read, revise, delete, copy, preserve, inquire about.
7. the method for obtaining the virtual machine internal file as claimed in claim 6 is characterized in that, the file in each virtual disk is made amendment after the operation, and the data of preserve revising are in virtual machine.
8. the method for obtaining the virtual machine internal file as claimed in claim 6 is characterized in that, when the file in each virtual disk is carried out query manipulation, by the input key word, each virtual disk is searched for, carried out fuzzy query, obtain the listed files of coupling according to filename.
9. a system that obtains the virtual machine internal file is characterized in that, comprising:
Recognition unit is used to discern the resource file of virtual machine;
The carry unit is used for according to the information of described resource file described resource file being mounted to and is virtual disk on the physical machine;
Display unit is used for showing the virtual disk tabulation on described physical machine;
Operating unit is used for the file in each virtual disk is operated.
10. the system that obtains the virtual machine internal file as claimed in claim 9 is characterized in that described resource file comprises configuration file, content file and journal file.
11. the system that obtains the virtual machine internal file as claimed in claim 10 is characterized in that, described carry unit is mounted to described resource file on the physical machine according to the information of described resource file and comprises for the step of virtual disk:
By analysis, obtain the catalogue format and the file layout information of described resources of virtual machine to described configuration file;
By analysis, obtain the total data of each file in the described virtual machine to described content file;
By analysis, obtain the fileinfo of setting up and revising recently in the described virtual machine to described journal file.
12. the system that obtains the virtual machine internal file as claimed in claim 11 is characterized in that, described carry unit shows the recent renewal file according to the analysis to described journal file in described virtual disk tabulation.
13. the system that obtains the virtual machine internal file as claimed in claim 9 is characterized in that, described display unit also is used in the described virtual disk tabulation of the main interface display of described virtual machine.
14. the system that obtains the virtual machine internal file as claimed in claim 9 is characterized in that, described operating unit comprises the operation that the file in each virtual disk carries out: read, revise, delete, copy, preserve, inquire about.
15. the system that obtains the virtual machine internal file as claimed in claim 14 is characterized in that, the file in each virtual disk is made amendment after the operation, the data of preserve revising are in virtual machine.
16. the system that obtains the virtual machine internal file as claimed in claim 14 is characterized in that, when the file in each virtual disk is carried out query manipulation, by the input key word, each virtual disk is searched for, carried out fuzzy query, obtain the listed files of coupling according to filename.
CN2011102598938A 2011-09-05 2011-09-05 Method and system for obtaining internal files of virtual machine Pending CN102289513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102598938A CN102289513A (en) 2011-09-05 2011-09-05 Method and system for obtaining internal files of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102598938A CN102289513A (en) 2011-09-05 2011-09-05 Method and system for obtaining internal files of virtual machine

Publications (1)

Publication Number Publication Date
CN102289513A true CN102289513A (en) 2011-12-21

Family

ID=45335939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102598938A Pending CN102289513A (en) 2011-09-05 2011-09-05 Method and system for obtaining internal files of virtual machine

Country Status (1)

Country Link
CN (1) CN102289513A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662783A (en) * 2012-03-20 2012-09-12 浪潮电子信息产业股份有限公司 Method for repairing virtual machine under desktop cloud environment
CN105389495A (en) * 2015-11-03 2016-03-09 国云科技股份有限公司 A method for externally resetting the Windows virtual machine password
CN105573671A (en) * 2015-12-11 2016-05-11 国云科技股份有限公司 A method for obtaining disk files corresponding to virtual machine disks
CN105868056A (en) * 2016-04-07 2016-08-17 北京北信源软件股份有限公司 Method, device and safety virtual machine for acquiring deleted files in Windows virtual machines
CN107145300A (en) * 2016-03-01 2017-09-08 深圳市深信服电子科技有限公司 Data sharing management method and device
CN107463404A (en) * 2017-08-03 2017-12-12 浪潮(北京)电子信息产业有限公司 Increase the method and system of configuration file in a kind of system to virtual machine file
CN103491193B (en) * 2013-09-30 2018-06-05 华为技术有限公司 A kind of method and apparatus of file-sharing
CN109189741A (en) * 2018-09-11 2019-01-11 郑州云海信息技术有限公司 The system and method for shared file between a kind of virtual machine
CN113504872A (en) * 2021-05-14 2021-10-15 济南浪潮数据技术有限公司 Method, system, equipment and medium for mounting virtual disk on cloud physical machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356915B1 (en) * 1999-02-22 2002-03-12 Starbase Corp. Installable file system having virtual file system drive, virtual device driver, and virtual disks
US20030115218A1 (en) * 2001-12-19 2003-06-19 Bobbitt Jared E. Virtual file system
CN101515978A (en) * 2008-02-21 2009-08-26 佳能株式会社 Information processing apparatus and method of controlling therefor
CN101526961A (en) * 2009-03-30 2009-09-09 毛国红 Method for establishing multi-user file system in operating system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356915B1 (en) * 1999-02-22 2002-03-12 Starbase Corp. Installable file system having virtual file system drive, virtual device driver, and virtual disks
US20030115218A1 (en) * 2001-12-19 2003-06-19 Bobbitt Jared E. Virtual file system
CN101515978A (en) * 2008-02-21 2009-08-26 佳能株式会社 Information processing apparatus and method of controlling therefor
CN101526961A (en) * 2009-03-30 2009-09-09 毛国红 Method for establishing multi-user file system in operating system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662783A (en) * 2012-03-20 2012-09-12 浪潮电子信息产业股份有限公司 Method for repairing virtual machine under desktop cloud environment
CN103491193B (en) * 2013-09-30 2018-06-05 华为技术有限公司 A kind of method and apparatus of file-sharing
CN105389495A (en) * 2015-11-03 2016-03-09 国云科技股份有限公司 A method for externally resetting the Windows virtual machine password
CN105573671B (en) * 2015-12-11 2020-02-14 国云科技股份有限公司 Method for acquiring disk file corresponding to virtual machine disk
CN105573671A (en) * 2015-12-11 2016-05-11 国云科技股份有限公司 A method for obtaining disk files corresponding to virtual machine disks
CN107145300A (en) * 2016-03-01 2017-09-08 深圳市深信服电子科技有限公司 Data sharing management method and device
CN107145300B (en) * 2016-03-01 2020-05-19 深信服科技股份有限公司 Data sharing management method and device
CN105868056A (en) * 2016-04-07 2016-08-17 北京北信源软件股份有限公司 Method, device and safety virtual machine for acquiring deleted files in Windows virtual machines
CN105868056B (en) * 2016-04-07 2019-06-21 北京北信源软件股份有限公司 Obtain the method, apparatus and secure virtual machine of deleted document in Windows virtual machine
CN107463404A (en) * 2017-08-03 2017-12-12 浪潮(北京)电子信息产业有限公司 Increase the method and system of configuration file in a kind of system to virtual machine file
CN109189741A (en) * 2018-09-11 2019-01-11 郑州云海信息技术有限公司 The system and method for shared file between a kind of virtual machine
CN113504872A (en) * 2021-05-14 2021-10-15 济南浪潮数据技术有限公司 Method, system, equipment and medium for mounting virtual disk on cloud physical machine
CN113504872B (en) * 2021-05-14 2023-11-03 济南浪潮数据技术有限公司 Method, system, equipment and medium for mounting virtual disk on cloud physical machine

Similar Documents

Publication Publication Date Title
CN102289513A (en) Method and system for obtaining internal files of virtual machine
US20190332230A1 (en) User interface view generation
CN102999369B (en) The method and device of virtual machine upgrading
US9892142B2 (en) Maintaining index data in a database
CN107992355B (en) Method and device for deploying application software and virtual machine
CN111324610A (en) Data synchronization method and device
JP2009540461A (en) Declarative Management Framework (DECLARATIVEMAAGEENTENTRAMEWORK)
US9792075B1 (en) Systems and methods for synthesizing virtual hard drives
US11615061B1 (en) Evaluating workload for database migration recommendations
US9183130B2 (en) Data control system for virtual environment
CN102054034A (en) Implementation method for business basic data persistence of enterprise information system
CN102214109A (en) Method and device for loading plug-ins
US20200201818A1 (en) Handling previews of remotely stored content objects
CN104657200A (en) Method for creating shared disk in virtual machine
CN101960442A (en) Method and apparatus for inputting/outputting data using virtualization technique
JP4432087B2 (en) Database update management system, program and method
US9772951B2 (en) Preemptive guest merging for virtualization hypervisors
CN104156669A (en) Computer information evidence obtaining system
CN101604286B (en) Method for generating keyword-driving table
CN109101323A (en) Snapshot implementing method based on qcow2 format under virtual machine operating status
CN104866425A (en) A Method of Database Pressure Testing
CN115391427A (en) System, method, medium, and apparatus for automatic scaling of Impala
US20240289328A1 (en) Systems and methods for information retrieval from graph-based models
US10628147B2 (en) Detach virtual machine from virtual machine template
US10846011B2 (en) Moving outdated data from a multi-volume virtual disk to a backup storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHANDA COMPUTER (SHANGHAI) CO., LTD.

Free format text: FORMER OWNER: SHENGLE INFORMATION TECHNOLOGY (SHANGHAI) CO., LTD.

Effective date: 20120828

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20120828

Address after: 201203 712-A room, No. 625 Zhangjiang Road, Shanghai, Pudong New Area

Applicant after: Shanda computer (Shanghai) Co., Ltd.

Address before: 201203 Shanghai Guo Shou Jing Road, Zhangjiang High Tech Park of Pudong New Area No. 356 building 3 Room 102

Applicant before: Shengle Information Technology (Shanghai) Co., Ltd.

ASS Succession or assignment of patent right

Owner name: SHENGQU INFORMATION TECH (SHANGHAI) CO., LTD.

Free format text: FORMER OWNER: SHANDA NETWORKING CO., LTD.

Effective date: 20130909

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 201203 PUDONG NEW AREA, SHANGHAI TO: 200241 MINHANG, SHANGHAI

TA01 Transfer of patent application right

Effective date of registration: 20130909

Address after: 200241 No. 1, building 690, blue wave road, Zhangjiang hi tech park, Shanghai

Applicant after: Shengqu Information Technology (Shanghai) Co., Ltd.

Address before: 201203 712-A room, No. 625 Zhangjiang Road, Shanghai, Pudong New Area

Applicant before: Shanda computer (Shanghai) Co., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111221