KVM Starter Guide

You can install your own OS via two ways:
  • [Easy] Premade template - just like a normal VPS out the box with a default partition
  • [Intermediate/Experts] Use our range of ISOs to setup your VPS how you want it with custom partitions/different OS

Optimizing your VPS

When the OS installation has been completed, you can apply a few tweaks to further optimize your KVM VPS.


Disk I/O Optimization

The most important setting in order to get the most out of your VPS, is to use the virtio driver instead of the legacy IDE one. To do this you need to log into SolusVM and under the Settings tab, change Disk Driver from ide (default) to virtio. You will need to reboot your VPS through SolusVM for changes to apply.


Additionaly, you can improve I/O performance by using the following commands:

echo 0 > /sys/block/vda/queue/rotational
echo 0 > /sys/block/vda/queue/rq_affinity
echo noop > /sys/block/vda/queue/scheduler
echo "echo 0 > /sys/block/vda/queue/rotational" >> /etc/rc.local
echo "echo 0 > /sys/block/vda/queue/rq_affinity" >> /etc/rc.local
echo "echo noop > /sys/block/vda/queue/scheduler" >> /etc/rc.local
echo 'vm.swappiness=5' >> /etc/sysctl.conf
echo 'vm.vfs_cache_pressure=50' >> /etc/sysctl.conf

and then run

sysctl -p

Please note that in some cases /sys/block/vda/ can also be /sys/block/sda/. It depends on your OS and installation type (ISO or Template).


Another I/O tweak is to mount your partition with noatime. This can be done by opening /etc/fstab

vi /etc/fstab

and adding noatime to the options of the / file system, e.g. like this:

proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=bf175032-898a-4883-a702-ca0ab9e51d1d /               ext4    noatime,errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=2d7209ed-b4c1-4bb6-96f2-73d7ba82ca9b none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

You don't have to reboot the system for the changes to take effect - the following command will do:

mount -o remount /


Network Optimization

If your network connection is limited to 100Mbps, your Network Card configuration in SolusVM is probably set to Realtek 8139. Please use the Intel PRO/1000 or Virtio network card setting to be able to use all of your 1Gbps connection.


Additionally please append the following lines to the /etc/sysctl.conf file:

net.core.rmem_max=16777216
net.core.wmem_max=16777216
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216

After saving the file, type sysctl -p for the changes to take effect.


Networking

Your IPs are listed in SolusVM under the Network tab.

IPv4

Some KVM ISOs work with DHCP. If your ISO does not automatically assign your IPv4 address, please open a ticket with support to request your network information and configure it manually. We also suggest you to use the Google DNS resolvers in /etc/resolv.conf

8.8.8.8
8.8.4.4


IPv6

If your IPv6 addresses are not automatically added to your VPS, you can use the Re-Configure button in SolusVM to add them. If it does not work, you can use the following information to manually add IPv6.

Prefix/Netmask: /64
Gateway: 2a00:1768:1004::1


Public IPv6 Nameservers (Google DNS):

2001:4860:4860::8888
2001:4860:4860::8844
  • 36 Users Found This Useful
Was this answer helpful?

Related Articles

Troubleshooting Network Problems (Using MTR)

If you are experiencing packet loss and/or loss of service, please first check our twitter page...

IPv6 Availability

Please submit a ticket to support for a /64 block or additional single IPv6 addresses, both of...

Uptime Guarantee & SLA

We offer 99.99% uptime guarantee on nearly all our hosting services, the SLA is excluded from...

Free Hosting Control Panel Installation (VestaCP)

We are continually asked regarding a free control panel clients can use to manage their domains,...

CentOS 7: error: unpacking of archive failed on file /usr/lib/udev/rules.d/60-net.rules: cpio: rename

We have noticed a error that may pop up on CentOS7 template, you may get the below error when...