CN104199683B - A kind of ISO image files loading method and equipment - Google Patents

A kind of ISO image files loading method and equipment Download PDF

Info

Publication number
CN104199683B
CN104199683B CN201410386278.7A CN201410386278A CN104199683B CN 104199683 B CN104199683 B CN 104199683B CN 201410386278 A CN201410386278 A CN 201410386278A CN 104199683 B CN104199683 B CN 104199683B
Authority
CN
China
Prior art keywords
nbd
iso
physical server
virtual
virtual machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410386278.7A
Other languages
Chinese (zh)
Other versions
CN104199683A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410386278.7A priority Critical patent/CN104199683B/en
Publication of CN104199683A publication Critical patent/CN104199683A/en
Application granted granted Critical
Publication of CN104199683B publication Critical patent/CN104199683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of ISO image files loading method and equipment, this method includes:ISO image files are loaded into NBD services by VNC clients, and the address information and port information that VNC clients are carried in ISO load request message, ISO load request message are sent to physical server;Physical server utilizes the address information and port information of VNC clients, NBD is set up with VNC clients to be connected, and be mapped to the NBD service ends on local NBD block devices, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier;The virtual machine is connected by the NBD, and ISO image files are obtained from the NBD service ends.In the embodiment of the present invention, it is possible to reduce the workload that ISO image files are uploaded, and save the memory space of physical server.

Description

A kind of ISO image files loading method and equipment
Technical field
The present invention relates to communication technical field, more particularly to a kind of ISO image files loading method and equipment.
Background technology
With the continuous improvement of hardware speed, the performance of physical server is greatly promoted, the part physical clothes of data center The utilization rate of business device has declined.In order to improve the hardware utilization of physical server, the O&M cost of data center is reduced, it is empty Planization technology has obtained very big development.By software virtual machine, one or many can be simulated on a physical server Platform virtual machine, these virtual machines are operated just as real computer, for example, can be applied with installation operation system, installation Program, access Internet resources etc..From the perspective of user, it is the application program operated on physical server.
With the continuous intensification of IT application in enterprises degree, system manager needs to dispose more void on physical server Plan machine, and corresponding operating system and application software are installed for virtual machine.For virtual machine installation operation system and application software During, virtual machine needs to use a kind of ISO (image file form) image file (i.e. compact disc image files), based on this, It is currently needed for uploading to ISO image files on the hard disk of physical server, the ISO image files is stored by physical server. When for virtual machine installation operation system and application software, corresponding ISO mirrors are read on the hard disk of virtual machine to physical server It is this virtual machine installation operation system and application software as file, and based on the ISO image files currently read.
But, because ISO image files are than larger, therefore, ISO image files are uploaded on the hard disk of physical server Workload it is very big, and a large amount of memory spaces of physical server can be taken.
The content of the invention
The embodiment of the present invention provides a kind of ISO image files loading method, applied to including Virtual network computer VNC visitors In the system of family end and physical server, the VNC clients are configured to network control techology NBD service ends, by the physics Server is configured to NBD clients, and methods described includes:
ISO image files are loaded into NBD services by the VNC clients;
The VNC clients send ISO load request message, the ISO load requests message to the physical server In carry the address information and port information of the VNC clients;
Wherein, the ISO load requests message is used for the address for indicating that the physical server utilizes the VNC clients Information and port information, set up NBD with the VNC clients and are connected, and the NBD service ends are mapped into local NBD On block device, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier, led to by the virtual machine The NBD connections are crossed, obtaining ISO image files from the NBD services of the NBD service ends is loaded into locally.
Methods described further comprises:The VNC clients are described when knowing that needs cancel loading ISO image files VNC clients send ISO loading cancel request messages to the physical server, and the ISO loadings cancel request message is used for Indicate that the physical server unloads the NBD block devices from the virtual drive of the virtual machine.
The VNC clients send ISO load request message to the physical server, specifically include:The VNC client The ISO load requests message is sent to virtual management platform by end, and the VNC visitors are inquired about by the virtual management platform The corresponding virtual machine in family end, and the physical server where the virtual machine is obtained, and the ISO load requests message is forwarded To the physical server;
The VNC clients send ISO loading cancel request messages to the physical server, specifically include:The VNC ISO loadings cancel request message is sent to virtual management platform by client, is inquired about by the virtual management platform The corresponding virtual machine of the VNC clients, obtains the physical server where the virtual machine, and the ISO is loaded cancelled Request message is transmitted to the physical server.
The embodiment of the present invention provides a kind of ISO image files loading method, applied to including Virtual network computer VNC visitors In the system of family end and physical server, the VNC clients are configured to network control techology NBD service ends, by the physics Server is configured to NBD clients, and methods described includes:
The physical server receives the ISO load request message from the VNC clients, the ISO load requests The address information and port information of the VNC clients are carried in message;
The physical server is believed after the ISO load requests message is received using the address of the VNC clients Breath and port information, set up NBD with the VNC clients and are connected, and the NBD service ends are mapped to local NBD blocks In equipment, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier, passed through by the virtual machine The NBD connections, acquisition ISO image files are loaded into locally from the NBD services of the NBD service ends;
Wherein, ISO image files are loaded with by the VNC clients in the NBD services.
The NBD block devices are loaded into the mistake in the virtual drive of virtual machine by the physical server as CD-ROM drive carrier Journey, is specifically included:
Whether the physical server judges current just in load document in the virtual drive of the virtual machine;
If not in load document in virtual drive, the physical server directly using the NBD block devices as CD-ROM drive carrier is loaded into the virtual drive of the virtual machine;If just in load document in virtual drive, the physics clothes Business device unloads the current file loaded in virtual drive, and the NBD block devices are loaded into institute as CD-ROM drive carrier In the virtual drive for stating virtual machine.
Methods described further comprises:When needing to cancel loading ISO image files, the physical server is received and come from The VNC clients ISO loading cancel request message, and stop using the NBD block devices as the virtual machine CD-ROM drive Carrier is loaded into the virtual drive of virtual machine, and unloads from the virtual drive of the virtual machine NBD block devices.
The embodiment of the present invention provides a kind of VNC clients, is applied to including the VNC clients and physical server In system, the VNC clients are configured to network control techology NBD service ends, the physical server is configured to NBD client End, the VNC clients are specifically included:
Load-on module, for ISO image files to be loaded into NBD services;
Sending module, for sending ISO load request message, the ISO load requests message to the physical server In carry the address information and port information of the VNC clients;
Wherein, the ISO load requests message is used for the address for indicating that the physical server utilizes the VNC clients Information and port information, set up NBD with the VNC clients and are connected, and the NBD service ends are mapped into local NBD On block device, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier, led to by the virtual machine The NBD connections are crossed, obtaining ISO image files from the NBD services of the NBD service ends is loaded into locally.
The sending module, is additionally operable to, when knowing that needs cancel loading ISO image files, send out to the physical server ISO is sent to load cancel request message, ISO loading cancel request message is used to indicating the physical server from described virtual The NBD block devices are unloaded in the virtual drive of machine.
The sending module, is further used for when sending ISO load request message to the physical server, will be described ISO load request message is sent to virtual management platform, and the VNC clients correspondence is inquired about by the virtual management platform Virtual machine, and obtain the physical server where the virtual machine, and the ISO load requests message is transmitted to the thing Manage server;
When sending ISO loading cancel request messages to the physical server, the ISO is loaded into cancel request message Virtual management platform is sent to, the corresponding virtual machine of the VNC clients is inquired about by the virtual management platform, institute is obtained The physical server where virtual machine is stated, and ISO loadings cancel request message is transmitted to the physical server.
The embodiment of the present invention provides a kind of physical server, applied to including Virtual network computer VNC clients and institute In the system for stating physical server, the VNC clients are configured to network control techology NBD service ends, by the physical services Device is configured to NBD clients, and the physical server is specifically included:
Receiving module, for receiving the ISO load request message from the VNC clients, the ISO load requests disappear The address information and port information of the VNC clients are carried in breath;
Module is set up, for after the ISO load requests message is received, believing using the address of the VNC clients Breath and port information, set up NBD with the VNC clients and are connected;
Load-on module, for NBD service ends to be mapped to local NBD block devices, and using the NBD block devices as CD-ROM drive carrier is loaded into the virtual drive of virtual machine, is connected by the virtual machine by the NBD, from the NBD service ends NBD service in obtain ISO image files be loaded into locally;Wherein, ISO mirrors are loaded with by VNC clients in the NBD services As file.
It is current whether just in load document in the load-on module, the virtual drive specifically for judging the virtual machine; If not in load document in virtual drive, directly the NBD block devices are loaded into as CD-ROM drive carrier described virtual In the virtual drive of machine;
If just the current file loaded in virtual drive is unloaded in load document in virtual drive, and will The NBD block devices are loaded into as CD-ROM drive carrier in the virtual drive of the virtual machine.
The receiving module, is additionally operable to, when needing to cancel loading ISO image files, receive and come from the VNC clients ISO loading cancel request message;
The load-on module, is additionally operable to stop the CD-ROM drive carrier of the NBD block devices as the virtual machine being loaded into In the virtual drive of virtual machine, and unload from the virtual drive of the virtual machine NBD block devices.
Based on above-mentioned technical proposal, in the embodiment of the present invention, VNC (Virtual Network Computer, virtual network Computer) client by by ISO image files be loaded into NBD (Network Block Device, network control techology) service In so that the virtual machine on physical server directly can get ISO image files from NBD services, and by loading ISO Image file is this virtual machine installation operation system and application software.In above process, VNC clients need not be by ISO mirrors As file is uploaded on the hard disk of physical server, so as to reduce the workload of ISO image files upload, streamlining management person's matches somebody with somebody Work is put, and improves the operating efficiency of keeper and virtualizes the experience of user.Further, physical server need not be deposited ISO image files are stored up, so as to save the memory space of physical server.
Brief description of the drawings
Fig. 1 is the application scenarios schematic diagram that the embodiment of the present invention is proposed;
Fig. 2 and Fig. 3 are the ISO image file loading method flow charts that the embodiment of the present invention is proposed;
Fig. 4 is a kind of structural representation for VNC clients that the embodiment of the present invention is proposed;
Fig. 5 is a kind of structural representation for physical server that the embodiment of the present invention is proposed.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of ISO image files loading method, application Have what is simulated in the system including VNC clients, virtual management platform and physical server, on the physical server One or more virtual machine.Wherein, VNC clients are used to provide ISO image files for the virtual machine on physical server.Virtually Change management platform by monitoring the running situation of physical server and each virtual machine in real time, realize the pipe to whole virtual resources The operations such as reason, maintenance and deployment.Physical server is used to carry virtual machine, and physical server is referred to as the hosted service of virtual machine Device.
, it is necessary to which VNC clients are configured into NBD service ends in the embodiment of the present invention, and physical server is configured to NBD Client.Wherein, NBD services are a kind of can to allow NBD clients by the disk space of long-range NBD service ends as a block Equipment is come the technology that uses.For NBD clients, the disk space of NBD service ends is just as one piece of hard disk, NBD visitors File in the disk space of NBD service ends very easily can be loaded into locally by family end.Further, in order to which VNC is objective Family end is configured to NBD service ends, it is only necessary to NBD service ending tools are installed in VNC clients, based on NBD service end works VNC clients, can be configured to NBD service ends, specific configuration process is no longer repeated in detail herein by tool.In order to which physics is taken Business device is configured to NBD clients, it is only necessary to NBD client utilitys are installed on physical server, based on NBD client works Physical server, can be configured to NBD clients, specific configuration process is no longer repeated in detail herein by tool.
As shown in Fig. 2 the ISO image file loading methods specifically may comprise steps of:
Step 201, ISO image files are loaded into NBD services by VNC clients.
Specifically, when needing to load ISO image files for virtual machine, the selection of VNC clients needs to add for the virtual machine The ISO image files of load.VNC clients are after selection ISO image files, because VNC clients are as NBD service ends, because This, VNC clients can be serviced with automatic running NBD, and the ISO image files of selection are loaded into NBD services, to pass through ISO image files are supplied to the virtual machine on physical server by NBD services, the virtual machine is loaded the ISO image files.
Step 202, VNC clients send ISO load request message to physical server.Wherein, the ISO load requests disappear The address information and port information of this VNC clients are carried in breath.
In the embodiment of the present invention, VNC clients send the process of ISO load request message, specific bag to physical server Include but be not limited to following manner:ISO load request message is sent to virtual management platform by VNC clients, is managed by virtualization Platform inquires about the corresponding virtual machine of VNC clients, and obtains the physical server where the virtual machine, and ISO is loaded Request message is transmitted to the physical server.
Specifically, VNC clients after ISO image files to be loaded into NBD services, it is necessary to virtual management platform Send ISO load request message, carry in the ISO load request message VNC clients address information (such as IP address) and Port information (such as port numbers), and ISO load requests message is used for request of loading ISO image files.Because virtual management is flat Platform is used for the running situation for monitoring physical server and each virtual machine in real time, and safeguards the monitoring relation of VNC client and virtual machine And the monitoring relation of virtual machine and physical server, therefore, virtual management platform after ISO load request message is received, By inquiring about the monitoring relation of VNC client and virtual machine, the corresponding virtual machine of VNC clients is determined, and by inquiring about virtual machine With the monitoring relation of physical server, the physical server where virtual machine is determined.Afterwards, virtual management platform adds ISO Carry request message and be transmitted to the physical server.
Step 203, physical server receives the ISO load request message from VNC clients.Wherein, ISO loadings please Seek the address information and port information that VNC clients are carried in message.
Step 204, physical server utilize the address information of VNC clients that is carried in ISO load request message and Port information, sets up NBD connections between physical server and VNC clients.
Specifically, because VNC clients are NBD service ends, physical server is NBD clients, therefore, physical server After the address information and port information of VNC clients is known, based on NBD services, physical server can be in physical services NBD connections are set up between device and VNC clients.
Step 205, NBD service ends are mapped on local NBD block devices by physical server, and by the NBD block devices It is loaded into the virtual drive of virtual machine, is connected by virtual machine by NBD as CD-ROM drive carrier, is serviced from the NBD of NBD service ends Middle acquisition ISO image files are loaded into locally, and are that this virtual machine installation operation system and application are soft by the ISO image files Part.
In the embodiment of the present invention, NBD block devices are loaded into the virtual optical of virtual machine by physical server as CD-ROM drive carrier Process in drive, is specifically including but not limited to following manner:Physical server judge in the virtual drive of virtual machine it is current whether Just in load document;If not in load document in virtual drive, physical server directly regard NBD block devices as CD-ROM drive Carrier is loaded into the virtual drive of virtual machine;If just in load document in virtual drive, physical server is by virtual optical The current file unloading loaded in drive, and be loaded into NBD block devices as CD-ROM drive carrier in the virtual drive of virtual machine.
Specifically, physical server is after ISO load request message is received, NBD clients are run, and locally searching Corresponding NBD service ends.Afterwards, physical server utilizes the address information of the VNC clients carried in ISO load request message And port information, NBD connections are set up between physical server and VNC clients, and NBD service ends are mapped to local On NBD block devices.Afterwards, physical server unloads the current file loaded in virtual drive, and NBD block devices are made It is loaded into the virtual drive of virtual machine, is connected by virtual machine by NBD for CD-ROM drive carrier, from NBD service ends (i.e. VNC client End) NBD service in obtain ISO image files be loaded into locally, and by the ISO image files be this virtual machine install accordingly Operating system and application software.
In the embodiment of the present invention, virtual machine is connected by NBD, and ISO mirror images text is obtained from the NBD services of NBD service ends After part is loaded into locally, physical server can also send ISO loading success messages to virtual management platform, by virtualizing ISO loading success messages are transmitted to VNC clients by management platform.So far, VNC clients know that ISO image files are virtual Machine is loaded successfully.
Based on above-mentioned technical proposal, in the embodiment of the present invention, VNC clients by ISO image files by being loaded into NBD clothes In business so that the virtual machine on physical server can directly get ISO image files from NBD services, and pass through loading ISO image files are this virtual machine installation operation system and application software.In above process, VNC clients need not be by ISO Image file is uploaded on the hard disk of physical server, so that the workload of ISO image files upload is reduced, streamlining management person's Configuration work, and improve the operating efficiency of keeper and virtualize the experience of user.Further, physical server need not ISO image files are stored, so as to save the memory space of physical server.
In the embodiment of the present invention, ISO image files loading procedure (i.e. virtual machine obtain ISO image files be loaded into In locally), if necessary to cancel loading ISO image files, that is, the loading procedure of ISO image files is disconnected, as shown in figure 3, should ISO image file loading methods are further comprising the steps of:
Step 301, VNC clients are knowing that VNC clients are to physical services when needing to cancel loading ISO image files Device sends ISO loading cancel request messages.Wherein, the ISO loads cancel request message and is used to indicate physical server from virtual NBD block devices are unloaded in the virtual drive of machine.
In the embodiment of the present invention, VNC clients send the process that ISO loads cancel request message to physical server, tool Body includes but is not limited to following manner:ISO loadings cancel request message is sent to virtual management platform by VNC clients, empty The corresponding virtual machine of planization management platform inquiry VNC clients, obtains the physical server where virtual machine, and ISO is loaded Cancel request message is transmitted to physical server.
Specifically, user is when loading ISO image files are cancelled in the selection of VNC clients, VNC clients will know that needs take Disappear loading ISO image files, and sends ISO loading cancel request messages, ISO loading cancellation requests to virtual management platform Message is used to indicate that physical server unloads NBD block devices from the virtual drive of virtual machine.Because virtual management platform is used In the running situation of monitoring physical server and each virtual machine in real time, and safeguard VNC client and virtual machine monitoring relation and The monitoring relation of virtual machine and physical server, therefore, virtual management platform pass through after ISO loading cancel request messages The monitoring relation of VNC client and virtual machine is inquired about, the corresponding virtual machine of VNC clients is determined, and by inquiring about virtual machine and thing The monitoring relation of server is managed, the physical server where virtual machine is determined.Afterwards, virtual management platform takes ISO loadings The request message that disappears is transmitted to the physical server.
Step 302, physical server receives the ISO loading cancel request messages from VNC clients.
Step 303, physical server stops NBD block devices as virtual after ISO loading cancel request messages are received The CD-ROM drive carrier of machine is loaded into the virtual drive of virtual machine, and the unloading NBD block devices from the virtual drive of virtual machine.
Specifically, because ISO loading cancel request messages are used to indicate physical server from the virtual drive of virtual machine Unload NBD block devices, therefore, physical server receive ISO loading cancel request message after, stop using NBD block devices as The CD-ROM drive carrier of virtual machine is loaded into the virtual drive of virtual machine, and the unloading NBD block devices from the virtual drive of virtual machine, And NBD clients out of service, and disconnect the mapping relations of NBD service ends and NBD block devices.So far, virtual machine will not from ISO image files are obtained in the NBD services of NBD service ends to be loaded into locally, so as to cancel loading ISO image files.
In the embodiment of the present invention, physical server is stopping the CD-ROM drive carrier of NBD block devices as virtual machine being loaded into In the virtual drive of virtual machine, and after unloading from the virtual drive of virtual machine NBD block devices, physical server can also be to Virtual management platform sends ISO loadings and cancels success message.Afterwards, ISO loadings are cancelled successfully by virtual management platform Message is transmitted to VNC clients.So far, VNC clients are known that ISO image files are cancelled and loaded successfully.Afterwards, VNC client End can also stop NBD services.
In the embodiment of the present invention, ISO image files loading procedure (i.e. virtual machine obtain ISO image files be loaded into In locally), if necessary to change ISO image files (i.e. user changes ISO image files in the selection of VNC clients), Ji Jiangxu When the ISO image files that plan machine is currently loaded are replaced by another ISO image file, then the corresponding flow that performs is:VNC client Hold to physical server and send ISO loading cancel request messages, and perform the flow of step 301- steps 303.VNC clients are obtained After knowing that ISO image files are cancelled and loaded successfully, new ISO image files are loaded into during NBD services by VNC clients, and ISO load request message is sent to physical server, and performs the flow of step 201- steps 205.Based on this process, VNC visitors Family end can realize the Renewal process of ISO image files.
Based on the inventive concept same with the above method, a kind of Virtual network computer is additionally provided in the embodiment of the present invention VNC clients, applied in the system including the VNC clients and physical server, net is configured to by the VNC clients Network block device NBD service ends, NBD clients are configured to by the physical server, as shown in figure 4, the VNC clients are specific Including:
Load-on module 11, for ISO image files to be loaded into NBD services;
Sending module 12, for sending ISO load request message to the physical server, the ISO load requests disappear The address information and port information of the VNC clients are carried in breath;
Wherein, the ISO load requests message is used for the address for indicating that the physical server utilizes the VNC clients Information and port information, set up NBD with the VNC clients and are connected, and the NBD service ends are mapped into local NBD On block device, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier, led to by the virtual machine The NBD connections are crossed, obtaining ISO image files from the NBD services of the NBD service ends is loaded into locally.
The sending module 12, is additionally operable to when knowing that needs cancel loading ISO image files, to the physical server ISO loading cancel request messages are sent, the ISO loadings cancel request message is used to indicate the physical server from the void The NBD block devices are unloaded in the virtual drive of plan machine.
The sending module 12, is further used for when sending ISO load request message to the physical server, by institute State ISO load request message and be sent to virtual management platform, the VNC clients pair are inquired about by the virtual management platform The virtual machine answered, and obtain the physical server where the virtual machine, and the ISO load requests message is transmitted to described Physical server;
When sending ISO loading cancel request messages to the physical server, the ISO is loaded into cancel request message Virtual management platform is sent to, the corresponding virtual machine of the VNC clients is inquired about by the virtual management platform, institute is obtained The physical server where virtual machine is stated, and ISO loadings cancel request message is transmitted to the physical server.
Wherein, the modules of apparatus of the present invention can be integrated in one, and can also be deployed separately.Above-mentioned module can be closed And be a module, multiple submodule can also be further split into.
Based on the inventive concept same with the above method, a kind of physical server is additionally provided in the embodiment of the present invention, should For in the system including Virtual network computer VNC clients and the physical server, the VNC clients to be configured to Network control techology NBD service ends, NBD clients are configured to by the physical server, as shown in figure 5, the physical server Specifically include:
Receiving module 21, for receiving the ISO load request message from VNC clients, the ISO load requests message In carry the address information and port information of the VNC clients;
Module 22 is set up, for after the ISO load requests message is received, utilizing the address of the VNC clients Information and port information, set up NBD with the VNC clients and are connected;
Load-on module 23, makees for NBD service ends to be mapped to local NBD block devices, and by the NBD block devices It is loaded into the virtual drive of virtual machine, is connected by the virtual machine by the NBD for CD-ROM drive carrier, from NBD service ISO image files are obtained in the NBD services at end to be loaded into locally;Wherein, ISO is loaded with by VNC clients in the NBD services Image file.
Currently whether text is loaded in the load-on module 23, the virtual drive specifically for judging the virtual machine Part;If not in load document in virtual drive, the NBD block devices directly are loaded into the void as CD-ROM drive carrier In the virtual drive of plan machine;If just in load document in virtual drive, by the current file loaded in virtual drive Unloading, and the NBD block devices are loaded into as CD-ROM drive carrier in the virtual drive of the virtual machine.
The receiving module 21, is additionally operable to, when needing to cancel loading ISO image files, receive and come from the VNC client The ISO loading cancel request messages at end;
The load-on module 23, is additionally operable to stop loading in the CD-ROM drive carrier of the NBD block devices as the virtual machine Into the virtual drive of virtual machine, and unload from the virtual drive of the virtual machine NBD block devices.
Wherein, the modules of apparatus of the present invention can be integrated in one, and can also be deployed separately.Above-mentioned module can be closed And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more Good embodiment.Understood based on such, what technical scheme substantially contributed to prior art in other words Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including Dry instruction is to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform this hair Method described in each bright embodiment.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, Module or flow in accompanying drawing are not necessarily implemented necessary to the present invention.It will be appreciated by those skilled in the art that in embodiment Device in module can according to embodiment description carry out be distributed in the device of embodiment, can also carry out respective change position In one or more devices different from the present embodiment.The module of above-described embodiment can be merged into a module, can also It is further split into multiple submodule.The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.With Several specific embodiments of the upper disclosed only present invention, still, the present invention is not limited to this, any those skilled in the art Member can think of change should all fall into protection scope of the present invention.

Claims (12)

1. a kind of ISO image files loading method, applied to including Virtual network computer VNC clients and physical server In system, it is characterised in that the VNC clients are configured into network control techology NBD service ends, the physical server is matched somebody with somebody NBD clients are set to, methods described includes:
ISO image files are loaded into NBD services by the VNC clients;
The VNC clients send in ISO load request message, the ISO load requests message to the physical server and taken Address information and port information with the VNC clients;
Wherein, the ISO load requests message is used for the address information for indicating that the physical server utilizes the VNC clients And port information, set up NBD with the VNC clients and be connected, and the NBD service ends are mapped to local NBD blocks and set It is standby upper, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier, institute is passed through by the virtual machine NBD connections are stated, obtaining ISO image files from the NBD services of the NBD service ends is loaded into locally.
2. the method as described in claim 1, it is characterised in that methods described further comprises:
The VNC clients are knowing that the VNC clients are to the physical services when needing to cancel loading ISO image files Device sends ISO loading cancel request messages, and ISO loading cancel request message is used to indicating the physical server from described The NBD block devices are unloaded in the virtual drive of virtual machine.
3. method as claimed in claim 2, it is characterised in that
The VNC clients send ISO load request message to the physical server, specifically include:The VNC clients will The ISO load requests message is sent to virtual management platform, and the VNC clients are inquired about by the virtual management platform Corresponding virtual machine, and the physical server where the virtual machine is obtained, and the ISO load requests message is transmitted to institute State physical server;
The VNC clients send ISO loading cancel request messages to the physical server, specifically include:The VNC client ISO loadings cancel request message is sent to virtual management platform by end, inquires about described by the virtual management platform The corresponding virtual machine of VNC clients, obtains the physical server where the virtual machine, and the ISO is loaded into cancellation request Message is transmitted to the physical server.
4. a kind of ISO image files loading method, applied to including Virtual network computer VNC clients and physical server In system, it is characterised in that the VNC clients are configured into network control techology NBD service ends, the physical server is matched somebody with somebody NBD clients are set to, methods described includes:
The physical server receives the ISO load request message from the VNC clients, the ISO load requests message In carry the address information and port information of the VNC clients;
The physical server after the ISO load requests message is received, using the address information of the VNC clients with And port information, set up NBD with the VNC clients and be connected, and the NBD service ends are mapped to local NBD block devices On, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier, passed through by the virtual machine described NBD connections, acquisition ISO image files are loaded into locally from the NBD services of the NBD service ends;
Wherein, ISO image files are loaded with by the VNC clients in the NBD services.
5. method as claimed in claim 4, it is characterised in that the physical server regard the NBD block devices as CD-ROM drive Carrier is loaded into the process in the virtual drive of virtual machine, specifically includes:
Whether the physical server judges current just in load document in the virtual drive of the virtual machine;
If not in load document in virtual drive, the physical server directly regard the NBD block devices as CD-ROM drive Carrier is loaded into the virtual drive of the virtual machine;If just in load document in virtual drive, the physical server By the current file unloading loaded in virtual drive, and the NBD block devices are loaded into the void as CD-ROM drive carrier In the virtual drive of plan machine.
6. method as claimed in claim 4, it is characterised in that methods described further comprises:
When needing to cancel loading ISO image files, the physical server receives the ISO loadings from the VNC clients Cancel request message, and stop the CD-ROM drive carrier of the NBD block devices as the virtual machine being loaded into the virtual of virtual machine In CD-ROM drive, and unload from the virtual drive of the virtual machine NBD block devices.
7. a kind of Virtual network computer VNC clients, applied to including the system of the VNC clients and physical server In, it is characterised in that the VNC clients are configured to network control techology NBD service ends, the physical server is configured to NBD clients, the VNC clients are specifically included:
Load-on module, for ISO image files to be loaded into NBD services;
Sending module, takes for being sent to the physical server in ISO load request message, the ISO load requests message Address information and port information with the VNC clients;
Wherein, the ISO load requests message is used for the address information for indicating that the physical server utilizes the VNC clients And port information, set up NBD with the VNC clients and be connected, and the NBD service ends are mapped to local NBD blocks and set It is standby upper, and the NBD block devices are loaded into the virtual drive of virtual machine as CD-ROM drive carrier, institute is passed through by the virtual machine NBD connections are stated, obtaining ISO image files from the NBD services of the NBD service ends is loaded into locally.
8. VNC clients as claimed in claim 7, it is characterised in that
The sending module, is additionally operable to, when knowing that needs cancel loading ISO image files, send to the physical server ISO loads cancel request message, and the ISO loadings cancel request message is used to indicate the physical server from the virtual machine Virtual drive in unload the NBD block devices.
9. VNC clients as claimed in claim 8, it is characterised in that
The sending module, is further used for when sending ISO load request message to the physical server, by the ISO Load request message is sent to virtual management platform, and it is corresponding to inquire about the VNC clients by the virtual management platform Virtual machine, and the physical server where the virtual machine is obtained, and the ISO load requests message is transmitted to the physics Server;
When sending ISO loading cancel request messages to the physical server, ISO loading cancel request messages are sent Virtual management platform is given, the corresponding virtual machine of the VNC clients is inquired about by the virtual management platform, the void is obtained Physical server where plan machine, and ISO loadings cancel request message is transmitted to the physical server.
10. a kind of physical server, applied to the system including Virtual network computer VNC clients and the physical server In, it is characterised in that the VNC clients are configured to network control techology NBD service ends, the physical server is configured to NBD clients, the physical server is specifically included:
Receiving module, for receiving in the ISO load request message from the VNC clients, the ISO load requests message Carry the address information and port information of the VNC clients;
Set up module, for after the ISO load requests message is received, using the address information of the VNC clients with And port information, set up NBD with the VNC clients and be connected;
Load-on module, CD-ROM drive is used as NBD service ends to be mapped to local NBD block devices, and using the NBD block devices Carrier is loaded into the virtual drive of virtual machine, is connected by the virtual machine by the NBD, from the NBD of the NBD service ends ISO image files are obtained in service to be loaded into locally;Wherein, ISO mirror images text is loaded with by VNC clients in the NBD services Part.
11. physical server as claimed in claim 10, it is characterised in that
It is current whether just in load document in the load-on module, the virtual drive specifically for judging the virtual machine;If The NBD block devices virtual machine is not loaded into directly then as CD-ROM drive carrier in load document in virtual drive In virtual drive;
If just the current file loaded in virtual drive is unloaded in load document in virtual drive, and will be described NBD block devices are loaded into as CD-ROM drive carrier in the virtual drive of the virtual machine.
12. physical server as claimed in claim 10, it is characterised in that
The receiving module, is additionally operable to, when needing to cancel loading ISO image files, receive the ISO from the VNC clients Load cancel request message;
The load-on module, is additionally operable to stop the CD-ROM drive carrier of the NBD block devices as the virtual machine being loaded into virtually In the virtual drive of machine, and unload from the virtual drive of the virtual machine NBD block devices.
CN201410386278.7A 2014-08-07 2014-08-07 A kind of ISO image files loading method and equipment Active CN104199683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410386278.7A CN104199683B (en) 2014-08-07 2014-08-07 A kind of ISO image files loading method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410386278.7A CN104199683B (en) 2014-08-07 2014-08-07 A kind of ISO image files loading method and equipment

Publications (2)

Publication Number Publication Date
CN104199683A CN104199683A (en) 2014-12-10
CN104199683B true CN104199683B (en) 2017-10-17

Family

ID=52084980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410386278.7A Active CN104199683B (en) 2014-08-07 2014-08-07 A kind of ISO image files loading method and equipment

Country Status (1)

Country Link
CN (1) CN104199683B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291486B (en) 2016-04-11 2020-12-04 新华三信息技术有限公司 Installation method and device of operating system
CN107544864B (en) * 2016-06-24 2021-08-13 深信服科技股份有限公司 Virtual machine data copying method and virtual machine data copying system
CN107968794B (en) * 2016-10-18 2023-05-12 中兴通讯股份有限公司 Virtual CD-ROM mounting method and system, server and terminal
CN107515767A (en) * 2017-09-11 2017-12-26 郑州云海信息技术有限公司 The method and apparatus of installation operation system on a virtual machine
CN110399248B (en) * 2018-04-25 2023-08-15 阿里巴巴集团控股有限公司 Image file creation and acquisition method, device and server
CN110618896A (en) * 2018-06-19 2019-12-27 深信服科技股份有限公司 Data processing method and device, equipment and computer storage medium
CN111371885B (en) * 2020-02-29 2022-02-18 苏州浪潮智能科技有限公司 Method, device, equipment and medium for transmitting file to VMWare virtual machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473064A (en) * 2013-09-18 2013-12-25 国云科技股份有限公司 Method for monitoring use conditions of magnetic disk of virtual machine in host machine
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364638B2 (en) * 2005-09-15 2013-01-29 Ca, Inc. Automated filer technique for use in virtualized appliances and applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file
CN103473064A (en) * 2013-09-18 2013-12-25 国云科技股份有限公司 Method for monitoring use conditions of magnetic disk of virtual machine in host machine

Also Published As

Publication number Publication date
CN104199683A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN104199683B (en) A kind of ISO image files loading method and equipment
US9038068B2 (en) Capacity reclamation and resource adjustment
CN103399778B (en) A kind of virtual machine online bulk migration method and apparatus
KR101634409B1 (en) Techniques for resource location and migration across data centers
US8978032B2 (en) Host naming application programming interface
US10575121B2 (en) System and method for instantiation of services at a location based on a policy
CN103631633B (en) Virtual machine total-system online migration method, device and system
US8930668B2 (en) Storage black box
US8694685B2 (en) Migrating virtual machines with adaptive compression
US8261282B1 (en) System and method for virtual machine host load protection
US9038086B2 (en) End to end modular information technology system
US11907766B2 (en) Shared enterprise cloud
CN102637137A (en) Policy-based application delivery
CN106254471A (en) Resource United Dispatching method and system under a kind of isomery cloud environment
CN108268211A (en) A kind of data processing method and device
CN110460635A (en) One kind is towards unpiloted edge discharging method and device
CN112328366B (en) Efficient cloud platform host protection method and system
CN104731848A (en) Managing access to data on a client device during low-power state
US10025640B2 (en) Balancing work of tasks at a sending node of a transaction server
US10938655B2 (en) Enterprise cloud garbage collector
US10171313B2 (en) Managing workload to meet execution criterion in a hybrid cloud environment
US10887375B2 (en) Shared memory device
CN110011850B (en) Management method and device for services in cloud computing system
US10395061B2 (en) Efficient auditing of data in object storage
US20140164721A1 (en) Cloud management of device memory based on geographical location

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant