Storage Capacity Required for Machine Creation Services

Storage Capacity Required for Machine Creation Services

How much storage capacity do you need for Citrix Machine Creation Services? If you’re designing a XenApp or XenDesktop environment, one question you’re going to ask is “how much storage do we need?”. Let’s dig into the fundamentals of Machine Creation Services and have a look at how much capacity you’ll need to provision.

What is Machine Creation Services?

Citrix Machine Creation Services (MCS) takes the pain out of deploying virtual machine workloads for XenApp and XenDesktop. MCS leverages hypervisor management APIs to deploy virtual machines from a master image. While the approach for deploying VMs is the same at a high level across hypervisors, there are, of course, differences due to different virtual machine formats.

If you’re new to XenApp or XenDesktop, or have yet to move from XenApp 5.x or 6.x, there are a few of articles on MCS that I recommend reading and keeping for reference:

Unlike Citrix Provisioning Services, there are no additional infrastructure components required to deploy machines via MCS; however, MCS can only deploy virtual machines. This makes MCS easy to deploy because it’s available by virtue of deploying XenDesktop on almost any type of virtualized infrastructure.

XenDesktop 7.11 has now made it possible to deploy full clone virtual machines improving disaster recovery scenarios, for MCS deployed VMs. Kees Baggerman has written about this new option - Citrix XenDesktop 7.11; digesting full clones.

Kees also presented a session at Citrix Synergy 2016 on MCS and PVS that goes into great detail on these deployment solutions under the hood. You can watch the video here: Citrix Synergy 2016 - SYN219 - Getting up close and personal with MCS and PVS. This session presents a great overview of the deployment options available with MCS.

I’ve updated that image for XenDesktop 7.11. Now the available deployment options for MCS are:

Deployment options available in XenDesktop Machine Creation Services

Deployment options available in XenDesktop Machine Creation Services (credit: Kees Baggerman & Martijn Bosschaart)

As you can see, there are quite a number of deployment options in MCS now, so this can’t make sizing straight-forward.

Machine Creation Services VM Components

To determine the storage capacity we require for MCS, we should start with knowing what makes up a virtual machine deployed via Machine Creation Services. This will differ for each hypervisor and machine catalog configuration:

  • Base image - there will be at least 1 base image per machine catalog. Multiple base images can exist if updates are applied to the catalog or multiple catalogs are deployed to a single data store
  • Identity disk - each virtual machine will have an identity disk that contains the bits that provide each VMs its unique identity. This disk is only deleted when the VM is deleted
  • Differencing or delta disk - while running a virtual machine needs a location to write changes from the base image. This disk is deleted if you’ve configured the machine catalog to refresh VMs on reboot
  • Cache overflow disk - with XenDesktop 7.9 and above you can configure Cache in RAM with Overflow to Disk. If so, the delta disk is not used and this overflow disk is used instead. This disk will be deleted at VM reboot
  • Snapshots - depending on the deployment options used, some VMs may also have snapshots applied to them
  • VM configuration files, logs, swap files etc. - Hyper-V and ESXi have configuration files and others for each VM, while XenServer and AHV store these descriptors differently. These may not have a large impact on storage, but we can include them for completeness.

Because each hypervisor has its own idiosyncrasies our calculations for storage capacity will differ depending on the platform choice.

What about Dedupe and Compression?

For the purposes of this exercise, I’m going to ignore deduplication and compression. Each storage vendor has different approaches - some do inline dedupe, some do post-process dedupe, while others do both and not all vendors support compression. Additionally, storage vendors are using different approaches for block sizes so may have different results for reclaiming capacity.

Think about deploying XenDesktop on Azure - deduplication or compression are not exposed to the administrator, so for sizing on Azure, we’d need to consider the total capacity consumed to understand storage costs.

If we start with calculating the maximum capacity we’ll require based on our deployment options, then testing on specific storage configurations that include dedupe and/or compression means that we can only reduce our storage capacity requirements.

Conclusion

MCS helps to take the pain out of virtual desktop deployments but you’ll still need to carefully consider the storage capacity requirements. Because the approach for each hypervisor is slightly different, I’ll cover each platform individually in upcoming articles. I’m going to start with what I think is the easiest and simplest platform - Hyper-V in Windows Server 2012 R2 and Windows Server 2016.

Note that for this series, I’m only interested in Windows deployments, so I won’t cover Linux at this time.

Articles

The articles for specific platforms can be found here: