A kind of Virtualbox real-time migration method based on web
Technical field
The present invention relates to the virtual machine real-time migration, specifically a kind of Virtualbox real-time migration method based on web.
Background technology
The blank of cloud computing on IT market progressively forms, and it provides brand-new opportunity for supplier and has expedited the emergence of the transformation of conventional I T product.IT enterprises are in the exploitation of cloud computing at present; Do maximum be virtual, its flexibility, extensive applicability and to depositing the compatibility of application program; Reduced the threshold of cloud computing, made more susceptible to user acceptance in market based on virtualized IaaS platform.
Virtual migration is a key technology in virtual, and it uses in company with the high availability solution such as heartbeat together, can bring the system of " never casting anchor " to us.
The virtual migration here refers to real-time migration, when guaranteeing that promptly virtual in-fight service normally moves, is allowed to condition between the different physical hosts and moves.One of condition that realizes real-time migration is exactly to want to leave the virtual machine storage file in public memory space earlier; Therefore need to set a space of sharing storage (Shared Storage); Let two entity main frames realizing migration can both be connected to the virtual media file of sharing on the memory space, comprise virtual disk, virtual CD and virtual floppy disk.
Real-time migration is encapsulated in a file to each configuration file of virtual machine, sees through express network then, be sent to this package file and internal memory running status rapidly on the other physical machine from a physical machine, during virtual machine keep running status always.Under the prior art condition, software virtual machine all need be shared storage like VMware, KVM, Hyper-V, Xen mostly.VirtualBox supports the NFS of NFS and SMB/CIFS agreement, can support that also iSCSI is connected to the SAN network.
Though with easy-to-use well-known, being the characteristic of this heavyweight of real-time migration, VirtualBox is not equipped with the graphical operation interface.When Virtualbox is carried out real-time migration; The user will carry out a lot of order at the destination host end earlier and open shift function; Migration port and password are set; Continue input one string command at the source host end then and specify destination host and the passwords that will move to, such order is too loaded down with trivial details for domestic consumer, the ease for use of also having cut down virtualbox.
Summary of the invention
The purpose of this invention is to provide a kind of method that network is realized virtualbox real-time migration function that is used for; It provides a friendly more operation interface based on web for the user; Make the user can control many remote machines and realize the virtual migration between any two, improved the ease for use of virtualbox.
The objective of the invention is to realize by following mode:
A kind of Virtualbox real-time migration method based on web is characterized in that, may further comprise the steps:
1) sets shared memory space, the virtual machine storage file is left in the public memory space;
2) on source host of implementing to move and destination host, set up the web service;
3) land on the webpage of destination host transfer parameter is set;
4) webpage that lands source host is inserted transfer parameter, begins migration.
Destination host is connected the virtual media file on the shared memory space that the virtual machine on two main frames realizing moving can be visited with the public memory space of source host with the virtual memory space place.
It is virtual machine title, port numbers and password that webpage on the destination host is provided with parameter, clicks the Web service of confirming the back destination host and moves preparation with this parameter setting Virtualbox.
The transfer parameter that webpage on the source host is inserted is port numbers and the password that configures on destination host address, the destination host webpage, and after click was confirmed, source host web service was moved with this parameter setting Virtualbox.
The invention has the beneficial effects as follows: the present invention serves at use web and realizes the Virtualbox real-time migration, makes migration operation needn't come and go two complicated orders of main frames input, and migration is flexible more and simple, especially is fit to the migration of virtual machine between the server.
Description of drawings
Fig. 1 is based on the flow chart of the Virtualbox real-time migration method of web.
Embodiment
Explanation at length below with reference to Figure of description method of the present invention being done.
A kind of Virtualbox real-time migration method based on web of the present invention is realized real-time migration between two machines of having supposed web service.Destination host is connected the virtual media file on the shared memory space that the virtual machine on two main frames realizing moving can be visited with the public memory space of source host with the virtual memory space place.
It is virtual machine title, port numbers and password that webpage on the destination host is provided with parameter, clicks the Web service of confirming the back destination host and moves preparation with this parameter setting Virtualbox.
The transfer parameter that webpage on the source host is inserted is port numbers and the password that configures on destination host address, the destination host webpage, and after click was confirmed, source host web service was moved with this parameter setting Virtualbox.
Embodiment:
Of the present invention a kind of its processing and fabricating of Virtualbox real-time migration method based on web is very simple and convenient, shown in the by specification accompanying drawing:
At first, set and share memory space, the virtual machine storage file is left in the public memory space, and guarantee that two fictitious host computers can have access to public memory space.Then, on two main frames realizing migration, set up the web service, if these two fictitious host computers all are servers, just this step work can be simpler.At this moment, the preparation before the migration is just accomplished.
At this moment, on any one computer that can be connected to network, can operate and moved.Log on the webpage of destination host, input virtual machine title, port numbers and password option, the web service is sent to be the example order as follows to virtualbox:
VBoxManage?modifyvm?XP?–teleporter?on?–teleporterport?1234?–teleporterpassword?123456
VBoxManage?startvm?XP
Then, land the webpage of source host, insert destination host address and port numbers of just having set and password, after click confirming, the web service is sent being the order of example as follows to virtualbox:
VBoxManage?controlvm?XP?teleport?–host?192.168.1.3?–port?1234?–password?123456
At this moment, migration work has just begun, and it is very fast that virtual machine is implemented the speed of migration, can accomplish in about 2-3 minute, and in the transition process, the work on the virtual machine can not stop.
Except that the described technical characterictic of specification, be the known technology of those skilled in the art.