Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

Server Virtualisation: 8 Management Challenges and How to Handle Them

Eight problems that come with running virtual machines, from VM sprawl and overcommitted memory to backups and licences, each with a practical way to handle it.

3 min readBy Smita

Managing server virtualisation

Running your own virtual machines needs a machine of your own. See our dedicated servers. See Cheap Dedicated Servers from $38.99

Server virtualisation lets one physical machine run many separate virtual machines (VMs), each with its own operating system. A program called a hypervisor (Hyper-V, VMware ESXi, Proxmox with KVM) divides the hardware among them. It saves hardware and makes servers easy to create, copy and move. It also brings problems of its own, which are much the same in a company's server room and on a single rented server.

1. VM sprawl

The problem: creating a VM takes minutes, so they multiply. Test machines nobody remembers keep using memory, disk and licences, and nobody updates them.

Handle it: give every VM an owner and a purpose in its name or notes. Review the list every few months and delete what nobody claims. Give test machines an end date on the day they are made.

2. Overcommitted resources

The problem: hypervisors let you promise VMs more processor and memory than the host has, on the bet that not all need it at once. When they do, everything slows down together, and the cause is hard to see from inside any one VM.

Handle it: overcommit processors moderately and memory hardly at all. Watch the host's own figures, not only the guests'. Leave room for the hypervisor itself.

3. Storage is the usual bottleneck

The problem: many VMs share the same disks. One VM running a backup or a database import makes every other VM slow.

Handle it: use SSD or NVMe storage for VMs. Stagger backups and scheduled jobs so that they do not start together. Put heavy databases on their own disks where possible.

4. Backups that are not backups

The problem: snapshots feel like backups and are not. They live on the same storage as the VM, grow with every change, and slow the VM while they exist. A failed disk takes both.

Handle it: use snapshots for minutes or hours, before a risky change. Keep real backups on a different machine, and restore one now and then to prove it works.

5. The host is a single point of failure

The problem: ten servers on one machine means one hardware fault stops ten servers.

Handle it: for what must not stop, use two or more hosts with shared or replicated storage, so that VMs can restart elsewhere: see Storage Spaces Direct for one way. For the rest, know how long a restore takes and whether that is acceptable.

6. Security between and beneath VMs

The problem: the hypervisor and its management interface control everything. A VM on a flat network can reach every other VM.

Handle it: keep the hypervisor updated. Put its management interface on a separate network that is not reachable from the internet. Separate VMs into networks by purpose, and firewall between them.

7. Licences

The problem: software licences often count physical cores or hosts, not VMs, and the rules differ by product. Windows Server editions differ in how many Windows VMs they cover on a host.

Handle it: read the licence terms for virtual use before building. Count cores of every host the VMs can run on, not only the one they run on today.

8. Seeing what is going on

The problem: a slow application may be the VM, the host, the storage or the network, and each is watched with a different tool.

Handle it: monitor host and guests together, with history. Record what normal looks like, so that abnormal is recognisable. See ways to make a VPS faster for the guest side.

Where to practise

All eight can be seen in miniature on one PC: see setting up a virtual lab. To run a hypervisor in a datacentre you need a whole machine, since a VPS is itself a VM: see our dedicated servers.

Questions

What is server virtualisation?

Running several separate virtual machines on one physical server, with a hypervisor dividing the hardware among them.

What is VM sprawl?

The uncontrolled growth of virtual machines that nobody owns or maintains, which wastes resources and creates security risks.

Is a snapshot a backup?

No. A snapshot is stored with the virtual machine and is lost with it. Keep backups on a different machine.

What is overcommitment?

Assigning virtual machines more processor or memory in total than the host has, on the assumption that they will not all need it at once.