Background
The Hyper Converged Infrastructure (HCI) is a Hyper Converged Infrastructure (abbreviated as a Hyper Converged Infrastructure), or a Hyper Converged Infrastructure, which is an architecture that has resources and technologies such as computing, network, storage, and server virtualization in the same set of unit devices (such as x86 servers).
The super-fusion solution integrates server virtualization, network virtualization, storage virtualization and desktop virtualization, and creates a full virtualization platform from a server side to a client side. The distributed data center cloud platform realizes the allocation of resources according to needs and flexible scheduling. The super-fusion system forms server resources into a resource pool through a virtualized super-fusion platform, and all resources can be distributed according to the plan of an administrator. The problem of hardware resource isolation, difficult allotment is solved. By means of a management interface of the virtualization super-fusion platform, all service running states can be easily obtained, and logging and checking can be carried out anywhere and anytime.
In practical application, with the continuous update of an operating system and application software, the virtual desktop cloud in the super-fusion system needs to be updated. At present, Link Clone of VMware is usually adopted to realize upgrading and updating of virtual desktop clouds, and the scheme needs to respectively upgrade and update virtual mirror images of all server nodes, so that for application scenes of a large number of desktop clouds, such as classrooms of schools, libraries and the like, because the updating scheme can only update single desktop clouds in a system one by one, the updating workload is very large, and the updating efficiency is low. In addition, each physical server node in the above scheme has to store a corresponding virtual image, so that the storage performance requirement on the physical server node is also high.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method for deploying a virtual machine in a super-fusion system, which is beneficial to improving the update efficiency of the super-fusion system and reducing the maintenance cost of the system.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
a method of deploying virtual machines of a hyper-fusion system, comprising:
selecting a physical server node from the system, and creating a diskless server on the physical server node;
creating a disk mirror image template for an operating system with a specified version;
establishing storage configuration parameters for the disk image template on the diskless server, and storing the disk image template into the diskless server according to the storage configuration parameters;
when a virtual machine is newly established in the system, the first starting mode of the virtual machine is set as PXE network starting.
Preferably, the creating a diskless server on the physical server node comprises:
installing a preset server operating system on the physical server node;
and installing diskless software on the physical server node.
Preferably, the creating a diskless server on the physical server node comprises:
and installing a preset server operating system on one virtual machine of the physical server node, and installing diskless software on the virtual machine.
Preferably, the creating a disk image template for the specified version of the operating system includes:
creating a virtual machine in any physical server node in the system, and installing the operating system on the virtual machine, wherein the installation comprises installation of a driver, a system patch and application software.
Preferably, the storage configuration parameters include: a storage directory, a write-back directory, and a mirror file name.
Preferably, the saving the disk image template to the diskless server includes:
establishing a virtual machine on the diskless server, and associating the virtual machine with the mirror image file name and the network card MAC address of the virtual machine;
and storing the disk mirror image template into a file corresponding to the mirror image file name.
In summary, the virtual machine deployment method for the super-fusion system provided by the present invention establishes a disk image template shared by a plurality of virtual machines in the system, and sets the first starting mode of the virtual machines in the system as PXE network start, so that when the virtual desktop cloud in the super-fusion system needs to be updated, only the disk image template needs to be updated and maintained, which is beneficial to reducing the management and maintenance workload of the super-fusion system, improving the updating efficiency of the super-fusion system, and reducing the system maintenance cost. In addition, the invention does not need to store the disk mirror image in each physical server node, thereby greatly reducing the storage performance requirement of the physical server nodes.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The core idea of the invention is as follows: introducing a pre-boot eXecution Environment (PXE, also called pre-eXecution Environment) technology, establishing a shared single disk image for a virtual machine in a system by using diskless software, and setting a first boot mode of the virtual machine in the system as PXE network boot. Therefore, through the management of the single disk image of the virtual machine, when the operating system and the application program are upgraded, only the patch of the system and the update of the application program need to be carried out on the single disk image, and each virtual machine sharing the disk image can trigger the streaming technology to immediately update the single disk image to the virtual machine by utilizing the PXE network as long as the machine is started or restarted. Therefore, the system patch and the application software can be updated on line in real time, and the management workload and the operation and maintenance cost of the super-fusion system are greatly reduced.
Fig. 1 is a schematic flow chart of a virtual machine deployment method of a hyper-fusion system according to an embodiment of the present invention, as shown in fig. 1, the embodiment mainly includes:
step 101, selecting a physical server node from the system, and creating a diskless server on the physical server node.
The present step is used to create a diskless server in the super-fusion system, and specifically, the diskless server may be created directly by using the whole hardware resource of the selected physical server node, or may be created by using only one virtual machine created on the node. Preferably, the diskless server can be created by the following two methods:
the method comprises the steps that a preset server operating system is installed on a physical server node; and installing diskless software on the physical server node.
And secondly, installing a preset server operating system on one virtual machine of the physical server node, and installing diskless software on the virtual machine.
In the second method, the server is created by using one virtual machine created on the selected physical server node, so that resources of the physical server node can be saved compared with the first method.
In this step, for the selection of the physical server node, any one node in the system may be selected, or may be specified in advance by a system administrator according to actual needs.
In the above method, no matter the diskless server is created on the physical server node or the diskless server is created on the virtual machine, the specific creation method can be implemented by using the prior art, and is not described herein again.
Step 102, a disk image template is created for the operating system with the specified version.
This step is used to create a disk image template, which will be shared by the virtual machines in the system.
Preferably, this step can be implemented by the following method:
creating a virtual machine in any physical server node in the system, and installing the operating system on the virtual machine, wherein the installation comprises installation of a driver, a system patch and application software.
In the method, a designated operating system needs to be installed in one virtual machine in the system, and the installed file forms the disk image template.
Here, the operating system to be installed may be set according to the operating system to be used in the actual virtual machine.
Step 103, creating storage configuration parameters for the disk image template on the diskless server, and storing the disk image template into the diskless server according to the storage configuration parameters.
This step is used to copy the disk image template created in step 102 to the diskless server, so that the disk image template can be obtained from the diskless server when a virtual machine in the system is started.
Here, it is required to create storage configuration parameters on the diskless server through the diskless management interface, where the storage configuration parameters at least include: a storage directory, a write-back directory, and a mirror file name. Then, the disk image template created in step 102 is saved to the file corresponding to the configured image file name.
Preferably, the disk image template may be saved in the diskless server by the following method:
establishing a virtual machine on the diskless server, and associating the virtual machine with the mirror image file name and the network card MAC address of the virtual machine; and storing the disk mirror image template into a file corresponding to the mirror image file name.
And step 104, when a virtual machine is newly established in the system, setting the first starting mode of the virtual machine as PXE network starting.
It should be noted that PXE is a technology developed by Intel corporation, works in a Client/Server network mode, supports a workstation to download an image from a remote Server through a network, and thus supports starting an operating system through the network, during the starting process, a terminal requests the Server to allocate an IP address, and then downloads a start software package to a local memory for execution by using TFTP or MTFTP protocol, and the start software package completes the setting of the terminal basic software, thereby booting the terminal operating system pre-installed in the Server. PXE can boot a variety of operating systems, such as: windows95/98/2000/Windows2003/Windows2008/winXP/win7/win8, linux, etc.
In this step, the first starting mode of the virtual machines in the system needs to be set as a PXE network starting mode, so that when each virtual machine is started, the disk image template is directly triggered to be downloaded from the diskless server, and the disk image template enters the desktop system of the corresponding version. Therefore, when the system is maintained, the virtual machines in the system can use the upgraded operating system and application software only by upgrading the disk image template in the diskless server. For example, if the disk image template is used by 200 virtual machines, the 200 virtual machines are restarted or restarted, and the real-time online update of system subscription and application software is realized. Therefore, the virtual machine deployment method of the embodiment is beneficial to improving the updating efficiency of the super fusion system and greatly reducing the management workload and the operation and maintenance cost of the super fusion system.
In addition, in the above embodiment, by creating the diskless server, the technology that the diskless system writes back to the memory of the workstation can be utilized, so that the user does not need to pay attention to the pressure of the stored input and output on the virtual desktop, and a 10GB network can quickly start the desktop system for 10 seconds, thereby greatly reducing the storage performance requirement of the physical server node.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.