Computers and computing systems have affected nearly every aspect of modern living. Computers are generally involved in work, recreation, healthcare, transportation, entertainment, household management, etc.
Further, computing system functionality can be enhanced by a computing systems ability to be interconnected to other computing systems via network connections. Network connections may include, but are not limited to, connections via wired or wireless Ethernet, cellular connections, or even computer to computer connections through serial, parallel, USB, or other connections. The connections allow a computing system to access services at other computing systems and to quickly and efficiently receive application data from other computing system.
Interconnection of computing systems has facilitated distributed computing systems, such as so-called “cloud” computing systems. In this description, “cloud computing” may be systems or resources for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, services, etc.) that can be provisioned and released with reduced management effort or service provider interaction. A cloud model can be composed of various characteristics (e.g., on-demand self-service, broad network access, resource pooling, rapid elasticity, measured service, etc), service models (e.g., Software as a Service (“SaaS”), Platform as a Service (“PaaS”), Infrastructure as a Service (“IaaS”), and deployment models (e.g., private cloud, community cloud, public cloud, hybrid cloud, etc.).
Distributed deployment of virtual machines (VMs), particularly in large-scale environments, can consume massive storage and network resources.
The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one exemplary technology area where some embodiments described herein may be practiced.
One embodiment illustrated herein includes a method that may be practiced in a virtualized network computing environment. The method includes acts for determining host machines on which to place a virtual machine. The method includes determining that a virtual machine to be deployed to a host will use a differencing disk chain based off of one or more base disks. One or more hosts are identified having the one or more base disks already available to the one or more hosts. One of the one or more hosts is selected at which to place the virtual machine based on the one or more hosts having the one or more base disks already available to the one or more hosts. The virtual machine is placed at the selected host.
In another embodiment a method may be practiced in a virtualized network computing environment. The method includes acts for provisioning a disk for a virtual machine. The method includes for a virtual machine to be deployed to a host, determining that the host already has available to the host one or more base disks that can be used as one or more base disks for a disk to be provisioned for the virtual machine. As a result, the method further includes determining to not copy the disk to be provisioned for the virtual machine to the host. A differencing disk is created using the one or more base disks to provision the disk for the virtual machine at the host.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Additional features and advantages will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the teachings herein. Features and advantages of the invention may be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. Features of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.
In order to describe the manner in which the above-recited and other advantages and features can be obtained, a more particular description of the subject matter briefly described above will be rendered by reference to specific embodiments which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments and are not therefore to be considered to be limiting in scope, embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
Virtualization of computing functionality is becoming more and more widespread. In virtualization scenarios, physical hardware supports virtual hardware. For example, a physical host machine can host a number of different virtual machines by allocating physical resources of the physical machine to virtual machines hosted on a physical host machine. For example,
Often, within a virtualization fabric 100, there may be some desire to deploy and/or move virtual machines within the fabric 100. Additionally, often, virtual machines have some basic similarities, but also include some specialized features. For example, each virtual machine in a set of different virtual machines may have the same operating system, drivers, and some common software installed. However, the virtual machines may each have some individualized software installed the differentiates each machine from each other.
Virtual machines may use differencing disks for storage. A differencing disk is a virtual hard disk used to isolate changes to a virtual hard disk or the guest operating system by storing the changes in a separate file. A differencing disk is associated with another virtual hard disk that is selected when creating the differencing disk. This virtual hard disk is called the “parent” disk and the differencing disk is the “child” disk. The parent disk can be any type of virtual hard disk. The differencing disk stores all changes that would otherwise be made to the parent disk if the differencing disk was not being used. The differencing disk provides an ongoing way to save changes without altering the parent disk. The differencing disk expands dynamically as data is written to it and can grow as large as the maximum size allocated for the parent disk when the parent disk was created.
It should be appreciated, however, that chains of differencing disks may be used. For example, a differencing disk may be based off of a set of base disks, which includes a parent disk and one or more differencing disks based off of the parent or another differencing disk. However, once a differencing disk has another differencing disk based off of it, the data on that disk should no longer be changed.
As can be appreciated, by using a differencing disk scheme, a base set of data can be deployed for a virtual machine, followed by deployment of specific data for the virtual machine. This makes deployment and migration of virtual machines easier.
Some embodiments disclosed herein may use differencing disks to reduce both network transfer bandwidth and storage requirements of virtual machines. For example, embodiments may improve network traffic across hosts by utilizing pre-cached and shared base disks for differencing disk chains. Additionally or alternatively, embodiments may improve storage on hosts by utilizing shared base disks for differencing disk chains. Alternatively or additionally, embodiments may share common resources (e.g. base disks) transparently across tenants in a multitenant environment. Alternatively or additionally, embodiments may implement virtual machine placement optimization utilizing availability of pre-deployed cached resources (e.g. base disks) as a placement metric. Alternatively or additionally, embodiments may improve support across full virtual machine lifecycle, including placement, migration, and storage. Alternatively or additionally, embodiments may opportunistically offer near instantaneous deployment (copy part) of virtual machines from a central location (a virtual machine management software library).
Additional details are now illustrated. Embodiments track the identity of virtual machine disks and when a deployment request occurs, attempt to match this resource to an existing resource on the target. If the target already has an existing resource instance that is a binary match, that existing resource is used locally on the target rather than copying over the network. If the resource does not exist, a traditional copy deployment is performed and that resource is marked for improved usage in later deployments. For example, as illustrated in
However, if the parent disk 116 had not of existed at the host 114 or had not been a match of the parent disk 108, then the parent disk 108 could have been transferred to the host 114. But, the disk could have then been used to improve deployment of a subsequently deployed virtual machine, such as virtual machine 112-2. In this case, a new differencing disk could be created for subsequently deployed virtual machines.
An alternative example is illustrated in
Thus, embodiments can support sharing of the read-only base disks (such as the parent disk 108 and/or any disks chained to the parent disk), both on a single host as illustrated in
Embodiments may support transparently sharing base disks between tenants in a multi-tenant environment. From the tenant perspective they are working with unique copies; however the underlying implementation will invisibly manage the ‘deduplication’ of shared base disks in a secure manner.
Some implementations may utilize a rich algorithm for determining the best location(s) for deploying virtual machines. This results in a ranked set of destinations, each with a rating representing the suitability of a given target host or cluster for hosting the virtual machine. This algorithm may account for improved placement of virtual machines utilizing differencing disks. For example, some embodiments may implement host selection algorithms for deployment of virtual machines by factoring in whether or not hosts have an existing copy of base disks on, or available to, a host.
For example,
Differencing disk support for deployment and migration may be particularly useful for hosts where large numbers of virtual machines may be created from a limited subset of base disks. Differencing disk support for deployment and migration may both improve provisioning performance as well as reduce storage requirements. This may be achieved in various ways. The following illustrates additional details of how this can be accomplished.
Embodiments may support improved migration of storage that utilizes differencing disks. In particular a virtual machine management server 120 or 210 (or other virtual machine management software and/or hardware) will attempt to refrain from migrating parent disks when possible by understanding and utilizing duplicate parents in source and target storage. For example, in
Embodiments may improve deployment time by utilizing differencing disks. In particular a virtual machine management server (e.g. sever 120 or 210) or other management software and/or hardware will attempt to identify and utilize differencing disks on the target similar to the migration example above.
Embodiments may improve cloning of virtual machines by utilizing differencing disks. In particular a virtual machine management server (e.g. sever 120 or 210) or other management software and/or hardware will have the option to create (possibly temporarily) and utilize differencing disks during a cloning operation.
As noted previously, embodiments may improve placement logic to take advantage of differencing disks. Virtual machine management server (e.g. sever 120 or 210) or other management software and/or hardware placement rules will consider existing cached parent disks when evaluating hosts for placement.
Embodiments may generate differencing disks during distribution of virtual disks. In particular, virtual machine management server (e.g. sever 120 or 210) or other management software and/or hardware can optionally generate a differencing disk from a base virtual machine during deployments.
The approach illustrated centers around the intelligent use of differencing virtual disks. Differencing disks allow multiple disks to be created from a single parent disk (or chain of parent disks). Only the differences between the child disk and the parent are stored, reducing redundancy. Further multiple hosts can share a cache instance. For instance, Host1 and Host2 may both have a cache on an SMB share \\fs1\share\vmmCache.
Referring now to
During the creation of a virtual machine, the option to use differencing disks may be specified on a per-disk level. The ability to select an initial parent path may also be available if the user opts in to the diff disk optimization for the disk.
The user interface used for selecting the parent disk path, in some embodiments, will not be enabled if it is discovered that an existing base disk already exists on the host, but rather the existing path will be displayed read-only.
For a virtual machine that has differencing disk improved disks, migrated parent disks may be placed side-by-side to the child disk or an existing parent on the host will be used.
The following discussion now refers to a number of methods and method acts that may be performed. Although the method acts may be discussed in a certain order or illustrated in a flow chart as occurring in a particular order, no particular ordering is required unless specifically stated, or required because an act is dependent on another act being completed prior to the act being performed.
Referring now to
The method may further include identifying one or more hosts having the one or more base disks already available to the one or more hosts (act 404). For example, in
The method 400 further includes selecting one of the one or more hosts at which to place the virtual machine based on the one or more hosts having the one or more base disks already available to the one or more hosts (act 406). Thus, as illustrated in
The method 400 further includes placing the virtual machine at the selected host (act 408). Thus, as illustrated in
The method 400 may be practiced where the one or more base disks are stored on a common network share for a plurality of different hosts, such that the one or more base disks can be used as base disks at other hosts. An example of this is illustrated in
The method 400 may be practiced where in the one or more base disks are stored on the identified hosts. An example of this is illustrated in
The method 400 may be practiced where in the one or more base disks are shared across different tenants in a multi-tenant environment. In some examples of such embodiments, enforcing isolation between tenants may be performed by preventing tenants from modifying or deleting the one or more base disks.
Referring now to
As a result, the method 500 further includes determining to not copy the disk to be provisioned for the virtual machine to the host (act 504) and creating a differencing disk using the one or more base disks to provisions the disk for the virtual machine at the host (act 506). For example, as illustrated in
Further, the methods may be practiced by a computer system including one or more processors and computer readable media such as computer memory. In particular, the computer memory may store computer executable instructions that when executed by one or more processors cause various functions to be performed, such as the acts recited in the embodiments.
Embodiments of the present invention may comprise or utilize a special purpose or general-purpose computer including computer hardware, as discussed in greater detail below. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system. Computer-readable media that store computer-executable instructions are physical storage media. Computer-readable media that carry computer-executable instructions are transmission media. Thus, by way of example, and not limitation, embodiments of the invention can comprise at least two distinctly different kinds of computer-readable media: physical computer readable storage media and transmission computer readable media.
Physical computer readable storage media includes RAM, ROM, EEPROM, CD-ROM or other optical disk storage (such as CDs, DVDs, etc), magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer.
A “network” is defined as one or more data links that enable the transport of electronic data between computer systems and/or modules and/or other electronic devices. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer, the computer properly views the connection as a transmission medium. Transmissions media can include a network and/or data links which can be used to carry or desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer. Combinations of the above are also included within the scope of computer-readable media.
Further, upon reaching various computer system components, program code means in the form of computer-executable instructions or data structures can be transferred automatically from transmission computer readable media to physical computer readable storage media (or vice versa). For example, computer-executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., a “NIC”), and then eventually transferred to computer system RAM and/or to less volatile computer readable physical storage media at a computer system. Thus, computer readable physical storage media can be included in computer system components that also (or even primarily) utilize transmission media.
Computer-executable instructions comprise, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries, intermediate format instructions such as assembly language, or even source code. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or acts described above. Rather, the described features and acts are disclosed as example forms of implementing the claims.
Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, switches, and the like. The invention may also be practiced in distributed system environments where local and remote computer systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices.
Alternatively, or in addition, the functionally described herein can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
The present invention may be embodied in other specific forms without departing from its spirit or characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
This application claims the benefit of U.S. Provisional application No. 61/829,710 filed May 31, 2013, titled “DIFFERENCING DISK OPTIMIZED DEPLOYMENT OF VIRTUAL MACHINES”, which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
61829710 | May 2013 | US |