KVM Tweaks for CentOS

Introduction

In this article, we will explain to you tweaks for CentOS 6 and 7 KVM VPS. These configurations will help you to get the best performance for your VPS by following this article.

Prerequisites

You will need:

  • VPS running CentOS


CentOS 6 x64

  • Install tuned service by running this command:

yum -y install tuned

  • Use chkconfig to turn on tuned service:

chkconfig tuned on

  • Now configure the tuned service to optimize systems running as a virtual guest:

tuned-adm profile virtual-guest



Mount Options

  • Add the following options to your root partition in /etc/fstab:

noatime,discard,barrier=0

Packaging

  • Install the epel-release package in order to allow installation of common packages not including within the default repositories:

yum -y install epel-release


CentOS 7 x64

 

  • Install the tuned service by running this command:

yum -y install tuned

  • Start and enable tuned service:

systemctl enable tuned
systemctl start tuned

  • Now configure the tuned service to optimize systems running as a virtual guest:

tuned-adm profile virtual-guest



Mount Options

  • Add the following options to your root partition in /etc/fstab:

noatime,discard,barrier=0


Packaging

  • Install the epel-release package in order to allow installation of common packages not including within the default repositories:

yum -y install epel-release

Conclusion

You have successfully tweaked your CentOS KVM VPS. This should boost your disk I/O speed 4-5 times more than the default installation allows.

  • 1 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

List of Available Installation ISOs and Templates for KVM VPS

ISO Operating Systems Arch Linux Boot2Docker CentOS 5 CentOS 6 CentOS 7 ClearOS 7 CoreOS...

What is the difference between LXC and KVM?

LXC and KVM virtualization technologies are both great in their own respects. There are some...

How to Begin Installation from ISO

Introduction In this article, we will explain How To  Begin Installation from ISO. LaunchVPS...

How to Schedule Automated VPS Image Backups

Introduction In this article, we will explain to you how to schedule an automated VPS image...

How to Perform a Manual VPS Image Backup

Introduction In this article, we will explain how to perform a manual VPS image backup. An image...